GeezerVison is showing github.com — fix(web): F2 renames the open thread after one click on its row by AbdelrahmanHafez · Pull Request #39731 · pingdotgg/t3code
Conversation
Problem
F2 renames a thread only while its sidebar row has focus. Opening a thread moves focus from the row to the composer. So one click on a row and then F2 does nothing. A second click on the same row doesn't navigate, so the row keeps focus and F2 works.
Steps:
- Click a thread in the sidebar that isn't open.
- Press
F2.
Expected: the rename field opens in that row. Actual: nothing happens.
Change
The sidebar's window keydown handler now handles F2 from the composer. It starts the same inline rename that F2 on the row starts, so there's no new command, binding, or UI.
The handler acts only when:
- Focus is in the main composer's editor. Other fields, terminals, and side chat composers keep their current
F2 behavior.
- The open thread's row is on screen. A collapsed sidebar can't show the rename field, so
F2 does nothing there.
- No shortcut is active for the key in the composer. A chord that you bound to a command keeps that command.
- No earlier handler took the key, and the command palette and model picker are closed.
- No IME composition is in progress.
The focus move to the composer is deliberate, so I left it alone.
Scope
This is a small fix for a shortcut that already ships, so I didn't open an issue.
Earlier PRs in this area were closed as features. #27562 added a palette action and a new default binding. #6454 kept focus on the row after navigation. This PR does neither. The sidebar F2 rename came with #25877, and this makes it work after the one click that opens a thread.
If you see this as a behavior change, I'm happy to close it and open an issue.
Verification
Each recording shows one click on the Login redirect row and then F2. The dark label shows the input.
Before (main) |
After |
 |
 |
Sidebar.browser.test.tsx has cases for F2 from the composer, from another field in the composer, from a side chat composer, with the sidebar collapsed, as a bound shortcut, and during IME composition. The composer case runs with F2 bound to a command that is inactive in the composer.
scripts/scenarios/f2-renames-thread-after-one-click.e2e.ts clicks a row once and presses F2. I ran vp run scenarios:prove against origin/main. It fails on base 997575be5f because no Thread title field appears, and it passes on this branch.
- In a dev build,
Escape closes the field and focus goes to the row.
docs/user/keyboard-focus.md now says that F2 in the main message input renames the open thread when the sidebar shows it.
I didn't check the desktop shell, which wraps the same web code. Mobile has its own rename flow and doesn't change.
Claude Fable 5.2 in Claude Code did the work. GPT 6.2 Sol in Codex reviewed it.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…hread
# Conflicts:
# apps/web/src/components/Sidebar.browser.test.tsx
# apps/web/src/components/Sidebar.tsx
coderabbitai
Bot
commented
Nov 21, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
F2 in the main composer can rename the open thread when it appears in the sidebar. The sidebar checks the event target, composition state, shortcut bindings, and thread availability before starting rename.
Changes: Open Thread Rename
| Layer / File(s) |
Summary |
F2 eligibility, handling, and validation apps/web/src/components/Sidebar.logic.ts, apps/web/src/components/Sidebar.tsx, apps/web/src/components/Sidebar.browser.test.tsx, scripts/scenarios/f2-renames-thread-after-one-click.e2e.ts, docs/user/keyboard-focus.md |
The sidebar recognizes eligible F2 events in the main composer and starts renaming the open thread only when no composer-focus shortcut is bound and the thread is listed. Browser and end-to-end tests cover rename behavior and excluded contexts. The keyboard-focus guide documents the shortcut. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Sequence Diagram(s)
sequenceDiagram
participant MainComposer
participant Sidebar
participant ShortcutResolver
participant ThreadRename
MainComposer->>Sidebar: Send F2 key event
Sidebar->>Sidebar: Check event target, composition, and thread visibility
Sidebar->>ShortcutResolver: Resolve shortcut in composer-focus context
ShortcutResolver-->>Sidebar: Return matching command, if any
Sidebar->>ThreadRename: Start rename when no command is bound and thread is listed
Loading
Possibly related PRs
- pingdotgg/t3code#32273: Changes blur and Escape handling for the same sidebar and chat-header thread rename field used by the F2 path.
Suggested labels: bugfix
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to 3c2b5
-
Pressing F2 in the main composer now renames the open thread when its sidebar row is visible. Other fields, side chat, a collapsed sidebar, bound shortcuts, and IME composition are excluded and covered by tests. No merge-blocking risk was found.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(web): F2 renames the open thread after one click on its row" matches the main change: the sidebar window keydown handler now starts the thread rename with F2 from the composer after a s… |
| Description check |
 |
The description follows the repository template. It has Problem, Change, Scope, and Verification sections with substantive content. The Problem section gives the bug, expected and actual behavior, and… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title "fix(web): F2 renames the open thread after one click on its row" matches the main change: the sidebar window keydown handler now starts the thread rename with F2 from the composer after a single click opens the thread. It is a conventional commit title and is specific enough for a teammate scanning history. The changeset also includes tests, a scenario, and a docs update, which the title does not need to cover.
Full details: Description check
-
Explanation
The description follows the repository template. It has Problem, Change, Scope, and Verification sections with substantive content. The Problem section gives the bug, expected and actual behavior, and reproduction steps. The Change section explains the handler and its guard conditions. The Scope section links prior related PRs and explains why no issue was opened. The Verification section lists focused browser tests, an e2e scenario run against origin/main and this branch, a manual Escape check, and a docs update, with before/after GIFs. It also states what was not checked (desktop shell). It names the models used, as the template requests. Minor gap: the Scope section does not link a maintainer request or an issue, but it gives a reason for omitting one, as the template asks. The template's conventional-commit title guidance is met.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between aa0091b and 3c2b5ab.
Files selected for processing: 1
-
docs/user/keyboard-focus.md
Included 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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…hread
# Conflicts:
# docs/user/keyboard-focus.md
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
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.
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.
|