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): preserve original mention text in the composer by juliusmarminge · Pull Request #10100 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Sep 5, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

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:

Before: composer remains stuck on the recalled README mention

After, the same sequence reaches the older prompt:

After: composer reaches Older plain control

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.

All reactions
juliusmarminge added 2 commits September 5, 2026 05:03
@juliusmarminge
fix(web): preserve original composer mention text
6bb3066
@juliusmarminge
test(web): verify controlled mention source roundtrips
885cc01
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Sep 5, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Sep 5, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge
juliusmarminge merged commit 761d4ba into main Sep 5, 2026
22 checks passed

Uh oh!

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

@juliusmarminge
juliusmarminge deleted the fix/composer-mention-source branch September 5, 2026 12:37
@juliusmarminge juliusmarminge mentioned this pull request Sep 5, 2026
fix(composer): preserve authored text in prompt recall #10102
Closed
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Sep 5, 2026
@github-actions
nightly: 0.0.39-nightly.20260905.1287
0deea25
## What's Changed
* fix(server): keep Homebrew mise shims manual-only by @juliusmarminge in pingdotgg/t3code#10085
* fix(ssh): report remote package installation failures accurately by @juliusmarminge in pingdotgg/t3code#10088
* fix(web): keep bulk thread deletion going after failures by @m-de-graaff in pingdotgg/t3code#4615
* fix(web): scale agent spawn rows with interface font by @juliusmarminge in pingdotgg/t3code#10092
* fix(web): prevent sidebar tooltip title clipping by @UtkarshUsername in pingdotgg/t3code#10086
* fix(web): keep the composer expanded until the thread can scroll by @t3dotgg in pingdotgg/t3code#9965
* fix(web): preserve original mention text in the composer by @juliusmarminge in pingdotgg/t3code#10100

## New Contributors
* @m-de-graaff made their first contribution in pingdotgg/t3code#4615

**Full Changelog**: pingdotgg/t3code@v0.0.39-nightly.20260905.1286...v0.0.39-nightly.20260905.1287

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.39-nightly.20260905.1287
incognitojam pushed a commit to incognitojam/styal that referenced this pull request Sep 24, 2026
@juliusmarminge @incognitojam
fix(web): preserve original mention text in the composer (pingdotgg#1…
0d7cbc3
…0100)

(cherry picked from commit 761d4ba)
Upstream-PR: 10100
@Nurozen Nurozen mentioned this pull request Oct 8, 2026
fix: integrate upstream checkpoint d0f855bfa91b Nurozen/lecturn#115
Merged
henrik092 pushed a commit to henrik092/t3code that referenced this pull request Nov 2, 2026
@juliusmarminge
fix(web): preserve original mention text in the composer (pingdotgg#1…
aab247b
…0100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@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

size:S 10-29 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

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.

1 participant

@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.