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 — fix(web): @ picker hides threads while answering a question by ScottN-PV · Pull Request #18256 · pingdotgg/t3code

Conversation

@ScottN-PV

@ScottN-PV ScottN-PV commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

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 18233-before-1-answer-picker 18233-after-1-answer-picker
Thread reopened after the answer 18233-before-send-8-ordinary-open 18233-after-send-8-ordinary-open
Next ordinary message sent 18233-before-send-9-ordinary-sent 18233-after-send-9-ordinary-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.

All reactions
@ScottN-PV @claude
fix(web): @ picker hides threads while answering a question
36a01d7
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]>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Oct 11, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Oct 11, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 11, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 | Passed 3 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check Warning 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 Passed The title clearly and concisely identifies the main change: the web @ picker hides thread items while answering a question.
Description check Passed 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 Passed 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)
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

coderabbitai[bot]
coderabbitai Bot approved these changes Oct 11, 2026
View reviewed changes
@juliusmarminge juliusmarminge added the macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews label Oct 11, 2026 — with ChatGPT Codex Connector
@macroscopeapp
macroscopeapp Bot dismissed their stale review October 11, 2026 16:02

Dismissing prior approval to re-evaluate 36a01d7

macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 11, 2026
View reviewed changes
@ScottN-PV ScottN-PV mentioned this pull request Oct 14, 2026
fix(web): deleted answer chips no longer return after picking an option #19483
Merged
@ScottN-PV

ScottN-PV commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@ScottN-PV ScottN-PV closed this Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] approved these changes
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Selecting an @ thread reference with Tab fails while answering a question-tool prompt

Uh oh!

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

2 participants

@ScottN-PV @juliusmarminge
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.