Skip to content

chore(upstream-sync): port 147 t3code commits - #909

Merged
trancong12102 merged 154 commits into
mainfrom
chore/upstream-sync-20261203-1615
Dec 3, 2026
Merged

trancong12102 merged 154 commits into
mainfrom
chore/upstream-sync-20261203-1615

Conversation

@trancong12102

@trancong12102 trancong12102 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Ports 147 upstream t3code commits (Wave 1, #1–#150 from origin/main 3e8e63d5684 → ee32ebb0fe7, 3 skipped, plus 4 Onicode follow-up fix commits), bringing in the Grok Build SDK replacement, MCP OAuth client support, detached thread history pages for search jumps, workflow run receipts migration (134) & resizable workflow runs panel, preview capture attachment & viewer sizing, imported VS Code syntax theme colors, @cursor/sdk@1.5.3 & OpenCode SSE patch, and 10 ported desktop E2E scenarios.

Wave 1 Summary

  • Branch / HEAD: chore/upstream-sync-20261203-1615 @ ee32ebb0fe7f65bb4be43b7ca209a15dd71f9f29 (base: origin/main 3e8e63d5684)
  • Upstream commits processed: 150 — 147 taken (62 adapted, 85 clean), 3 skipped
  • Onicode fix commits (4):
    • 5e624602014 — fix(web): match unicode ellipsis in DiffPanel search test (a213b7ecce)
    • 049388c7d0b — fix(sync): keep mobile ThreadFeed React Compiler budget and fix ported scenario types (extracted pure deriveGapSeams + <ThreadFeedGapControls /> in apps/mobile/src/features/threads/ThreadFeed.tsx restoring React Compiler's 3-allocation render budget from 66 → 3; fixed server.getConfig and browser.evaluate return types across 6 ported scenarios)
    • 19ca760f9e8 — fix(scenarios): move remote tab to server browser in browser-dialog-keeps-whole-emoji (paired headless second env via Settings → Connections, moved remote tab via Preview menu → Open in Scenario's browser)
    • ee32ebb0fe7 — fix(mobile): align citation selection native parsing with CJK autolinks (#8d8409ed5e) (fixed CI/Test mobile assistantCitationSelection.test.ts:297 interaction with #18 markdownWithNativeAutolinks, aligned nativeTree offsets for bareLink & withoutCodeBlocks, and resolved all 3 verifier-w1 non-blocking nits)
  • Migrations: 1 (#73 → 134_WorkflowOpenedRunReceipts.ts)
  • Desktop E2E scenarios: 10 added, 1 deleted (#25), 0 deferred

Risky & Adapted Commits

Slice 1 (#1–#50)

  • #2 00f30d5320 — pullRequestWatch.ts adapted to Onicode's finished/owes structure (kept missing/dropped and added toldFailed check).
  • #5 a213b7ecce (+ fix 5e624602014) & #10 b8008aae5e — matched Onicode's Unicode ellipsis "Search refs…" placeholder + refreshLocalStatusAndRefsForPicker stub in browser tests.
  • #11 2576936451 — Grok Build SDK replacement: stripped removed apps/marketing/* + scripts/release-smoke.ts, deleted 9 Grok ACP files & packages/provider-grok, kept commandCode, UsageAccessReads default claudeAgent, ProviderSessionManager detach helpers, ReplayRuntimeInstructions opensWithSlashCommand, ONICODE_ACP_*, driver.ts liveDisplayName; inlined AcpAdapterV2.test.ts subagent-wait callbacks; added checkCompatible mock in CheckpointRollbackService.test.ts; regenerated pnpm-lock.yaml & translated web i18n (83913345842665dd, 8ebc08625fb2be77).
  • #14 e5384f2bb1 — adopted upstream issueCommentDraftAtom over Onicode's mobile latestDraft ref guard; added appAtomRegistry import in platform.ts, issueUrl prop in IssueDetailPanel.browser.test.tsx, updated IssueCommentComposer.test.tsx.
  • #18 8d8409ed5e & #19 cb97e2dc08 — kept Onicode's shared packages/shared/src/pastedMarkdownLinks.ts and markdownWithFootnotes.
  • #20 9c71170305 — Preview attach: kept addComposerImagesToDraft signature, updated addComposerFilesToDraft, added desktop ~/environments/primary/target mock in ChatView.previewAttach.browser.test.tsx, regenerated & translated web i18n (0ab16faca23d31b4, 5fa1bf9356566f49).
  • #22 4faed2aec0 — Antigravity skills: kept extraWorkspaceRoots project scope alongside profileDirectory/config/skills.json.
  • #25 b09e680eeb — Sidebar pin-button accessibility: updated docs/user/thread-sidebar.md, deleted obsolete sidebar-card-pin-button-reachable-by-keyboard.e2e.ts, regenerated web i18n.
  • #26 8bfed053bd & #29 13342c72d8 — kept incremental markdownChunks.ts structure; changed Control+p → ControlOrMeta+p in both new desktop scenarios.
  • #28 130c545c34 — GitCafe issues: kept commentAudiences alongside commentsUnavailable in issues/handlers.ts.
  • #31 cab0426e6b — kept multi-repo draft workspaceRoot in DiffPanel.tsx & urlRevision in ChatMarkdownMedia.tsx; adopted branchDiffPreview.dataUpdatedAt cache-busting.
  • #33 9b8873a986 — wrapped only Onicode's remaining SidebarFooter notices (kept SidebarHostPressureWarning in SidebarUtilityMenu).
  • #34 1570be59ac — preserved Onicode's threadShowsConnection fast-path in threadShell.ts while adding remoteWorking.
  • #35 772bc61c01 — updated Onicode's measured codexAdditionalContextBytes (9174 → 9171).
  • #36 af284ac21f — kept draft-only sourceControlProvider lookup with orElseSucceed fallback + checkExistingDraft in GitManager.ts; adopted notDrafted/rateLimitReset/GitPullRequestNotOpenedError.
  • #39 4d1ac6e92b — kept Onicode's generalized latestContinuation in ThreadManagementService.ts and Orchestrator.ts refactors while adopting interruptRunFollowingRestart and workflow restart deadline enforcement; added model: () => Effect.undefined stub in Workflows.test.ts.
  • #45 4e8bee3c50 — adapted useComposerStash.browser.test.tsx (stashInput helper + imports); regenerated web i18n (fe58cbefbe807434).
  • #46 6bdd718504 — added prompt-stash localStorage/store cleanup in scenario finally block for chained runs.
  • #50 afa3003f7d — adapted await desktop() calls in WorkflowRunsView.browser.test.tsx; regenerated web i18n (38705c4188d2be27).

Slice 2 (#51–#100)

  • #52 a2ba869f2a — kept Onicode's graphemeFloor in turnDetailAnnouncement.ts; took upstream's joined-emoji test.
  • #54 a8ee725f51 & #65 179e6c3e51 — added defensive held-key & prompt-stash localStorage+StorageEvent reset in finally blocks of new e2e scenarios for chained runs.
  • #57 5048c80d2a — kept Onicode's replyContextId + !isSaving in useQueuedRunEdit.ts; took upstream's withStaleReply assertion in useQueuedRunEdit.browser.test.tsx.
  • #58 2fa9cfc810 — MCP OAuth: kept ...missing(name) in mcpServersView, guarded onlyEnabled and projectServerEntry against server.oauth !== undefined in apps/server/src/mcp/toolkits/environment/handlers.ts (added both invalid_request tests), merged tools.ts description, kept Codex reports/ONICODE_THREAD_ID, updated agentContextBudget.json mcpToolListJsonBytes (68144 → 68570), appended secret-mcp-server-oauth-client to secrets.ndjson.
  • #62 d0e786c630 & #69 f44640c005 — wire-compatible NonBlankString contract tightenings; kept blank-path guards across all 4 forge parsers (#62) and WorkspaceEntries/WorkspaceSearchIndex (#69).
  • #66 3950315236 & #100 d4489c5ae8 — added/updated exported sameWebUrl (including trailing-punctuation lookbehind) in shared packages/shared/src/pastedMarkdownLinks.ts (covers web & mobile); fixed upstream-sync.ts's Onicode.CODES/t3.codes test URL mangling to consistent example.com pairs so tests assert normalization & punctuation handling.
  • #72 f15a4c1480, #85 286cd6d7ee, #89 ae9bc1bdf0 — fixed graphemeAt in packages/shared/src/String.ts to keep \p{M} spacing marks (Myanmar U+102B) with their base cluster; kept Onicode's graphemeFloor in cli/thread.ts and GitManager.ts, and switched AgentSessionScanner.ts shortenTitle from bare Intl.Segmenter to shared graphemeFloor preserving VISIBLE_CHARACTER.
  • #73 062b288826 — migration 122_WorkflowOpenedRunReceipts.ts renumbered to Onicode 134_WorkflowOpenedRunReceipts.ts; updated Migrations.ts, both manifest arrays in reconcileV2PreviewMigration.test.ts, and Workflow{Store,Runtime,s}.test.ts.
  • #75 c1014376b1 — resolved leadingSpaceDiffAtom destructuring in PullRequestCodeTab.browser.test.tsx.
  • #76 dcd1c7ccae — adapted scripts/scenarios/browser-dialog-keeps-whole-emoji.e2e.ts to pair a headless second environment (startSecondEnvironment) so desktop renders ServerBrowserSurface, with dialog dismiss + unpair cleanup in finally (completed in 19ca760f9e8).
  • #77 f875b27e5a — resolved ThreadDetailsUsage.tsx imports.
  • #81 4bc422f01a — VS Code syntax colors: kept desktop-only wording in docs/user/appearance.md, debounced previewCss + collection in ThemeEditorPanel.tsx, updated themeBackground.test.ts 3rd arg, and extracted leaf apps/web/src/themeSyntaxState.ts to break circular import cycle (diffRendering.ts → themePalette.ts → state/server.ts → utils.ts → composerDraftStore.ts → reviewCommentContext.ts → diffRendering.ts).
  • #88 9eba01ec86 — adopted shared PULL_REQUEST_PAGE_ROW_CLASS in PullRequestRow.tsx while keeping onIntent handlers.
  • #92 cd5733feec — detached history pages for search jumps (53 files, web+mobile i18n): stripped T3 Connect relay signer/remoteAuthorization from threadHistoryHttp.ts & threads.ts; omitted unported OrchestrationV2ThreadHistoryPage.subagents and mergeOlderSubagentsIntoProjection; kept Onicode's readSubagentModels/withSubagentModel alongside upstream's synchronous decodeTurnItemPayloadSync in ProjectionStore.ts; kept Onicode's inset focus ring in MessagesTimeline.tsx and setupFoldRowId/recycleItems={false} (dropping guest-pending) in ThreadFeed.tsx.
  • #96 62cf1fe15b — resolved #47's Base UI Dialog late-focus flake in contextMenuFallback.keyboard.browser.test.ts (clean port).
  • #97 4861433a57 — kept Onicode's "body.issue.id" case and error-message assertion in scheduledTask.test.ts.
  • #99 fda1c3015d — kept Onicode's issueSurfaceRef workspace preservation on IssuesPage.tsx and unified workspace + lowercased host via issuePanelReference so hover prefetch matches the panel cache key.

Slice 3 (#101–#150)

  • #101 d9a78c22cf — Android SVG fallback in patches/react-native-image-viewing@0.2.2.patch + packageExtensions in pnpm-workspace.yaml; regenerated pnpm-lock.yaml cleanly via vp i against Onicode's expo-image ~58.0.19.
  • #103 28f0c938cd — kept act import in ComposerCommandMenu.browser.test.tsx.
  • #104 7b0d949173 — kept Onicode's mx field and serializeMalformedRecords in usageScanCache.ts alongside fi/fileId.
  • #106 a269a67418 — @cursor/sdk 1.5.2 → 1.5.3: restored patches/@cursor__sdk@1.5.3.patch verbatim from upstream blob to bypass translateText minified-symbol corruption (T3 → Onicode), kept Onicode's package.json & pnpm-workspace.yaml entries (no Clerk/alchemy), regenerated pnpm-lock.yaml cleanly via vp i.
  • #108 b3a0a027ae — kept Onicode's resilient decodeListedThreadPayload + Option.match in ProjectionStore.ts while adding handoff.
  • #110 d3293dde7e — preview viewerSize: kept Onicode's tab.nudging cleanup alongside setViewerSize(tab, null) in DesktopBrowserHost.ts, and kept useViewportValue + hiddenFitScale in HostedBrowserWebview.tsx composing watchedSize inside hiddenSizeIn.
  • #114 ec97f79c12 — adopted upstream's Effect.tapError partial .part retention over Onicode's Effect.onError cleanup in SpeechModelStore.ts so interrupted/dropped voice model downloads resume.
  • #119 cccd989557 — kept Onicode's composerEditorRef.current?.isInert() alongside upstream's context-menu/dialog/sheet guards in useComposerStash.ts; adapted test to stashInput + isInert: () => false.
  • #123 81ddaaa0e9 & #144 2e424655e3 — wire-compatible 2,048-char COMPOSER_CONTEXT_PAGE_URL_MAX_CHARS and COMPOSER_CONTEXT_PAGE_TITLE_MAX_CHARS clamping (clean ports).
  • #124 4eac693d82 — merged imports in projects.test.ts keeping findProjectByPath and listedBrowseDirectoryPath.
  • #125 c3ceff560c — kept Onicode's odfCommonStyles and addOdfStyles in extendedDocumentPreview.ts while adding odfStyleMarks; swapped JSZip → TestArchive in FilePreviewPanel.test.ts.
  • #127 14b32cce64 — clean port of WorkflowDefinitionEditor.tsx and desktop e2e scenario scripts/scenarios/workflow-mixed-line-endings-undo-clears-unsaved-changes.e2e.ts.
  • #129 725a98df12 — kept Onicode's @opencode-ai/sdk@^1.19.6 (avoiding downgrade to 1.15.13) and retargeted upstream's O(n) SSE patch to patches/@opencode-ai__sdk@1.19.6.patch; kept Onicode's pnpm-workspace.yaml overrides/patches (no knip@6.34.0), regenerated pnpm-lock.yaml via vp i.
  • #130 a5a39fa840 — omitted ChatView.browser.test.tsx hunk because Onicode already imports ~/index.css globally and sets page.viewport(1400, 900) in that test.
  • #131 36983d658e — workflow runs right panel: stripped removed env.ts/isElectron and <WorkflowPane electron=...> from WorkflowRunsView.tsx & WorkflowsPage.tsx; adapted await desktop() in WorkflowRunsView.browser.test.tsx; regenerated and synced 2 web i18n keys (987dc6b9898eff50, cc33fdbe7deb587e) across all 11 locales.
  • #132 3ff55a4e30 — kept Onicode's shared restoreMarkdownLinkRuns delegation and ended trailing-backslash escape in markdownAnchor; added &amp; destination escaping and bare-URL entity guard in markdown-clipboard.ts.
  • #134 f174ae4e9e — adopted upstream's TaskFolders.laysOutFolder (layout?.create !== undefined) and TaskFolders.requireSomeRepository (including WorktreeMcpService guard) over hasWorktreeLayout; kept Onicode's OrchestratorMcpService multi-repo delegation logic over ThreadLaunchService.childWorktreeRepositories.
  • #135 9c5fc7276d, #137 75d3e79762, #138 dad1199131 — clean risky ports (mobile inline base64 SVG fragments, Android SearchField echo queue, wire-compatible unlinked branch PR "stack-dismissed" tombstone).
  • #148 8184b938cb — kept Onicode's return-to-thread.ts pure helper split; appended useOpenThread() delegating to isNearestThreadRoute in thread-inspector-navigation.ts; kept useMessages in IssueRouteScreen.tsx.
  • #150 03e9365d37 — kept Onicode's input.picked guard in CommandPalette.tsx while passing input.platform on the typed-path branch.

Routine Commits (80 taken as is)

80 routine commits (taken as is)
  • #1 182822130e — fix(shared): keep Malayalam conjuncts intact in project monograms (#46392) (taken as is)
  • #3 e4134b7a6a — fix(mobile): pasting a cut file chip back into a draft keeps the file (#46398) (taken as is)
  • #4 1b3e6101d8 — fix(web): keep the next workflow file open after deletion (#46393) (taken as is)
  • #6 78743efcae — fix(web): file picker Enter opens the highlighted row (#46394) (taken as is)
  • #8 efdbdb9080 — fix(web): Enter no longer saves a queued edit left with only its reply (#46409) (taken as is)
  • #9 74f1a764cb — test(server): drive the clock until a recovered workflow folder watch reloads (#46416) (taken as is)
  • #12 55d1f810ca — fix(server): a delegated child's run started by a sibling counts as its parent's work (#46390) (taken as is)
  • #13 6993471505 — fix(mobile): nested corners follow their container's radius (#46391) (taken as is)
  • #16 ba71e5c41b — test(server): keep the workflow folder-recovery test off real I/O (#46429) (taken as is)
  • #17 85a49ec6ef — fix(web): keep search input focus when clicking content search option toggles (#46417) (taken as is)
  • #21 10c0ada6ee — fix(shared): match both Greek sigma forms in linked pull request suggestions (#46412) (taken as is)
  • #23 f03e5116b2 — fix(web): Space and Shift+Space no longer skip rows in large file previews (#46434) (taken as is)
  • #24 a5031e5e6d — fix(web): keys pressed with a context menu open no longer type into the composer (#46440) (taken as is)
  • #27 ec29fb35d5 — fix(mobile): show PR filter colors for labels named constructor or proto (#43913) (taken as is)
  • #30 855cd2d2c4 — fix(web): keep context menu open when leaving submenu onto parent menu (#46453) (taken as is)
  • #32 4244492908 — fix(web): fold a stopped turn once a newer turn has run (#46425) (taken as is)
  • #37 951ac71a85 — fix(source-control): private TanStack Source PR images load (#46476) (taken as is)
  • #38 87e2c1b38b — fix(client-runtime): a failed opening route no longer ends the shell subscription (#46475) (taken as is)
  • #40 772e3d4d69 — fix(server): keep Codex goals eligible to resume after a failed wake (#46466) (taken as is)
  • #41 46a13b949d — fix(web): reload workflow definitions after undoing all edits (#46471) (taken as is)
  • #42 1a080490da — fix(web): right-panel launcher keys no longer fire while a context menu is open (#46481) (taken as is)
  • #43 6cb0e70e8c — fix(web): pressing Escape to dismiss Cite no longer closes Find in Thread (#46482) (taken as is)
  • #44 97811c91c1 — fix(bitbucket): reviewer lookup finds members past the first page of 50 (#46223) (taken as is)
  • #47 347f551f11 — fix(web): Escape closes an open context menu before the layer beneath it (#46490) (taken as is)
  • #48 7c888d3368 — fix(claude): keep sleep timers with multiple durations awaited across restart (#46488) (taken as is)
  • #49 918359656f — fix(gitlab): preserve mode changes in reconstructed merge request patches (#46495) (taken as is)
  • #51 2f3a5eade7 — fix(server): stalled preview viewers no longer wedge snapshots (#46472) (taken as is)
  • #53 4754535fec — fix(opencode): count filename globs as file searches (#46492) (taken as is)
  • #55 b16c455ab2 — fix(shared): first threads stay local in POSIX project paths with backslashes (#46496) (taken as is)
  • #56 f5b0d08b54 — fix(web): keep Workflows open when a pane link has a blank ID (#46494) (taken as is)
  • #59 aef9eb97b4 — fix(forgejo): pull request label picker and label edits include organization labels (#46497) (taken as is)
  • #60 f0db28b47a — fix(shared): single-slash http preview URLs no longer open a host named http (#46502) (taken as is)
  • #61 2c5bbcd1ac — fix(shared): reject a comma as the only JSON array or object entry (#46501) (taken as is)
  • #63 565abcc722 — fix(web): Python traceback links open at the frame's line (#46505) (taken as is)
  • #64 8dd95ca52a — fix(web): skip JPEG fill bytes and standalone markers when detecting Display P3 (#46507) (taken as is)
  • #67 a4ae535e8d — fix(server): reload keybindings when the file is a symlink and its target is edited (#46521) (taken as is)
  • #68 9790b7918d — fix(server): storage cleanup removes task-folder checkouts whose branch changed (#46527) (taken as is)
  • #70 17d59c0dbe — fix(shared): wildcard preview addresses stay on http after URL canonicalization (#46529) (taken as is)
  • #71 8983bb4047 — fix(web): pressing Escape to close Find in Thread keeps the citation highlight (#46522) (taken as is)
  • #74 a32c694d81 — fix(client-runtime): the PR Author menu can replace a typed author qualifier (#43968) (taken as is)
  • #78 7bd56e0a63 — fix(web): open absolute localhost names from the Browser address bar (#46540) (taken as is)
  • #79 adf6562ced — fix(ssh): disconnect no longer waits on a stopped server left as a zombie (#46533) (taken as is)
  • #80 65dc8c26aa — fix(contracts): let VCS ref search find long valid branch names (#46550) (taken as is)
  • #82 4230a155b5 — fix(usage): skip non-regular transcript files during usage scans (#46543) (taken as is)
  • #83 ff548acc95 — fix(projects): keep the clone folder for a file URL at the filesystem root (#46552) (taken as is)
  • #84 42f4bcf63f — fix(client-runtime): highlight inline scripts after bundled env unset options (#46556) (taken as is)
  • #86 a1181e85c7 — fix(shared): preview .cts files that Linux labels application/typescript (#46563) (taken as is)
  • #87 9b27e5a424 — fix(web): second Mod+T keeps right-panel Add menu shortcuts working (#46562) (taken as is)
  • #90 8adc39c567 — fix(server): parse webhook JSON by media type rather than a parameter substring (#46567) (taken as is)
  • #91 3abbeba582 — fix(source-control): route nested GitLab merge requests before GitHub prefix matches (#46560) (taken as is)
  • #93 4f3c1a30ac — fix(client-runtime): do not label heredoc body text as a command after a continued line (#46555) (taken as is)
  • #94 cb92d66394 — fix(server): do not schedule a fixed-time task twice during fall-back (#46564) (taken as is)
  • #95 6db544bf21 — fix(client-runtime): keep literal backslashes in double-quoted heredoc delimiters (#46570) (taken as is)
  • #98 f7a9d6998c — fix(web): open schemeless local addresses with spaces in their paths (#46586) (taken as is)
  • #102 768e755253 — fix(client-runtime): highlight Python inline code after the hash-based pyc option (#46580) (taken as is)
  • #105 010955fdcc — fix(web): end terminal links at CJK punctuation that follows ASCII (#46585) (taken as is)
  • #107 2c8b5d1b83 — fix(client-runtime): highlight inline scripts after bundled sudo user options (#46587) (taken as is)
  • #109 789784b810 — fix(web): keep the selected tab in Workflows links (#46603) (taken as is)
  • #111 2bc37d9718 — fix(web): / and Mod+F in Settings no longer jump to search over an open context menu (#46597) (taken as is)
  • #112 48440cadef — fix(server): preserve the pending run when saving a legacy one-minute interval (#46583) (taken as is)
  • #113 60c4a838fb — fix(web): holding the settle or pin shortcut no longer toggles it back (#46602) (taken as is)
  • #115 c246a87a55 — fix(server): distinguish literal brackets from webhook filter wildcards (#46606) (taken as is)
  • #116 817e784003 — fix(server): long select options in the streamed browser no longer end in a broken character (#46610) (taken as is)
  • #117 85471b3681 — fix(server): preserve a leading question mark in webhook parameter names (#46598) (taken as is)
  • #118 99d0fc3c4a — fix(shared): preview Perl, awk and csh scripts labelled by Linux MIME types (#46619) (taken as is)
  • #120 0d0c744248 — fix(source-control): preserve mixed line endings when removing merge credits (#46620) (taken as is)
  • #121 a7256d6823 — fix(gitlab): keep multiline issue titles in rename activity (#46622) (taken as is)
  • #122 89df751cbf — fix(web): keep both items when copying a list at the nine-digit marker limit (#46625) (taken as is)
  • #126 eec16a099a — fix(web): text generation settings skip providers turned off for the project (#46632) (taken as is)
  • #133 3ed86fdbe6 — fix(source-control): preserve merge-message code fences with Unicode line separators in their info strings (#46649) (taken as is)
  • #136 9485d30c19 — fix(acp): disconnect sessions opened by an in-flight MCP initialize (#46652) (taken as is)
  • #139 a2fc74de70 — fix(dev): restart the server when a populated source directory is moved into place (#46670) (taken as is)
  • #140 978b6ce15d — fix(acp): omit skipped optional text that cannot be empty (#46667) (taken as is)
  • #141 882392ab7a — fix(client-runtime): highlight inline scripts after sudo prompt, host, role and type options (#46674) (taken as is)
  • #142 eca5cb0c0f — fix(opencode): republish models when a catalog change only affects legacy flags (#46677) (taken as is)
  • #143 72d1b5227a — fix(web): do not throttle Changes revalidation after a skipped read (#46685) (taken as is)
  • #145 2ad902fd9a — fix(web): Mod+F on pull requests page no longer focuses search over an open menu (#46691) (taken as is)
  • #146 ccda2f1651 — fix(web): modified Enter no longer restores a stashed prompt (#46694) (taken as is)
  • #147 8eac85d87c — fix(shared): preserve percent-encoded backslashes in POSIX Markdown image filenames (#46692) (taken as is)
  • #149 6c0cd0b21b — fix(shared): keep backticks literal in sent file mention labels (#46706) (taken as is)

Adopt-or-Keep Decisions

  • Adopted upstream over Onicode:
    • #11 Grok Build SDK replacement (stripped removed marketing/smoke surfaces; preserved Onicode's commandCode, usage defaults, detach helpers, and ACP hooks).
    • #14 shared issueCommentDraftAtom over Onicode's mobile-only latestDraft ref guard (preserves unsent comments across issue switches on both desktop and mobile and blocks edits while posting).
    • #31 branchDiffPreview.dataUpdatedAt cache-busting (while keeping Onicode's multi-repo workspaceRoot and urlRevision).
    • #36 notDrafted/rateLimitReset/GitPullRequestNotOpenedError handling (while keeping Onicode's draft-only sourceControlProvider check with orElseSucceed fallback).
    • #58 MCP OAuth client registration (adding server.oauth !== undefined guards in onlyEnabled and projectServerEntry).
    • #88 shared PULL_REQUEST_PAGE_ROW_CLASS in PullRequestRow.tsx (while keeping onIntent handlers).
    • #92 detached history pages & synchronous decodeTurnItemPayloadSync (stripped T3 Connect relay & unported subagents; extracted pure deriveGapSeams + <ThreadFeedGapControls /> on mobile to keep React Compiler's 3-allocation render budget).
    • #114 Effect.tapError partial .part retention over Onicode's Effect.onError cleanup in SpeechModelStore.ts so interrupted voice model downloads resume instead of restarting from 0.
    • #134 TaskFolders.laysOutFolder and TaskFolders.requireSomeRepository (including WorktreeMcpService guard) over hasWorktreeLayout.
  • Kept Onicode over upstream:
    • #7 & #33 icon-row SidebarHostPressureWarning in SidebarUtilityMenu (more compact than upstream's full-width sidebar notice pill).
    • #18/#19/#66/#100/#132 shared packages/shared/src/pastedMarkdownLinks.ts (sameWebUrl + restoreMarkdownLinkRuns) so web and mobile share one implementation.
    • #34 threadShowsConnection fast-path in threadShell.ts (avoids unnecessary subscription churn).
    • #39 generalized latestContinuation in ThreadManagementService.ts (covers usage-limit and manual continuations in addition to restarts).
    • #52/#72/#85/#89 shared graphemeFloor in packages/shared/src/String.ts (fixed graphemeAt for \p{M} spacing marks like Myanmar U+102B so Node/web match Hermes across CLI, git, announcements, and session scanner).
    • #62/#69 NonBlankString wire-compatible contract tightenings so older mobile clients still decode padded paths while server/parsers exclude blank-only names.
    • #81 extracted leaf apps/web/src/themeSyntaxState.ts to break circular import cycle between diffRendering and themePalette.
    • #99 issueSurfaceRef workspace preservation on IssuesPage.tsx unified with issuePanelReference so hover prefetch hits the panel cache key.
    • #110 tab.nudging cleanup in DesktopBrowserHost.ts and useViewportValue + hiddenFitScale in HostedBrowserWebview.tsx.
    • #128 inline segmented ComposerPickerFooter (feat(web): provider rail in the model picker #809) — no nested PermissionsMenu popup exists.
    • #129 @opencode-ai/sdk@^1.19.6 (avoids downgrading from 1.19.6 to 1.15.13) with upstream's O(n) SSE patch retargeted to patches/@opencode-ai__sdk@1.19.6.patch.
    • #134 multi-repo OrchestratorMcpService delegation logic over ThreadLaunchService.childWorktreeRepositories.
    • #148 return-to-thread.ts pure helper split while adding useOpenThread().
    • #150 input.picked guard in CommandPalette.tsx.

Skipped Commits (3)

  • #7 313b7a55f1 — kept Onicode's icon-row SidebarHostPressureWarning in SidebarUtilityMenu instead of a full-width notice pill.
  • #15 3fb0a0d4e1 — removed surface (infra/relay).
  • #128 b21923b3b8 — kept Onicode's inline segmented ComposerPickerFooter (feat(web): provider rail in the model picker #809); no nested PermissionsMenu popup exists.

E2E Scenarios Ported (10 added, 1 deleted, 0 deferred)

  • #4 scripts/scenarios/late-workflow-delete-keeps-current-file.e2e.ts
  • #8 scripts/scenarios/queued-edit-left-with-only-its-reply-stays-open.e2e.ts
  • #25 deleted scripts/scenarios/sidebar-card-pin-button-reachable-by-keyboard.e2e.ts (matches upstream removal)
  • #26 scripts/scenarios/notebook-erases-with-nul-padding.e2e.ts (ControlOrMeta+p)
  • #29 scripts/scenarios/markdown-reference-after-list-fence.e2e.ts (ControlOrMeta+p)
  • #41 scripts/scenarios/workflow-definition-follows-disk-after-undo.e2e.ts
  • #46 scripts/scenarios/stash-enter-restores-highlighted-prompt.e2e.ts (added finally stash cleanup)
  • #54 scripts/scenarios/holding-stash-shortcut-keeps-prompt-saved.e2e.ts (added finally cleanup)
  • #65 scripts/scenarios/holding-stash-delete-keeps-other-prompts.e2e.ts (added finally cleanup)
  • #76 scripts/scenarios/browser-dialog-keeps-whole-emoji.e2e.ts (paired headless second env + finally cleanup; completed in 19ca760f9e8)
  • #127 scripts/scenarios/workflow-mixed-line-endings-undo-clears-unsaved-changes.e2e.ts

Follow-ups & Upstream Bugs

The following upstream items have been claimed by the parallel follow-up batch (batch-20261203-2030.md, none are port regressions):

  • feat: the context breakdown reads cleaner and wears theme colors #39 (4d1ac6e92b, shared core, low priority): Orchestrator.ts uses latestRestartContinuation (only restartContinuationOfRunId), whereas Onicode's ThreadManagementService.ts uses generalized latestContinuation (restartContinuationOfRunId ?? usageLimitContinuationOfRunId ?? manualContinuationOfRunId). Consider whether workflow deadline enforcement (interruptRunFollowingRestart) should also follow usage-limit or manual continuations.
  • chore(upstream-sync): port 5 t3code commits #101 (d9a78c22cf, shared mobile, low priority): patches/react-native-image-viewing@0.2.2.patch (dist/components/ImageItem/ImageItem.android.js) does not reset fallback state to null when fallbackUri changes/clears on a recycled FlatList cell, and Math.min(SCREEN_WIDTH / fallback.image.width, SCREEN_HEIGHT / fallback.image.height) divides by 0 (NaN) if an SVG loads with zero dimensions.
  • chore(upstream-sync): port 4 t3code commits #114 (ec97f79c12, shared core, from verifier-w1): apps/server/src/speech/SpeechModelStore.ts:304-345 download() retains ${finalPath}.part whenever error.reason === "status" (line 341). If .part is oversized (offset > model.size) or the CDN responds 416 Range Not Satisfiable, every subsequent retry sends Range: bytes=${offset}-, fails with reason: "status" (416), and permanently keeps the unresumable .part file instead of discarding it and restarting from byte 0.
  • Other-provider / other-forge upstream bugs left to upstream: None noted.

Independent Full-Diff Review (verifier-w1)

  • Reviewed range: origin/main...19ca760f9e8388c33782bf5adb7d7ac60f61afe9 (153 commits, 572 files)
  • Verdict: CLEAN — 0 blocking port bugs, 0 adopt-vs-keep reversals required.
  • Verified clean: Ledger integrity (150 rows, 0 duplicates, 1:1 order), contracts wire-compatibility, patches & lockfile (@cursor/sdk@1.5.3 byte-exact, @opencode-ai/sdk@1.19.6, react-native-image-viewing@0.2.2), migration 134_WorkflowOpenedRunReceipts.ts, i18n (11 locales web & mobile) & icons, branding/removed-surface grep (0 leaks), and all 10 desktop E2E scenarios.
  • Non-blocking nits noted by verifier-w1 (all 3 resolved in ee32ebb0fe7):
    1. packages/shared/src/markdownChunks.ts:1319-1323 (13342c72d8): added defensive reset of listCodeIndent = 0 and nestedListIndents.length = 0 on held-wrapper rewind.
    2. apps/web/src/components/chat/ChatMarkdownMedia.tsx:371 (cab0426e6b): removed duplicate union literal | "draft-workspace-file".
    3. scripts/upstream-sync.ledger.tsv (14b32cce64): updated ledger note to record 049388c7d0b's server.getConfig.settings adaptation and completed Wave 1 gate verification.
  • CI finding (CI/Test mobile, fixed in ee32ebb0fe7): apps/mobile/src/lib/assistantCitationSelection.test.ts:297 failed due to #18 (8d8409ed5e) adding markdownWithNativeAutolinks inside markdownForNativeParsing — citationText() ran markdownForNativeParsing(prose) after replacing math $ delimiters with tokens, causing markdownWithNativeAutolinks to wrap CJK-adjacent URLs in <...> where real native rendering skips them, and shifting nativeProse offsets relative to tree. Fixed by skipping CJK autolink wrapping on math-tokenized inline blocks (mathTokenPrefix) and parsing nativeTree from nativeProse (with splitLeadingBom) for bareLink and withoutCodeBlocks, with regression tests covering both.

Local Gate Verification (HEAD 19ca760f9e8)

  • vp run check:changed origin/main --timeout 1800 → PASS (577 files: unused patches, format, lint, knip, graphql server & github, typecheck 42 packages, test 271 files [270 passed | 1 skipped, 9,792 passed | 12 skipped], React Compiler 127 files [ThreadFeed 3 allocs/render])
  • vp run i18n:check → PASS (web, mobile, desktop)
  • vp run icons:check → PASS (29 brand assets)
  • vp test run apps/server/src/persistence/reconcileV2PreviewMigration.test.ts → PASS (5/5, migration 134_WorkflowOpenedRunReceipts.ts)
  • vp test run apps/web/src/components/Sidebar.browser.test.tsx → PASS (41/41)
  • Chained desktop E2E scenarios (vp run scenarios --target desktop ...) → 10/10 PASS chained (#4, #8, #26, #29, #41, #46, #54, #65, #127 9/9; #76 + #127 2/2)
  • vp run lint:mobile → N/A (0 Swift/Kotlin files touched)
  • Unrelated failing checks: None observed locally.

Done with Gemini 4 Neon (XHigh) in Antigravity, reviewed by Gemini 4 Neon (XHigh).

iamshadmantaqi and others added 30 commits December 3, 2026 16:30
…6392)

Ported from pingdotgg/t3code@182822130e.

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

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

Ported from pingdotgg/t3code@a213b7ecce.

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

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

Ported from pingdotgg/t3code@efdbdb9080.

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

Ported from pingdotgg/t3code@b8008aae5e.

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

Ported from pingdotgg/t3code@2576936451.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Ported from pingdotgg/t3code@6993471505.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ported from pingdotgg/t3code@e5384f2bb1.

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

Ported from pingdotgg/t3code@85a49ec6ef.

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

Ported from pingdotgg/t3code@cb97e2dc08.

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…estions (#46412)

Ported from pingdotgg/t3code@10c0ada6ee.

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

Ported from pingdotgg/t3code@f03e5116b2.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…he composer (#46440)

Ported from pingdotgg/t3code@a5031e5e6d.

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Ported from pingdotgg/t3code@8bfed053bd.

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

Ported from pingdotgg/t3code@ec29fb35d5.

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Ported from pingdotgg/t3code@13342c72d8.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
saphid and others added 28 commits December 3, 2026 18:57
…project (#46632)

Ported from pingdotgg/t3code@eec16a099a.

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…r destination (#46657)

Ported from pingdotgg/t3code@3ff55a4e30.

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…line separators in their info strings (#46649)

Ported from pingdotgg/t3code@3ed86fdbe6.

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

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

Ported from pingdotgg/t3code@9485d30c19.

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

Ported from pingdotgg/t3code@dad1199131.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ed into place (#46670)

Ported from pingdotgg/t3code@a2fc74de70.

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

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…, role and type options (#46674)

Ported from pingdotgg/t3code@882392ab7a.

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

Ported from pingdotgg/t3code@72d1b5227a.

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

Ported from pingdotgg/t3code@2e424655e3.

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

Ported from pingdotgg/t3code@2ad902fd9a.

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…mage filenames (#46692)

Ported from pingdotgg/t3code@8eac85d87c.

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

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

Ported from pingdotgg/t3code@03e9365d37.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…d scenario types

Extracts deriveGapSeams and ThreadFeedGapControls out of ThreadFeed (#92 cd5733feec) so Map reads do not extend reactive scopes across hooks (restoring the 3-allocation render budget from 66). Adapts ported workflow scenarios (#4, #41, #127) from server.getSettings to server.getConfig.settings and returns null from browser.evaluate cleanup callbacks (#46, #54, #65).
…ks (#8d8409ed5e)

Skip CJK native autolink wrapping on math-tokenized inline blocks in markdownForNativeParsing so citationText matches EnrichedMarkdownText, and parse nativeProse into nativeTree so bareLink and withoutCodeBlocks offsets stay aligned when earlier blocks rewrite.

Also addresses three non-blocking verifier-w1 nits (markdownChunks held-wrapper reset, duplicate draft-workspace-file union member in ChatMarkdownMedia, and 14b32cce64 ledger note).
@trancong12102
trancong12102 merged commit 8a61b2a into main Dec 3, 2026
25 checks passed
@trancong12102
trancong12102 deleted the chore/upstream-sync-20261203-1615 branch December 3, 2026 13:41
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.