Skip to content

fix: restore Cmd/Ctrl+Enter pure-annotation send (issue #17) - #18

Merged
taekchef merged 2 commits into
mainfrom
fix/17-cmd-ctrl-enter-direct-send
Aug 19, 2026
Merged

fix: restore Cmd/Ctrl+Enter pure-annotation send (issue #17)#18
taekchef merged 2 commits into
mainfrom
fix/17-cmd-ctrl-enter-direct-send

Conversation

@taekchef

@taekchef taekchef commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

问题

issue #17 报告:空草稿保存批注后,Cmd/Ctrl+Enter 不能像普通 Enter 一样直接发送纯批注,必须先输入有效字符。

根因

v1.3.18 为修复 issue #10,把所有带修饰键的 Enter 排除在批注拼稿之外;因此 Cmd/Ctrl+Enter 到达宿主时仍是空草稿,提交被忽略,或在运行中有队列时误走整队插话。

修改

  • 裸 Enter 保持原有批注拼稿行为。
  • Cmd/Ctrl+Enter 只在原草稿为空时接管,拼入批注块后直接 submit('queue')
  • 草稿已有文字时不接管,继续使用宿主原生 Queue / Steer 策略。
  • Shift+Enter、Alt+Enter 和输入法确认 Enter 保持原行为。
  • 增加一个无额外依赖的回归检查,锁定“仅接管空草稿纯批注”的边界。

验证

  • npm run check
  • npm test
  • npm pack --dry-run --json
  • git diff --check

Fixes #17

v1.3.18 (issue #10) excluded all modified Enter from attachAndSend, so
Cmd/Ctrl+Enter could no longer send a pure annotation from an empty
draft. Keep Shift/Alt+Enter excluded, but allow Cmd/Ctrl+Enter and
submit directly in the capture phase to avoid the composer's accelerated
steerQueue path leaving the annotation block visible in the input.
@taekchef
taekchef merged commit fc2237d into main Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

能否像Codex一样支持纯注释回复

1 participant