fix(workflows): keep stage chat wheel scroll local by default - #1530
Merged
Conversation
Capture terminal mouse wheel input in attached workflow stage chats by default so scroll gestures stay inside the active transcript or prompt. Expose ctrl+t as a copy-mode toggle that disables workflow-chat mouse reporting for terminal text selection, and document the updated behavior. Assistant-model: GPT-5.5
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Review: fix(workflows): keep stage chat wheel scroll local (#1530) Reviewed end-to-end — the escape-sequence change in What looks solid
Suggestions / nits
Test coverage Good — toggle behavior, default state, footer hint text, and the raw escape sequences are all covered. The only gap is the parser-interaction case noted in #3. Nice, focused fix. |
lavaman131
pushed a commit
that referenced
this pull request
Jun 29, 2026
Capture terminal mouse wheel input in attached workflow stage chats by default so scroll gestures stay inside the active transcript or prompt. Expose ctrl+t as a copy-mode toggle that disables workflow-chat mouse reporting for terminal text selection, and document the updated behavior. Assistant-model: GPT-5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Flips the default for workflow stage-chat mouse capture so wheel/trackpad scroll stays inside the active stage transcript or prompt out of the box, rather than falling through to terminal or main-chat scrollback. `ctrl+t` is reframed as a copy mode toggle — turning mouse reporting off when you need to drag-select or copy text, then restoring it on the next press.
Changes
mouseScrollCaptureEnablednow initializes totrueso scroll is captured the moment a stage chat opens.\x1b[?1002hto the tracking sequence on overlay open/close, enabling comprehensive button-event reporting alongside existing normal (?1000h) and SGR (?1006h) codes.ctrl+tnow disables mouse reporting (copy mode on) so terminal/tmux text selection works, and re-enables it on the next press. Footer hint updated frommouse scroll on/off→copy mode on/offto match.packages/coding-agent/docs/workflows.mdandpackages/workflows/README.mdto describe the new default and copy-mode semantics.[Unreleased]### Fixedentry for Enhancement: support text selection and copying in workflow chats #1519 to reflect the inverted default.stage-chat-view-13,workflow-attach-pane-10, andstage-chat-view-helpersto match the new default; added integration test asserting the button-event SGR escape sequences are written on open/close.Notes
Refs #1519
Validation:
AGENT=1 bun test test/unit/stage-chat-view-13.test.ts test/unit/workflow-attach-pane-10.test.ts test/integration/overlay-entrypoints-open-focus.test.tsbun run lint,bun run check:file-length, andbun run test:unitsuccessfully.