Skip to content

fix(composer): ignore Stop click within 400 ms of Send click - #2026

Merged
Hona merged 1 commit into
devfrom
upstream-f/up-373-stop-after-send-guard
Dec 1, 2026
Merged

Hona merged 1 commit into
devfrom
upstream-f/up-373-stop-after-send-guard

Conversation

@Hona

@Hona Hona commented Dec 1, 2026

Copy link
Copy Markdown
Member

Ports official anomalyco/opencode#67542 (fix(app): ignore Stop right after a Send click, commit 387ef23e2d).

Upstream Hunk Mapping

  • packages/app/src/composer/editor/editor.tsx:1558-1603 (STOP_AFTER_SEND_MS = 400, guard Stop clicks within 400 ms of a Send click in ComposerEditorSubmitButton without delaying keyboard Stop) -> crates/session-view/src/composer/mod.rs (STOP_AFTER_SEND_SECS = 0.4, explicit StopGuardState state machine, record_send_click, stop_from_click, wired into the submit/stop button handler).
  • packages/app/src/composer/editor/editor.tsx:1648,1719-1755 (ComposerEditorTouchBar Send/Steer/Queue/Stop click guard) -> apps/desktop/src/shell/view/composer/touch.rs (alternate and touch-submit button handlers).

Verification

  • Local scripts/guardrails.ps1: 11/11 passed.
  • Visual/interactive proof: double-clicking the composer Send button in a fixture session (--fixture, type text, click submit twice within 400 ms -> run stays active; click submit again after 400 ms -> run stops).

Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Hona
Hona merged commit fc4ed1b into dev Dec 1, 2026
8 checks passed
@Hona
Hona deleted the upstream-f/up-373-stop-after-send-guard branch December 1, 2026 15:18
Hona added a commit that referenced this pull request Dec 1, 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.

2 participants