GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): Option and Cmd arrows reach full-screen terminal apps by Mnigos · Pull Request #42574 · pingdotgg/t3code Conversation
Contributor
Replaces #32291, which I had updated with a merge of main after its review. In the thread terminal, Option+Left/Right was always rewritten to ESC b / ESC f, and Cmd+Left/Right to Ctrl-A / Ctrl-E, even inside full-screen apps. In vim insert mode ESC b leaves insert mode and moves back a word, so the next keystroke runs as a normal-mode command. The rewrite now only applies at a shell prompt. While the terminal is on the alternate screen, these keys go to the ghostty encoder like any other key, so the app gets the modified arrow ( Verified on current main with:
The screenshots below are from #32291, taken by driving the web client headlessly with Playwright: type
Fixes #32256 Claude Opus 5.5 via T3 Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Expose alternate-screen state apps/web/src/terminal/ghostty/surface.ts |
GhosttyTerminalSurface exposes the terminal core’s alternate-screen state through isAlternateScreen(). |
Route navigation shortcuts by screen state apps/web/src/components/ThreadTerminalDrawer.tsx, apps/web/src/terminal/ghostty/core.test.ts |
terminalPromptNavigationData returns no shell-navigation data on the alternate screen. handleBeforeKey uses this helper with the active terminal. Tests check Option+Left and Cmd+Right sequences on macOS, including behavior after leaving the alternate screen. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related PRs
Suggested labels: bugfix
Suggested reviewers: stienswout, macroscopeapp, juliusmarminge
15711Option+Arrow and Cmd+Arrow now reach full-screen apps such as vim while shell prompts keep their word-motion behavior. The change is small and covered by tests, and no concrete merge-blocking risk was found.
Explanation
The title names the main change: Option and Cmd arrow keys should reach full-screen terminal apps instead of being rewritten to shell word-motion sequences. It follows the conventional commit format and matches the changeset, which skips the prompt-navigation rewrite while the terminal is on the alternate screen.
Explanation
The description follows the template well. It states the problem (Option/Cmd arrows rewritten inside full-screen apps, breaking vim insert mode) with expected behavior. The change section explains the alternate-screen gate. The scope section links the issue #32256 and says the PR fixes a bug. The verification section lists a real-core test, specific test files, typecheck, lint, and format checks, and includes before/after screenshots. The only gaps are minor: the template's 'What you could not check' note is absent, and the screenshots come from a superseded PR and are hosted on a fork commit. The template's trailing agent/model line is present.
Explanation
[#32256] requires that Option+Arrow not be rewritten to ESC b/f while an alternate-screen app is active, and that the keys reach the ghostty encoder. At head, terminalPromptNavigationData in apps/web/src/components/ThreadTerminalDrawer.tsx returns null when terminal.isAlternateScreen() is true. A null result means the key is not rewritten and falls through to the encoder. Otherwise it returns terminalNavigationShortcutData(event, platform), so shell-prompt word motion is preserved. GhosttyTerminalSurface.isAlternateScreen() in surface.ts supplies the state, matching the existing history-scroll guard. core.test.ts covers prompt motion, encoded arrows under ?1049h, and restored motion after ?1049l. Limitation: the call site in handleBeforeKey was not visible in the truncated read. The diff read failed (changed blobs unavailable), so the call-site wiring rests on the PR summary and the helper's presence at head. The test results were reported by the author, not re-run here.
Explanation
The changes are the new terminalPromptNavigationData helper, its call in the terminal key handler, isAlternateScreen() on the surface, and tests in core.test.ts. These directly implement the alternate-screen rule in [#32256]. The PR also applies the same rule to Cmd+Arrow. That extension uses the same interception and the same rationale (Ctrl-A in vim insert mode), so it is closely related and not unrelated scope. The screenshots and PR text reference #32291, but they are evidence only and add no code. Limitation: the full diff could not be read, so the scope judgment rests on the summary and the head helper.
3584240e-9eee-4d67-a6df-4f4b21d0ac3bapps/web/src/components/ThreadTerminalDrawer.tsxapps/web/src/terminal/ghostty/core.test.tsapps/web/src/terminal/ghostty/surface.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…nate-screen Co-Authored-By: Claude Opus 5.5 <[email protected]>
EvidenceProven in the real macOS web app: the scenario fails on base and passes on head. Environment: macOS 26.6.2, Apple silicon, Chromium 156, 1280×800, light theme, reduced motion, fresh data on each side. Steps:
Scenario and embedded raw-input driver. No evidence files were committed. Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
**v0.1.12-nightly.20261125.5230** · 41 changes from 11 contributors - **Richer workflow questions.** Workflow questions can include described choices, required reasons, links, and records of who answered and when. - **Thread actions in command palette.** Pin, snooze, settle, archive, and manage the current thread from the command palette. - **Withdraw workflow questions.** Workflows can withdraw waiting questions without cancelling the run. - **Antigravity swarm workers.** See Antigravity swarm workers as subagents, including who is working and what they found. - **Faster thread switching.** Thread timelines now appear in the first frame instead of after a noticeable delay. - **Browser select menus.** Native dropdown menus now open in streamed browser tabs so you can choose an option. - **Permanent thread deletion.** Deleting a thread now removes its conversation history instead of only hiding it. ### Plus 32 more bug fixes. <details> <summary>Full changelog</summary> ## What's Changed * fix(cli): exclude spans before the trace summary window by @jadelike-wine in pingdotgg/t3code#42571 * fix(grok): expose context usage by @gujunxiang in pingdotgg/t3code#42568 * fix(web): timeline minimap previews no longer cut an emoji in half by @only21mil in pingdotgg/t3code#42575 * fix(web): Option and Cmd arrows reach full-screen terminal apps by @Mnigos in pingdotgg/t3code#42574 * fix(web): element context preview no longer ends in a split surrogate by @only21mil in pingdotgg/t3code#42585 * fix(server): Antigravity sends undecodable text attachments as a path instead of failing the turn by @juliusmarminge in pingdotgg/t3code#42594 * fix(resource-monitor): Windows stops reading memory and command lines of untracked processes by @juliusmarminge in pingdotgg/t3code#42577 * fix(server): ODT attachments no longer start with text from number styles by @only21mil in pingdotgg/t3code#42592 * feat(server): workflow questions take described choices, required reasons, links, and keep who answered by @juliusmarminge in pingdotgg/t3code#42515 * fix(web): citation comment box stays open when its cited row scrolls out by @juliusmarminge in pingdotgg/t3code#42603 * fix(web,mobile): author avatars keep emoji initials whole by @only21mil in pingdotgg/t3code#42598 * fix(gitlab): incident links are read as issue links by @Michel-Liao in pingdotgg/t3code#42605 * fix(server): workflow schedules given as bigint nanoseconds no longer crash by @only21mil in pingdotgg/t3code#42607 * fix(pi): reject generated text from failed responses by @StiensWout in pingdotgg/t3code#42602 * fix(preview): streamed browser tabs show native select menus by @juliusmarminge in pingdotgg/t3code#31561 * fix(web): long Workflows links no longer end in a broken character by @only21mil in pingdotgg/t3code#42617 * fix(server): filter open device sessions by the selected host by @AppsAtMe in pingdotgg/t3code#42600 * fix(antigravity): link directly to Google account verification on failed turns by @t3dotgg in pingdotgg/t3code#41210 * fix(server): Needs you lists paused runs older than the newest 500 by @KyrosHendrix in pingdotgg/t3code#42618 * feat(server): CI runners don't need telemetry by @t3dotgg in pingdotgg/t3code#42630 * fix: screenshots after a caption render full size instead of as chips by @juliusmarminge in pingdotgg/t3code#42627 * fix(pi): rewind turns after an extension switches sessions by @StiensWout in pingdotgg/t3code#42616 * fix(mobile): Compose without a project opens the picker in one push by @juliusmarminge in pingdotgg/t3code#42593 * fix(web): project name field restores the saved name when cleared by @only21mil in pingdotgg/t3code#42622 * fix(mobile): a share sent while a new-task draft is open joins that draft by @juliusmarminge in pingdotgg/t3code#42597 * fix(telemetry): honor DO_NOT_TRACK by @t3dotgg in pingdotgg/t3code#42629 * fix(server): device host errors no longer cut an emoji in half by @only21mil in pingdotgg/t3code#42628 * fix(pi): let background subagents finish after coordinator errors by @StiensWout in pingdotgg/t3code#42624 * fix(server): deleting a thread actually removes its history by @t3dotgg in pingdotgg/t3code#42119 * fix(server): unreadable sessions no longer block older history by @StiensWout in pingdotgg/t3code#42613 * fix(server): skip incomplete Pi records during project discovery by @StiensWout in pingdotgg/t3code#42636 * fix(server): restore the default provider name when clearing a label by @StiensWout in pingdotgg/t3code#42632 * test(provider-testing): replay workspaces start no background git maintenance by @juliusmarminge in pingdotgg/t3code#42651 * fix(antigravity): /swarm workers show as subagents by @t3dotgg in pingdotgg/t3code#42649 * feat(web): settle, pin, snooze and more for the current thread from cmd+k by @t3dotgg in pingdotgg/t3code#40742 * feat(server): withdraw a waiting workflow question without cancelling its run by @juliusmarminge in pingdotgg/t3code#42506 * fix(web): fade project picker tooltips in place on scroll by @Yash-Singh1 in pingdotgg/t3code#42657 * fix(server): shells with a backslash in their name no longer get zsh flags on Linux and macOS by @only21mil in pingdotgg/t3code#42648 * perf(web): thread switches paint the timeline in their first frame by @juliusmarminge in pingdotgg/t3code#42582 * fix(server): t3_background_wait error says Workflow runs already keep the thread working by @juliusmarminge in pingdotgg/t3code#42661 * fix(server): preserve spaces and tabs in checkpoint LFS storage by @jadelike-wine in pingdotgg/t3code#42634 ## New Contributors * @gujunxiang made their first contribution in pingdotgg/t3code#42568 * @AppsAtMe made their first contribution in pingdotgg/t3code#42600 **Full Changelog**: pingdotgg/t3code@v0.1.12-nightly.20261125.5222...v0.1.12-nightly.20261125.5230 </details> Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.12-nightly.20261125.5230
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: macOS Option+←/→ is rewritten to ESC b/f even in full-screen apps (vim, TUIs)
There was an error while loading. Please reload this page.