GeezerVison is showing github.com — fix(web): @ picker hides threads while answering a question by ScottN-PV · Pull Request #18256 · pingdotgg/t3code
Conversation
Problem
While the composer answers a question-tool prompt, typing @<title> still offers other threads. An answer carries text and file attachments only (answers plus attachmentsByQuestionId), so a thread record has nowhere to go. On main, picking a thread there with Enter or a click leaves the answer as the typed @Release text and adds the thread's context record to the thread's ordinary message draft. After the question clears and the thread is reopened, that chip sits in the ordinary composer, and the next message goes out with a thread the user never mentioned there (#18233).
Change
A small composerPathMenuItems helper builds the @ path items and leaves threads out while the composer is answering a question. Files are still offered. Ordinary messages, including the normal composer of a held question, keep thread mentions. The thread branch of onSelectComposerItem also ignores a stale thread item while answering. The paste import path and mobile are unchanged.
Scope and approval
The triage names two directions: carry thread context through the answer path, or stop offering thread items while an answer is active. This takes the second; carrying thread context would need a contract change. Not covered: the Tab/caret glitch in the report did not reproduce (Tab selected nothing in our run), and selecting any @ item inside an answer, files included, leaves the typed text unchanged on both main and this branch.
Closes #18233
Verification
Agent-run in a headless browser (1280×800) against a Linux dev server, with a real Claude Sonnet 5.5 turn calling AskUserQuestion. No person tested this.
|
Main |
This branch |
@Release while answering |
 |
 |
| Thread reopened after the answer |
 |
 |
| Next ordinary message sent |
 |
 |
Main, reopening the thread and sending the next message:
18233-before.mp4
This branch, the same steps:
18233-after.mp4
- Main sent the leaked chip with the next message. This branch reopens to an empty composer and sends no chip. Ordinary-message
@Release still lists the thread on this branch.
vp test run src/components/chat/composerPathMenuItems.test.ts in apps/web: 3 passed (threads lead the list in an ordinary message, only files while answering, threads again afterwards, bare @ stays a file picker). The helper is new, so this test does not exist on main; the capture above is the before/after proof.
vp lint and vp fmt --check on the changed files and the web typecheck pass. Lint warnings in ChatComposer.tsx are unchanged from main.
Model: Claude Opus 5.5, Claude Fable 5.1 (review), GPT-6-Astra (review). Harness: Claude Code, Codex.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
A question answer carries text and files but no thread context. Picking
a thread from the @ menu while answering added the thread record to the
thread's ordinary draft, so the next ordinary message was sent with a
thread chip the user never added there. The picker now leaves threads
out while the composer answers a question, and the select path ignores
a stale thread item there.
Refs pingdotgg#18233
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Approved at 36a01d7
Macroscope's review found this PR approvable — This is a narrowly scoped composer bug fix that hides invalid thread context options only while answering a question, while preserving ordinary @ mentions and file entries. The pure helper and focused tests keep the change self-contained with no schema, default, or infrastructure impact.
Notes:
- Diff unchanged. Approvability was decided on eligibility alone.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
39431dd4-f5bc-4165-8679-74dae1458275
📥 Commits
-
Reviewing files that changed from the base of the PR and between ed0f7b9 and 36a01d7.
📒 Files selected for processing (3)
-
apps/web/src/components/chat/ChatComposer.tsx
apps/web/src/components/chat/composerPathMenuItems.test.ts
apps/web/src/components/chat/composerPathMenuItems.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
-
Walkthrough
The composer now builds path-trigger menu items through composerPathMenuItems. While answering a pending question, the menu omits thread items, and selecting a thread item does not insert a reference. Workspace path items remain available.
Changes
Composer path menu
| Layer / File(s) |
Summary |
Build path menu items apps/web/src/components/chat/composerPathMenuItems.ts, apps/web/src/components/chat/composerPathMenuItems.test.ts |
The helper places matching thread items before workspace path items during ordinary messages. While answering a pending question, it returns path items without thread items. Tests cover both states and an empty query. |
Integrate pending-question state apps/web/src/components/chat/ChatComposer.tsx |
ChatComposer passes thread, workspace, and pending-question state to the helper. It prevents thread-item selection while answering a pending question and updates the relevant memo and callback dependencies. |
Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~12 minutes
Change: Bug fix
Merge Risk: ⚪ Minimal · up to 36a01
No actionable merge-blocking issue is established; the change is ready for normal merge checks.
Pre-merge checks | 3 | 1
-
❌ Failed checks (1 warning)
| Check name |
Status |
Explanation |
Resolution |
| Linked Issues check |
 |
Issue #18233 requires two coding outcomes: Tab must insert the selected thread reference without moving the caret, and answer submission must preserve enough thread identity/context for the agent to c… |
Implement and test the answer-path behavior required by #18233. A selected thread must insert without changing the answer caret, and answer submission must carry the thread identity/context to the agent. Add automated coverage for selection… |
✅ Passed checks (3 passed)
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly and concisely identifies the main change: the web @ picker hides thread items while answering a question. |
| Description check |
 |
The description includes all required sections: Problem, Change, Scope and approval, and Verification. It explains the behavior, scope decision, linked issue, test results, browser evidence, limitatio… |
| Out of Scope Changes check |
 |
The reviewed changes are limited to the @ path-item helper, the pending-question thread-selection guard, and focused tests for the picker output. These changes directly address the thread leak descr… |
Full details: Linked Issues check
-
Explanation
Issue #18233 requires two coding outcomes: Tab must insert the selected thread reference without moving the caret, and answer submission must preserve enough thread identity/context for the agent to consult that thread. The new composerPathMenuItems implementation returns no thread items when answeringQuestion is true, and ChatComposer.tsx ignores stale thread selection in that state. The added tests verify hiding threads, not insertion, caret behavior, or context delivery. The PR therefore avoids the reported path instead of implementing the active issue requirements.
Resolution
Implement and test the answer-path behavior required by #18233. A selected thread must insert without changing the answer caret, and answer submission must carry the thread identity/context to the agent. Add automated coverage for selection and submitted context, including the Tab path.
- Fix all pre-merge checks with AI
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Closing. Main now delivers thread picks made while answering into the answer itself (#18789), so hiding threads from the @ picker would undo that fix. The remaining leak we found, a chip deleted from an answer whose record still reached the thread draft, is fixed in #19483.
Note Comment drafted by Claude Fable 5.1 on behalf of @ScottN-PV.
|
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.
Assignees
No one assigned
Labels
macroscope-review
Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|