GeezerVison is showing github.com — fix(server): preserve Claude question option previews by juliusmarminge · Pull Request #21932 · pingdotgg/t3code
Conversation
Claude question options can include a preview, but the adapter discards it and the turn-item contract cannot carry it to clients. Preserve optional string previews verbatim through the existing question option schema and Claude AskUserQuestion mapping. Options without previews keep their existing shape.
First layer of the replacement for #15633, based on maria-rcks's discovery and original implementation. The client layer #21933 renders the field as Markdown on web/desktop and mobile. The original adapter test was folded into its existing AskUserQuestion scenario; no test cases or files were added.
Verification: the existing scenario fails without this change; the full Claude adapter suite and existing question contract test pass (299/299). Contracts and server typechecks, scoped lint and formatting pass. An earlier full adapter run timed out in an unchanged background-steering case; all six variants passed in isolation and the final full suite passed. All validation ran serially with nice -n 10 and at most two test workers.
This layer carries data only. Linux web proof in the client layer uses an isolated projection fixture; it is not a live Claude-provider run. macOS, Windows, iOS, Android, and Electron desktop were not exercised. Native Device access is disabled in this environment.
Independent full-stack review: three rounds of Opus 5.5 and GPT-6-Sol review, final round clean at c934d7c491. The last round rechecked both layers, current-main persistent drafts, and the fixes for CodeRabbit’s ambiguous saved-option and mobile Markdown findings. The rebase preserves the two new main draft-persistence scenarios alongside our two preview scenarios.
Implemented with Codex GPT-6.1-Sol; tests by Codex GPT-6-Astra (high); adversarial reviews by Claude Opus 5.5 and Codex GPT-6-Sol, through T3 Code delegate_task. Maintainer integration and proof: GPT-6.1-Sol through the Codex harness in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
juliusmarminge
changed the title
claude 04/question preview data
fix(server): preserve Claude question option previews
Oct 19, 2026
Approvability
Verdict: Approved at db4b1fa
Macroscope's review found this PR approvable — This is a narrowly scoped Claude adapter fix that preserves optional question previews through an additive, backward-compatible contract field. Existing options remain unchanged, and the adapter test covers both preview and non-preview cases.
Notes:
- All code in this push has already been reviewed. 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.
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Codex |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
20.9 KiB |
20.9 KiB |
0 B (0.0%) |
29.3 KiB |
✅ |
| Codex |
Live turn messages |
2 |
2 |
0 (0.0%) |
8 |
✅ |
| Claude |
Total thread wire |
5.0 KiB |
5.0 KiB |
+24 B (+0.5%) |
6.8 KiB |
✅ |
| Claude |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
+24 B (+2.0%) |
2.0 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
21.2 KiB |
21.2 KiB |
+41 B (+0.2%) |
29.3 KiB |
✅ |
| Claude |
Live turn messages |
1 |
2 |
+1 (+100.0%) |
8 |
✅ |
Baseline: 7ce7fe3 · PR result: db4b1fa · Source CI: success
Scenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 19, 2026
•
edited
Loading
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: Team
- Run ID:
143ae685-39bc-4647-99a6-be477ec1a13b
📥 Commits
-
Reviewing files that changed from the base of the PR and between fca03e1 and db4b1fa.
📒 Files selected for processing: 1
-
apps/mobile/src/features/threads/ThreadDetailScreen.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
📝 Walkthrough
-
The orchestration contract now allows an optional string preview on question options. The Claude adapter preserves supplied previews while retaining description fallback behavior. Tests cover multiple options and a multiline preview. A mobile import was added without runtime behavior changes.
Changes: User input option previews
| Layer / File(s) |
Summary |
Preview contract and mapping packages/contracts/src/orchestrationV2.ts, apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts |
Question options now support an optional string preview. The Claude adapter maps supplied string previews to projected options. Tests verify a multiline preview, multiple options, and description fallback behavior. |
React import update apps/mobile/src/features/threads/ThreadDetailScreen.tsx |
The file now imports useCallback. The change does not alter component behavior. |
Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: maria-rcks
Merge Risk: ⚪ Minimal · up to db4b1
-
No concrete current-head compatibility or runtime risk was established by the reviewed changes.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly and concisely describes the main change: preserving Claude question option previews. |
| Description check |
 |
The description explains the problem, implementation, scope, verification results, limitations, and tooling in substantial detail. It does not use the required section headings, and the scope approval… |
| 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: Description check
-
Explanation
The description explains the problem, implementation, scope, verification results, limitations, and tooling in substantial detail. It does not use the required section headings, and the scope approval or small-fix exemption is not stated explicitly.
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
# Conflicts:
# apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
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:S
10-29 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or 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.
|