Skip to content

chore(upstream-sync): port 42 t3code commits - #815

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

trancong12102 merged 51 commits into
mainfrom
chore/upstream-sync-20261128-1329

Conversation

@trancong12102

@trancong12102 trancong12102 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Ports 42 t3code commits and skips 4: consent before Onicode reads each agent's usage history, Cursor SDK 1.5.2, drawing on image attachments before sending, a reconnecting status in place of a stale working status, renaming saved environments, Antigravity background waits that honor awaited: false, CJK-friendly emphasis, project-scoped message search, a Reinstall action for provider installs missing their platform package, machine-wide Actions back in All projects settings, and a run of document-preview, source-control and shell fixes.

Risky commits

  • ee961f64c8 feat(web): draw on image attachments — adapted. Onicode's ZoomableImage is controlled by the dialog (fit, zoom and natural size live in ExpandedImageDialog), so upstream's overlay prop was added to Onicode's version: effective zoom is 1 and changeZoom is off while drawing. The Draw button sits in Onicode's bottom media toolbar (zoom buttons disabled while drawing) instead of upstream's header; Escape, Close and arrow navigation follow upstream. Browser test caption adapted to Onicode's "1 / 2" counter. Desktop only; mobile has no attachment drawing (follow-up).

  • 9a9cfe2910 fix(antigravity): advertise supportsBackgroundWait, honor awaited: false — first-tier provider. Adapter code merged cleanly onto Onicode's ACP adapter; test conflict kept Onicode's isRuntimeOutdated/promptCapabilities options beside upstream's finalizeGate. Antigravity (54), ACP adapter (251) and provider-acp tests pass.

  • 68bb7b7dcd fix(web): CJK punctuation before a closing ** — adds remark-cjk-friendly and remark-cjk-friendly-gfm-strikethrough to @onicode/shared; lockfile regenerated with vp i (additions only).

  • 56d7f8df87 fix(search): scope message results to selected projects — contracts doc only; projectIds was already an optional field, so older servers ignore it outside the older-settled path.

  • d4b5a16af3 fix(client): reconnecting instead of stale working status — adapted: the guest-request branches upstream sits beside are removed in Onicode, so the connection status follows approval/input. Touches SidebarThreadRow.tsx and Sidebar.logic.ts, not Sidebar.tsx; Sidebar.browser.test.tsx (row-render isolation included) passes. Desktop and mobile both covered.

  • 8777bfbea0 feat(web): rename saved environments — adapted: T3 Connect relay label ownership, its rename refusal and its string (all catalogs) dropped. Re-registration now keeps a saved label unless useRegistrationLabel marks the requested edit; Onicode's SSH-based registry tests (upstream used relay targets) pass that flag. Desktop settings only; mobile has no rename (follow-up).

  • 658b56d345 fix(web): RTF table cell lines — conflict: Onicode's earlier Unicode-fallback branch already consumes the escaped line break, so upstream's inner fallback check was not needed.

  • 666013f6de fix(client-runtime): balanced link destinations in workflow summaries — adopted upstream's scanner; see below.

  • 0f181324a5, a6dc0b7e53 — conflicts onto Onicode's shapes; see below.

  • 755b73c2eb fix(server): a provider update that leaves Codex unable to start says why — provider maintenance is the shared update path (any npm-installed provider whose launcher reports "Missing optional dependency"). i18n conflict: kept Onicode's cancel-update keys; only the new "Reinstall" key was added ("Updating", "Install {version}", "Update now" already exist). Runner and providerStatus tests pass; web and server typecheck.

  • 23846b0c68 fix(desktop): certificate dialog does not split an emoji — taken as is; BrowserSession test passes.

  • 7fd04118be feat: ask before reading each agent's usage history and sign-in (contracts, mobile, provider; 2300 lines) — adapted. Taken: the optional usageAccess on provider instances (unset = not asked), accessRequests on the usage summary and needsUsageAccess on limits (all optional, so older mobile builds decode them), usage scans of enabled and allowed instances only, Grok and OpenCode Go sign-in reads behind the grant, Antigravity profiles of unread instances skipped, the Usage access dialog (desktop) and card (mobile), the per-agent switch in Settings → Providers, and the Welcome page's "Find my projects" step that holds the agent-history scan until asked. Behaviour change: until a user answers, Usage shows no history for that agent. Adapted: Onicode's Claude reads email and workspace from the Agent SDK account and keeps no reset credits (316095659c), so Claude reads no sign-in file and its driver only gains upstream's skip of settings.json while turned off. Kept Onicode's startup Claude skill scan: upstream's move to per-project scanning rode along in this commit and is outside its subject (follow-up). Onicode's Welcome page has no Settings review shortcut, so the scan opens on a saved selection or a click. useImportSourcesLabel now names only enabled agents in Settings → Import too. The registry's label-change test gained a usage access row (the grant does not restart the instance and the driver reads it live). Rebranded strings got their new catalog hashes.

  • a7484fbd51 chore(cursor): Cursor SDK 1.5.2 (deps) — took upstream's 1.5.2 patch (Onicode's 1.5.0 patch was identical); kept Onicode's newer pins elsewhere and dropped upstream's Clerk/alchemy/older entries from the workspace conflict; lockfile regenerated, patch hash matches upstream. 10df37a983 (patch follow-up) took upstream's patch verbatim: the port's name translation garbles minified SDK code into a false conflict. Cursor provider tests pass.

  • 6a4209464c fix(mobile): backticked routing filenames with line numbers become links — regex only; test passes.

  • 748bb54477 fix(desktop): log rotation keeps backups when the active log cannot be moved — taken as is; desktop typecheck and tests pass.

Routine commits

  • 6bc099829a, 1b0a149b83, 00394b3ae3, a7acbf5746, 1c2770d735, 0e7fed78a2, 3993c6b0b5, d3be4d4caf, ff28b19dee, c9771b7717 — taken as is.

  • b5c96a923e, 6b6846385a, 1d4d1f7f0e, b4ce58b0d2 — taken as is.

  • 88c457d3fe All projects settings show machine-wide Actions — import conflict: kept Onicode's ImportThreadsRow beside upstream's ProjectActionsSettings.

  • 347d6a668f SSH rows bracket IPv6 hosts with a port — test conflict: dropped the adjacent resolveCurrentOriginPairingUrl cases (browser-served pairing is removed in Onicode).

  • 809d6dd137 Polish maximize tooltips — conflict onto Onicode's catalog; adopted upstream's "Maksymalizuj" wording.

  • 71a5e97ce2 ODT hidden character styles — taken; follow-up commit builds the test archive as Onicode's Map (Onicode's tests have no JSZip).

  • 38aaacd480, 772f8d40ce, 58fcd9f729 (Forgejo, follows upstream), 2c6e0641f7, 0ac1453a39, b68de0fb09 — taken as is.

  • c5d7fddabc thread links inside indented Markdown code — conflict: kept Onicode's RangeError fallback parser beside upstream's simpler parse guard (the parse still runs only when the text has a thread link).

  • 13cda455bd ODS shape text — taken; follow-up commit builds the test archive as Onicode's Map.

Adopt-or-keep decisions

  • adopted upstream's link destination scanner (666013f6de) over Onicode's single-paren link regex in workflowOneLine: handles nested parentheses, angle destinations and titles; kept Onicode's paragraph-end whitespace stop inside the now-exported scanner.

  • kept Onicode's userinfo parse (0f181324a5): the same regex and first-colon split had already landed; upstream's test added and passes.

  • kept Onicode's per-variable appImageRuntimeScrub (a6dc0b7e53), with upstream's normalized mount-path match applied inside it.

  • kept Onicode's controlled ZoomableImage and bottom media toolbar (ee961f64c8): they carry Onicode's fit, actual-size and zoom controls; upstream's overlay works on top of them.

  • adopted upstream's Polish tooltip wording (809d6dd137).

  • kept Onicode's worktree index-refresh FiberMap (28b17bd0e8, skipped as already done): its keys resolve symlinks and Windows case, so removing a worktree stops the refresh even when Git reports a physical path (/tmp vs /private/tmp); upstream's path.resolve key misses that.

  • kept Onicode's Agent-SDK Claude identity (7fd04118be): no sign-in file read to gate.

  • kept Onicode's startup Claude skill scan (7fd04118be): see follow-ups.

  • kept Onicode's RangeError fallback Markdown parser in thread links (c5d7fddabc), adopted upstream's parse guard.

Skipped

  • 5530f8fa15 fix(server): environment descriptor answers while secret reads stall — Onicode's descriptor is a constant: agent activity publishing (relay/T3 Connect) was removed, so nothing can stall.

  • 28b17bd0e8 fix(server): removing a new worktree stops its background index refresh — already done in Onicode (fa46bbb), with symlink- and case-aware keys.

  • 0757ccee8c fix(client-runtime): DPoP clock-skew diagnostics during direct pairing — DPoP proofs belong to T3 Connect relay pairing, which Onicode removed.

E2E

  • No scenario changes in this batch.

Follow-ups

  • Upstream bugs found in review are queued in the follow-up queue for the next batch; Batch fix 0600 was running, so no new thread was started. They are: reconnect churn re-rendering every thread row (threadShell keys shells by connection phase), working rows un-receding during a reconnect, the annotated-image name/MIME staying stale after a re-encode, ACP released-tool completions dropped between turns and double "failed" on a crash (Antigravity), mobile rename relabelling only one route, the provider-update startupFailure message picking up unauthenticated Claude/Codex instances, plus four low ones (git config leading Unicode whitespace, grapheme-unsafe certificate-name truncation, escaped \) in unquoted CSS url(), double-bracketed IPv6 SSH hosts).

  • Mobile: no image-attachment drawing (ee961f64c8), no environment rename (8777bfbea0), no Reinstall action (755b73c2eb), no CJK-friendly emphasis (68bb7b7dcd; mobile parses Markdown separately).

  • Claude skills: upstream (7fd04118be) moved Claude's skill scan from provider startup to per-project composer probes. Onicode kept the startup scan: resolveProviderSkillsForCwd falls back to provider.skills when a cwd has no workspace snapshot yet, so dropping the scan would leave a new composer without skills until its probe lands.

  • The delta-2 review also found upstream bugs, all queued for the next batch:

    • usageAccess toggles refresh every driver;
    • an ODS annotation nested in a list leaks into the cell value;
    • env -vS command labels;
    • heredoc scanning in PR sync;
    • the composer mouseSelecting flag sticks after a missed mouseup.
  • Left to upstream (tier-2): OpenCode needsUsageAccess for an external server, and Muse spawning its CLI before access is answered.

  • Usage access can only be changed from desktop Settings; mobile shows the first-time card but has no per-agent switch (same as upstream).

Review

Antigravity gemini-4-neon (xhigh) reviewed the whole branch at 37326ae (two passes: up to 1f25d28, then the last 8 commits). Port bugs, fixed here:

  • Drawing (ee961f64c8 adaptation): entering Draw left Onicode's controlled zoom at the pre-draw value while the overlay drew on the fitted image, so the zoom pill read e.g. 300% over a fitted image and Cancel jumped back to a reset scroll. Draw now resets zoom to fit.
  • Drawing: over a height-fitted image (desktop landscape) the floating drawing toolbar covered Onicode's header row (counter and filename). That row hides while drawing; Close stays reachable. New browser test at 1440×900, failing before the fix.
  • Checkpoint capture (ff28b19dee adaptation): Onicode's in-lock re-read of the capture context (fix(server): commands during the turn-end capture keep the run, the queue pick and the delegated task #723) still loaded every preserved checkpoint; it now takes the same baselines-only option.
  • Ledger note wording for 755b73c2eb.

Upstream bugs: queued (see Follow-ups).

Delta-2 review (Antigravity gemini-4-neon xhigh, the 15 bundled commits at 7424171702). Port bugs, fixed here in d8828d7:

  • Usage access copy (7fd04118be adaptation). Onicode's Claude takes its identity from the Agent SDK and never reads the sign-in or reset credits, yet the copy said it did.
    • The Settings note, the desktop and mobile consent label, and the Welcome checkbox now say only what Onicode reads.
    • The dialog test uses Grok for the "Session history and sign-in" case.
  • Mobile footers. They pointed to "web or desktop Settings"; they now say desktop Settings. One older footer in provider accounts got the same fix.
  • Settings → Import threads. It named an empty agent list when no turned-on agent keeps importable history (Claude, Codex, Pi). The row now hides in that case.
  • History. The ODS test follow-up was squashed into its port, and the ledger note was corrected, so every commit builds.

Dismissed: "drop the startup Claude skill scan, no consumer". The scan is the fallback for a cwd without a workspace snapshot (see Follow-ups).

Done with Claude Opus 5.5 in Claude Code, reviewed by Antigravity gemini-4-neon (xhigh).

🤖 Generated with Claude Code

@trancong12102
trancong12102 force-pushed the chore/upstream-sync-20261128-1329 branch from 7075eff to 8f85b44 Compare November 28, 2026 07:23
juliusmarminge and others added 29 commits November 28, 2026 14:45
…heir name (#44699)

Ported from pingdotgg/t3code@6bc099829a.

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

Ported from pingdotgg/t3code@1b0a149b83.

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…e same checkout (#44706)

Ported from pingdotgg/t3code@00394b3ae3.

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

Ported from pingdotgg/t3code@9a9cfe2910.

Co-authored-by: thecsguy <344173356+itsthecsguy@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
Ported from pingdotgg/t3code@658b56d345.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@a7acbf5746.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ttributes (#44726)

Ported from pingdotgg/t3code@1c2770d735.

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…n chat or search (#42238)

Ported from pingdotgg/t3code@68bb7b7dcd.

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
…4723)

Ported from pingdotgg/t3code@0e7fed78a2.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@56d7f8df87.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gtimeout (#44735)

Ported from pingdotgg/t3code@3993c6b0b5.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@d4b5a16af3.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
… like git@ remotes (#44717)

Ported from pingdotgg/t3code@d3be4d4caf.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@71a5e97ce2.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@8777bfbea0.

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Follow-up to the port of t3code 71a5e97ce2: Onicode's document tests pass a
Map of entries, not JSZip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ummaries (#44730)

Ported from pingdotgg/t3code@666013f6de.

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@ff28b19dee.

Co-authored-by: marcel <marcel@marcels-MacBook-Air.local>
Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@c9771b7717.

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tials when usernames contain @ (#43841)

Ported from pingdotgg/t3code@0f181324a5.

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ronments (#44737)

Ported from pingdotgg/t3code@a6dc0b7e53.

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

Ported from pingdotgg/t3code@b5c96a923e.

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

Ported from pingdotgg/t3code@755b73c2eb.

Co-authored-by: Yash Singh <saiansh2525@gmail.com>
…#44746)

Ported from pingdotgg/t3code@6b6846385a.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…eview examples (#44736)

Ported from pingdotgg/t3code@1d4d1f7f0e.

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
only21mil and others added 20 commits November 28, 2026 14:46
Ported from pingdotgg/t3code@347d6a668f.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ML renders (#44744)

Ported from pingdotgg/t3code@b4ce58b0d2.

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

Ported from pingdotgg/t3code@23846b0c68.

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

Follow-up to d9b55aa (port of t3code ee961f64c8). Onicode's preview keeps a
controlled zoom and a header row, which upstream's dialog does not have:
- entering Draw left the zoom pill at the pre-draw zoom while the overlay
  drew on the fitted image; Draw now resets zoom to fit.
- over a height-fitted image the floating drawing toolbar covered the
  header's counter and filename; that row now hides while drawing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to ae6aaad (port of t3code ff28b19dee). Onicode re-reads the
capture context under the thread command lock (#723), which upstream does
not; that read only uses the run and root node, so it takes the same
baselines-only option instead of loading every preserved checkpoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nv - in command labels (#44740)

Ported from pingdotgg/t3code@38aaacd480.

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

Ported from pingdotgg/t3code@772f8d40ce.

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

Ported from pingdotgg/t3code@6a4209464c.

Co-authored-by: Victor Vogel <satsdev@only21mil.xyz>
…e moved (#44763)

Ported from pingdotgg/t3code@748bb54477.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@58fcd9f729.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@a7484fbd51.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ctory (#42164)

Ported from pingdotgg/t3code@10df37a983.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Yash Singh <saiansh2525@gmail.com>
…#44728)

Ported from pingdotgg/t3code@2c6e0641f7.

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

Ported from pingdotgg/t3code@c5d7fddabc.

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

Ported from pingdotgg/t3code@0ac1453a39.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
@trancong12102
trancong12102 force-pushed the chore/upstream-sync-20261128-1329 branch from 8f85b44 to 5da7726 Compare November 28, 2026 07:48
iamshadmantaqi and others added 2 commits November 28, 2026 14:58
Ported from pingdotgg/t3code@13cda455bd.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… hides with no history agent

Claude's usage access gates only its session history in Onicode (identity comes
from the Agent SDK), so it no longer claims to read the sign-in or reset
credits. The Welcome usage checkbox drops the sign-in note, the mobile footers
point to desktop Settings instead of a web app, and Settings → Import threads
hides when no turned-on agent keeps importable history, instead of naming an
empty list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@trancong12102
trancong12102 force-pushed the chore/upstream-sync-20261128-1329 branch from 5da7726 to d8828d7 Compare November 28, 2026 08:00
@trancong12102 trancong12102 changed the title chore(upstream-sync): port 31 t3code commits chore(upstream-sync): port 42 t3code commits Nov 28, 2026
@trancong12102
trancong12102 merged commit a9723e4 into main Nov 28, 2026
18 checks passed
@trancong12102
trancong12102 deleted the chore/upstream-sync-20261128-1329 branch November 28, 2026 08:08
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.