GeezerVison is showing github.com — fix(web): preserve original mention text in the composer by juliusmarminge · Pull Request #10100 · pingdotgg/t3code
Conversation
Recalling @README.md control rewrites its 18 characters into the 30-character [README.md](README.md) control. Moving the caret then clears the active history position, so ArrowUp no longer reaches the older prompt.
Preserve the parser's original source in the existing mention node, including Lexical clones and JSON round trips. New mentions and legacy JSON without source keep their canonical serialization. Visual chips are unchanged.
Related #10056. This fixes mention serialization only, not the separate send-time provenance problem.
Verified on September 5, 2026 against latest fetched main 485782b2, with candidate 885cc01a:
- In the actual browser client, empty composer → ArrowUp → Control+Home → ArrowUp gets stuck on main and reaches
Older plain control with the fix. Direct ArrowUp → ArrowUp works on main; that is not the failing sequence.
- The candidate keeps the original 18 characters and the visual file chip. Forward history, return to empty, and a recalled draft surviving reload also pass.
- 125 focused tests pass, including actual React/Lexical serialization, quoted and Unicode paths, encoded spelling, controlled prompt replacement and cursor offsets, clone/JSON reload, and legacy/new-mention defaults. Web typechecking, scoped lint, and formatting pass. The orchestrator independently repeated the 125 tests and reviewed both complete changed files and their callers.
The browser comparison uses the same isolated mock backend and stored messages at 1280×900. This proves client recall behavior, not real-provider turn completion. Web and Electron share the changed editor; the separate mobile composer, provider adapters, and wire contracts are unchanged.
Before, after the caret-move/history sequence:

After, the same sequence reaches the older prompt:

Before recording, 4.8 seconds · After recording, 3.7 seconds. Only startup time was trimmed. No UI reconstruction or timing changes.
GPT 6 Astra via Codex in T3 Code.
Note
Preserve original mention text in the ComposerPromptEditor
Fixes mention serialization so the original source survives editor reconstruction, Lexical cloning, and JSON export/import.
- Adds a headless test suite in ComposerPromptEditor.serialization.test.tsx covering plain text, file mentions, terminal contexts, quoted and Unicode paths, and Markdown citations.
- Tests assert controlled prompt replacement, legacy mention JSON fallback (missing
source field), and canonical serialization of newly pasted mentions.
- Runtime change: preserve the parser's original mention source during editor reconstruction, cloning, and JSON round trips. New pasted mentions and legacy JSON retain canonical serialization.
Macroscope summarized 885cc01.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 885cc01
Macroscope's review found this PR approvable — The change is a narrowly scoped composer bug fix that preserves original mention text across controlled updates, Lexical cloning, and JSON round trips while keeping legacy and newly inserted mentions canonical. Its runtime impact is confined to existing mention serialization, with focused coverage and no broader API, infrastructure, or sensitive-area changes.
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 |
13.5 KiB |
13.6 KiB |
+50 B (+0.4%) |
15.1 KiB |
✅ |
| Codex |
Thread snapshot wire |
7.0 KiB |
7.0 KiB |
+10 B (+0.1%) |
7.3 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
6.5 KiB |
6.5 KiB |
+40 B (+0.6%) |
7.8 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
57.0 KiB |
57.1 KiB |
+88 B (+0.2%) |
66.4 KiB |
✅ |
| Codex |
Live turn messages |
8 |
10 |
+2 (+25.0%) |
21 |
✅ |
| Claude |
Total thread wire |
13.6 KiB |
13.6 KiB |
+44 B (+0.3%) |
15.1 KiB |
✅ |
| Claude |
Thread snapshot wire |
7.0 KiB |
7.0 KiB |
−1 B (−0.0%) |
7.3 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
6.5 KiB |
6.6 KiB |
+45 B (+0.7%) |
7.8 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
57.8 KiB |
57.9 KiB |
+44 B (+0.1%) |
66.4 KiB |
✅ |
| Claude |
Live turn messages |
9 |
10 |
+1 (+11.1%) |
21 |
✅ |
Baseline: 485782b · PR result: 885cc01 · 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: 113.8 KiB
- Claude decoded thread snapshot: 114.5 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.
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
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.
|