fix(web): opening a project from the command palette no longer lands in a subagent or side chat #29891
main fromrefs/pull/29891/head·merged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHubProblem#
In the web command palette, choosing a project from search opens that project's most recent thread. Re-adding a folder T3 Code already knows does the same. Both picks used every visible thread in the project, including subagent and side-chat threads. Those threads have no row in any thread list; they open inside their parent.
The default sort uses the latest user message. A subagent's sort time is its last update, which always comes after the parent's last user message. So after any turn that used a subagent, picking the project in Cmd+K opened the subagent transcript instead of the main conversation. A side chat used after the main thread's last message caused the same thing.
Change#
The palette's latest-thread picks now skip threads that isSidebarHiddenThread hides (subagents and side chats). The palette's own thread results already use that filter, added in #24032. In this component, threads feeds only these picks: the grouped and single-project paths of openProjectFromSearch, and the existing-folder path of add project.
Scope and approval#
Very small, focused fix for an obvious bug, so no prior issue: the palette already hides these threads from its thread results, and the contract says subagents and side chats never appear in thread lists. The change is one filter plus one regression test.
Overlap search: the local PR index and GitHub searches for palette/project/subagent turned up nothing that touches this path. The open PRs #29643 and #29666 change only the delete fallback (getFallbackThreadIdAfterDelete in Sidebar.logic.ts and useThreadActions.ts), not the command palette.
Verification#
- Red on main:
vp test run src/components/CommandPalette.browser.test.tsx→AssertionError: expected '/local/subagent' to be '/local/parent'. - Green with the fix, after a rebase on current main: 3 passed (3).
vp run check:changed: format, lint, knip, typecheck (2 packages), test (3 files) and react compiler all pass.- Not checked: a manual run in a real client. The test drives the real palette component, with mocked project and thread lists, and checks where the router ends up.
Reviewed with sol-loop: 1 round with GPT-6.1 Sol on high. Sol verdict: approved.
Created with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Approved at
e91d010Macroscope's review found this PR approvable — Project opening from the command palette now excludes side chats and subagents when choosing a destination, matching sidebar visibility. The change is limited to navigation selection and leaves existing thread data and settings unchanged.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review.
Walkthrough
-
The command palette now excludes sidebar-hidden threads from its visible thread list. A browser test checks that selecting a project navigates to its parent thread when a newer subagent also exists.
Changes: Command palette navigation
Layer / File(s) Summary Filter hidden threads and verify project navigation
apps/web/src/components/CommandPalette.tsx,apps/web/src/components/CommandPalette.browser.test.tsxThe command palette filters out threads classified by isSidebarHiddenThread. The browser test checks that selecting the project navigates to the parent thread.Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested labels:
size:SSuggested reviewers:
t3dotgg,juliusmarminge
Merge Risk:
Minimal · up toe91d0-
Project picks exclude hidden threads, with no material merge risk identified.
Pre-merge checks:
4-
Check name Status Explanation Title check The title names the main change: the command palette's project pick no longer opens a subagent or side chat. It follows the conventional commit format and matches the diff, which filters isSidebarHidd… Description check The description follows the template. It has Problem, Change, Scope and approval, and Verification sections. The Problem and Change sections state the bug, its cause, and the fix. Scope explains why n… 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 names the main change: the command palette's project pick no longer opens a subagent or side chat. It follows the conventional commit format and matches the diff, which filters isSidebarHiddenThread threads out of the latest-thread picks in CommandPalette.tsx.
Full details: Description check
-
Explanation
The description follows the template. It has Problem, Change, Scope and approval, and Verification sections. The Problem and Change sections state the bug, its cause, and the fix. Scope explains why no prior issue is needed, and Verification gives a red-then-green test result and the check run. Model and harness are named at the end. Two gaps remain. The template asks for a link to a triaged issue or maintainer approval, or an explanation for a small obvious fix, and the author gave the explanation but no approval link. The PR also has no UI screenshots, which the template asks for on UI changes. The change touches the command palette, so the template may apply.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
ast-grep (0.51.1)-
ast-grep could not parse rule config: /ast-grep-rules/ast-grep-essentials/rules/c/security/snprintf-non-literal-format-string-c.yml
Usage-based review receipt#
- Mode: Continue automatically
- Reviewed files: 2
- Charged: $0.50
- View usage details
Note
This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.
CodeRabbit Verify#
- Run CodeRabbit Verify to test the changes in this pull request.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 61c3794
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
3917e5f4-a76f-4b98-b134-f98ca8f2ce87
Commits-
Reviewing files that changed from the base of the PR and between 61c3794c32b0eeebfac09add43e403618c65d2d7 and e91d0109d51fd8cbedd556b22ed275e559df2393.
Files selected for processing: 2-
apps/web/src/components/CommandPalette.browser.test.tsxapps/web/src/components/CommandPalette.tsx
Limit details: You’ve used all 10 included reviews currently available.
-
-
Note
Written by
gpt-6.1-solon behalf of MariaVerified in a real dev environment#
verified as-is at
e91d0109d51fd8cbedd556b22ed275e559df2393on a disposable linux vm. no source changes or pushes.- installed and ran
github/main(61c3794c32) in a separate worktree first, then stopped it before starting the exact pr head. used isolated databases, with matching app-created data copied while main was stopped. - drove the actual web client with the repo's playwright and
/usr/bin/google-chrome. added the real repository through the app and ran codexgpt-6.1-solturns through the local provider proxy. no mocks, replay provider, fixtures, or database edits. - reproduced on main: selecting the project in ctrl+k opened the subagent transcript. a newer
/sideconversation also became the destination, both through project search and re-adding the existing folder. - on the pr, the same project search and existing-folder flow opened the parent conversation. repeated with a fresh real codex subagent turn on the pr; project selection still opened the parent.
- nearby behavior passed: intentional subagent opening and return to parent, opening the side chat in its parent panel, selecting a newer ordinary thread through project search, and explicitly finding the older parent by its thread title. subagents and side chats stayed absent from palette thread search.
- blacksmith:
vp test run apps/web/src/components/CommandPalette.browser.test.tsxpassed, 3/3 tests. current github ci is green. the worker initially lacked chromium; installed it there and reran successfully.
short runtime transcript:
main: server 16733, web 8693 project search -> subagent native-thread:01a19fe6-b8c7-7b73-9e25-c8ae43fc3827 project search / existing-folder add -> side chat fbaced55-6131-4362-99f7-6080ee8ba2d6 main stopped before pr startup pr: server 13773, web 5733 project search / existing-folder add -> parent c292c3b8-44be-441e-a1ac-bcea7e394782 fresh codex subagent -> PR_CHILD; parent -> PR_PARENT; project search -> parent new ordinary thread -> PALETTE_ORDINARY; project search -> that ordinary thread explicit older thread search -> original parentbefore, main opens the side chat:

after, the pr opens the parent with the same data:

15-second before/after interaction recording, with startup frames trimmed. the animation below is used for github compatibility; the mp4 was also inspected with playback and seeking in t3's browser:

Not verified#
native electron, ios/android, macos/windows, remote/relay/tunnel and multi-environment project grouping, other providers, and nondefault thread sort settings were not exercised. this pass used the local web client and real codex turns on linux.
- installed and ran
Yash-Singh1(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes