Skip to content

chore(upstream-sync): port 5 t3code commits - #817

Merged
trancong12102 merged 7 commits into
mainfrom
chore/upstream-sync-20261128-1608
Nov 28, 2026
Merged

trancong12102 merged 7 commits into
mainfrom
chore/upstream-sync-20261128-1608

Conversation

@trancong12102

@trancong12102 trancong12102 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Ports the 5 newest t3code commits: OpenDocument repeat counts, sign-in URLs with brackets, styled command tails, soft-reset Changes refresh and notebook cell highlighting.

Risky commits

  • 7d31551cfd fix(server): accept valid OpenDocument repeat counts. Extractor output changes (documents that used to fail now extract), so DocumentText VERSION goes from 26 to 27 and cached extractions are redone.
  • 7f694ec917 fix(server): git reset --soft in a terminal refreshes cached Changes totals. Clean merge, but upstream's test hung on Onicode: Onicode drops head events whose HEAD file is unchanged, and a soft reset never touches HEAD. Follow-ups a808e0a and 978c4ef give the HEAD.lock removal its own kind in that dedup: a checkout (HEAD and HEAD.lock events, either order) refreshes once, a soft reset (HEAD.lock only) always refreshes. nextHeadWatch holds the decision and has a table test.
  • b927b1fd93 fix(web): notebook previews highlight code cells regardless of language casing or kernel name. CONFLICT in NotebookPreview.tsx (Onicode's empty-notebook branch around the cell list); kept Onicode's layout and took upstream's notebookCellFileName.

Routine (taken as is)

  • a5eb0ec0e8 fix(client-runtime): keep sign-in URLs with square brackets intact on secret cards
  • 01cb3020b5 fix(shared): do not start a styled command tail with a detached accent

Adopt or keep

  • b927b1fd93: kept Onicode's empty-notebook state (upstream has none); adopted upstream's cell file-name mapping over Onicode's inline four-language table.
  • 7f694ec917: kept Onicode's HEAD-identity dedup and the watcher's own HEAD check (upstream misses checkouts made as a macOS watch starts); HEAD.lock removals join the dedup instead of bypassing it.

Skipped

None.

E2E scenarios

None in this batch.

Follow-ups

Upstream bugs from the review are queued for the next batch, since Batch fix 1600 is running: ODF text:c="0" skips content.xml and unbounded repeat counts; double HEAD.lock Remove events on Linux/Windows; terminal tail phantom blank line; unmapped Jupyter kernel names; secret-card URLs next to brackets.

Review

Antigravity gemini-4-neon (xhigh) reviewed 1a9e73d.

  • Port bug, fixed in 978c4ef: a808e0a sent HEAD.lock removals past the HEAD dedup, so a checkout whose lock event came first refreshed git status and the forge lookup twice. The ledger note for 7f694ec917 now records the adaptation.
  • Confirmed sound: the NotebookPreview conflict resolution, the DocumentText VERSION bump (old sidecars of documents with text:c="+2" held a skipped-part note), and the keep/adopt choices.
  • Upstream bugs: queued (see Follow-ups).
  • Not acted on: the reviewer asked for a timeout on Deferred.await(restored) in upstream's test; tests here never take timeouts (AGENTS.md), the runner's ceiling applies.

Checks

vp run check:changed green (format, lint, knip, typecheck of 37 packages, 8 test files, React Compiler), again after 978c4ef. VcsStatusBroadcaster (64), userInputAttachments, terminalOutput, secretRequest and the FilePreviewPanel notebook browser tests green.

Done with Claude Opus 5.5 in Claude Code, reviewed by Antigravity Gemini 4 Neon (xhigh).

🤖 Generated with Claude Code

saipraneethpb1 and others added 7 commits November 28, 2026 16:09
Ported from pingdotgg/t3code@7d31551cfd. Bumps DocumentText VERSION to 27 so cached extractions are redone.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… secret cards (#44810)

Ported from pingdotgg/t3code@a5eb0ec0e8.

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…t (#44808)

Ported from pingdotgg/t3code@01cb3020b5.

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…totals (#44815)

Ported from pingdotgg/t3code@7f694ec917.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Follow-up to 738c0c4 (t3code@7f694ec917). Onicode drops head events whose HEAD file is unchanged, and a soft reset never touches HEAD, so the HEAD.lock removal now takes the always-refresh path that index updates use. Upstream's test hung without this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ge casing or kernel name (#44818)

Ported from pingdotgg/t3code@b927b1fd93.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… twice

Follow-up to a808e0a. Sending every HEAD.lock removal down the index path skipped the HEAD dedup, so a checkout (HEAD.lock renamed onto HEAD) refreshed git status and the forge lookup twice when the lock event came first. HEAD.lock removals now share the dedup: a checkout refreshes once in either event order, and a soft reset, which leaves HEAD as it was, still refreshes. The ledger note for t3code@7f694ec917 records the adaptation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@trancong12102
trancong12102 force-pushed the chore/upstream-sync-20261128-1608 branch from b92b74a to 978c4ef Compare November 28, 2026 09:39
@trancong12102
trancong12102 merged commit d0de7f4 into main Nov 28, 2026
18 checks passed
@trancong12102
trancong12102 deleted the chore/upstream-sync-20261128-1608 branch November 28, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants