Skip to content

Recovered diff from Hmbown/DeepSeek-TUI#1443#1471

Closed
CrepuscularIRIS wants to merge 1 commit into
Hmbown:mainfrom
CrepuscularIRIS:autoghclaw/issue-1443
Closed

Recovered diff from Hmbown/DeepSeek-TUI#1443#1471
CrepuscularIRIS wants to merge 1 commit into
Hmbown:mainfrom
CrepuscularIRIS:autoghclaw/issue-1443

Conversation

@CrepuscularIRIS

Copy link
Copy Markdown
Contributor

Recovered diff from #1443

AutoGHClaw author timed out at the ACP boundary (Bug 73), but recovered issue diff successfully from local artifacts after ACP timeout. Bug 76 recovery: continuing review on recovered artifact. If push state is incomplete, run_open will surface that honestly.

On platforms where mouse capture is disabled by default (Windows CMD /
legacy conhost), the terminal sends mouse-wheel events as Up/Down arrow-
key sequences.  Without composer_arrows_scroll those sequences cycle the
input history instead of scrolling the transcript (Hmbown#1443).

Set the default for composer_arrows_scroll to !use_mouse_capture so that
terminals that forward wheel events as arrows get page-scrolling out of the
box, while terminals with real mouse capture (Windows Terminal, Linux, macOS)
keep the existing history-navigation default.

The explicit [tui] composer_arrows_scroll config key still overrides the
derived default in both directions.

Also enable mouse capture by default for ConEmu/Cmder (ConEmuPID env var),
which handles VT mouse-mode reporting cleanly, giving those users in-app
scrolling without needing --mouse-capture.

Fixes Hmbown#1443

Signed-off-by: CrepuscularIRIS <serenitygp@qq.com>
@CrepuscularIRIS CrepuscularIRIS force-pushed the autoghclaw/issue-1443 branch from 885f47b to 0d4fe76 Compare May 11, 2026 17:52

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the default behavior of the composer_arrows_scroll setting in the TUI application, changing it to default to true when mouse capture is disabled. This change ensures that terminals which map mouse-wheel events to arrow keys correctly trigger transcript scrolling instead of input history navigation. The update includes adjustments to existing tests and the addition of new test cases to verify the default behavior with and without mouse capture. I have no feedback to provide as there were no review comments to evaluate.

@CrepuscularIRIS

Copy link
Copy Markdown
Contributor Author

Auto cleanup: stale AGC/placeholder/open PR interfering with duplicate-gate; closing to unblock candidate testing.

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.

1 participant