GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add shortcut to settle the open thread by colonelpanic8 · Pull Request #4277 · pingdotgg/t3code

Conversation

@colonelpanic8

@colonelpanic8 colonelpanic8 commented Jul 22, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What Changed

  • add thread.settle as a configurable keybinding command with Mod+Shift+X as the default
  • show a confirmation dialog for the open thread before settling
  • focus the primary action so Enter confirms, while Escape cancels
  • preserve Sidebar V2's existing move-to-next-thread behavior after a successful settle
  • document the command and cover default/resolution behavior with tests

Why

Settling the thread currently requires targeting a hover-only sidebar action. A global shortcut makes this frequent lifecycle action available without leaving the keyboard, while the focused confirmation prevents accidental settles and makes the confirmation keystroke explicit.

UI Changes

The shortcut opens an in-app alert dialog naming the thread and explaining that it moves out of active work. The Settle thread button is the initial focus target and displays an Enter key hint; Escape cancels.

Exact-head browser verification completed in an isolated environment against a disposable thread; the focused confirmation state is shown below.

Checklist

  • vp check
  • vp run typecheck
  • vp test apps/web/src/keybindings.test.ts apps/server/src/keybindings.test.ts
  • vp run --filter @t3tools/web build

Exact-head evidence

Revalidated at 2d4990a04b59: focused tests, vp check, and vp run typecheck passed. Integrated browser verification confirmed Mod+Shift+X opens the settle dialog from the focused composer while preserving draft text, and Mod+Shift+Enter no longer triggers settlement. The capture uses only disposable local projects.

Settle-thread confirmation with focused primary action


Note

Medium Risk
Touches thread lifecycle navigation and keyboard handling in both sidebars; mistakes could mis-route after settle or settle ineligible threads, though confirmation and extensive unit tests mitigate this.

Overview
Adds thread.settle (Mod+Shift+X, !terminalFocus) to contracts, shared defaults, server bootstrap tests, and user keybinding docs.

resolveThreadSidebarShortcutAction centralizes thread shortcut handling for both sidebars: navigate, open settle confirmation, consume (ineligible route, in-flight settle, or modal open), or ignore. While a settle dialog is open, other thread shortcuts are consumed so the route does not change behind it.

Legacy and V2 sidebars wire the shortcut to an AlertDialog (Enter on the focused “Settle thread” action, Escape cancels). On confirm they call settleThread and, if you are still on that thread, advance via resolveNextActiveThreadIdAfterSettle (visible order first, full unarchived list as fallback), skipping effectively settled and snoozed threads—or start a new thread when none remain. Shortcut handling is skipped when the command palette or model picker is open.

Supporting changes in Sidebar.logic: PR/change-request state for hidden or collapsed rows (git cwd resolution, worktree-only git queries, pending-state publish rules), shared effective settled/snooze helpers, and confirmation dismiss rules. Visible rows report PR state upward for auto-settle classification.

Reviewed by Cursor Bugbot for commit 0b21321. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Add thread.settle keyboard shortcut (Mod+Shift+X) to settle the open thread from the sidebar

  • Adds thread.settle to the keybinding system, bound to Mod+Shift+X with !terminalFocus, in both shared keybindings and contracts.
  • Introduces resolveThreadSidebarShortcutAction in keybindings.ts to classify thread shortcuts into none, consume, navigate, or confirm-settle outcomes, replacing direct traversal/jump index logic.
  • Both Sidebar.tsx and SidebarV2.tsx now show an AlertDialog confirmation before settling; on confirm, the thread is settled and the sidebar navigates to the next active thread or opens a new one.
  • Adds hidden SidebarHiddenThreadChangeRequestStateReporter components to track per-thread PR/change-request state for threads not currently visible in the sidebar, used to determine effective settlement state.
  • Keyboard shortcut handling is suppressed when the command palette or model picker is open.

Macroscope summarized 0b21321.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 38e4f40b-f610-4e24-ac88-91c13c002385

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list. labels Jul 22, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/SidebarV2.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/SidebarV2.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/web/src/components/SidebarV2.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/shared/src/keybindings.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Jul 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

New feature adding a keyboard shortcut to settle threads, with confirmation dialog and post-settle navigation logic across both sidebar implementations. New user-facing capabilities warrant human review.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@colonelpanic8
colonelpanic8 force-pushed the feat/settle-thread-keybinding branch from 4ac33ed to a3cb697 Compare July 22, 2026 14:52
@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). and removed size:M 30-99 changed lines (additions + deletions). labels Jul 22, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.logic.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@colonelpanic8
colonelpanic8 force-pushed the feat/settle-thread-keybinding branch 2 times, most recently from 7e1eb9e to e6e9e4a Compare July 22, 2026 16:10
cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@colonelpanic8
colonelpanic8 force-pushed the feat/settle-thread-keybinding branch from e6e9e4a to f065547 Compare July 22, 2026 16:16
macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/SidebarV2.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added size:XL 500-999 changed lines (additions + deletions). and removed size:L 100-499 changed lines (additions + deletions). labels Jul 22, 2026
cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/SidebarV2.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@colonelpanic8
colonelpanic8 force-pushed the feat/settle-thread-keybinding branch from 2d4990a to a6d2a79 Compare July 22, 2026 23:43
cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread apps/web/src/components/SidebarV2.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 23, 2026
View reviewed changes
Comment thread apps/web/src/components/SidebarV2.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@colonelpanic8
colonelpanic8 force-pushed the feat/settle-thread-keybinding branch from 60ff41d to f2cc119 Compare July 23, 2026 16:15
colonelpanic8 and others added 18 commits July 27, 2026 19:46
@colonelpanic8
fix(web): report sidebar PR state on settings routes
048c0f0
@colonelpanic8
Change settle shortcut to Mod+Shift+X
329a358
@colonelpanic8
fix(web): adapt settle reporter to current PR status API
034ee04
@colonelpanic8
fix(web): keep PR state live for hidden sidebar threads
2183f8e
@colonelpanic8
fix(web): report worktree PR state for hidden threads
0cbc1ac
@colonelpanic8
fix(web): restore server config hook after rebase
7713501
@colonelpanic8
fix(web): deduplicate sidebar button import after rebase
ea973f6
@colonelpanic8
fix(web): keep sidebar PR state current
238acba
@colonelpanic8
fix(web): query PR state for worktree-only threads
99c23e6
@colonelpanic8
fix(web): narrow sidebar git status cwd
159802d
@colonelpanic8
fix(web): retain PR state during sidebar refresh
30835f5
@colonelpanic8
fix(web): align legacy settle shortcut eligibility
070a6d4
@colonelpanic8
fix(web): skip explicitly settled legacy threads
46c756c
@colonelpanic8
fix(web): use current route for settle navigation
e6b395b
@colonelpanic8
fix(web): close stale settle confirmations
e1e8e16
@colonelpanic8
fix(web): skip snoozed settle fallbacks
8da830f
@colonelpanic8
fix(web): skip snoozed legacy settle targets
6fa8b1a
@colonelpanic8
fix(web): include hidden active threads after snooze
0b21321
@colonelpanic8
colonelpanic8 force-pushed the feat/settle-thread-keybinding branch from e7fdf0f to 0b21321 Compare July 28, 2026 02:50
colonelpanic8 added a commit to colonelpanic8/t3code that referenced this pull request Jul 28, 2026
@colonelpanic8
assembly: merge pingdotgg#4277 (Settle the open thread with Mod+Shift+X)
e2f4a76
# Conflicts:
#	apps/web/src/components/SidebarV2.tsx
#	apps/web/src/keybindings.test.ts
colonelpanic8 added a commit to colonelpanic8/t3code that referenced this pull request Jul 28, 2026
@colonelpanic8
assembly: merge pingdotgg#4277 (Settle the open thread with Mod+Shift+X)
be934dd
# Conflicts:
#	apps/web/src/components/SidebarV2.tsx
#	apps/web/src/keybindings.test.ts
@moosashah moosashah mentioned this pull request Aug 4, 2026
[Feature]: Expose more actions as bindable keybinding commands #4641
Closed
3 of 9 tasks
@jackmhny jackmhny mentioned this pull request Aug 10, 2026
feat(web): add configurable settle shortcut #5940
Closed
colonelpanic8 added a commit to colonelpanic8/t3code that referenced this pull request Aug 10, 2026
@colonelpanic8
Rebase PR pingdotgg#4277 onto orchestration v2 + latest main
0ebf7de
colonelpanic8 added a commit to colonelpanic8/t3code that referenced this pull request Aug 11, 2026
@colonelpanic8
Rebase PR pingdotgg#4277 onto orchestration v2 + latest main
cd29048
@t3dotgg t3dotgg mentioned this pull request Aug 24, 2026
feat(web): settle and restore threads with a keyboard shortcut #8089
Merged
@t3dotgg

t3dotgg commented Aug 25, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-5.6 Sol responding on behalf of Theo

Closing in favor of merged #8089. It adds the configurable thread.settle shortcut and uses the same shortcut to settle or restore the active thread. Your work is credited in #8089.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@colonelpanic8 @t3dotgg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.