Skip to content

fix(fork): resolve upstream merge 4e6b1fa771 (2026-11-24) - #308

Open
orbitingflea wants to merge 1 commit into
catch-up/20261125-basefrom
catch-up/20261125
Open

orbitingflea wants to merge 1 commit into
catch-up/20261125-basefrom
catch-up/20261125

Conversation

@orbitingflea

Copy link
Copy Markdown
Owner

Why

Resolve the 10 conflicted files and post-merge breaks from merging upstream main at 4e6b1fa771 into the fork. Commit A at 5422d07574 on catch-up/20261125-base is git's mechanical merge of 280 upstream commits up to 2026-11-24 over fork main at eb8a539412. It leaves all conflict markers intact. This PR is commit B at b472b324b0 on top of commit A so the diff shows only manual edits. Each resolution keeps upstream structure and reapplies fork changes with the smallest fork diff.

Behaviour change

Behaviour change: no

Fork behaviour from fork main stays unchanged, and upstream behaviour arrives from commit A.

What changed

  • apps/server/src/telemetry/Identify.ts and apps/server/src/fork/codexAccount.ts. Upstream fix(server): analytics no longer reads or sends Codex and Claude account IDs pingdotgg/t3code#42299 removed Codex and Claude analytics id reads from Identify.ts and deleted CodexAuthJsonSchema and openAiUserId. This PR takes upstream Identify.ts and moves the Codex auth.json schema, id_token user id decode, and readCodexAccount unchanged into the new fork-only file codexAccount.ts. CodexAdapterV2.ts imports readCodexAccount from codexAccount.ts. That move shrinks the fork diff in CodexAdapterV2.ts by about 20 lines and keeps the fork-modified file count unchanged.
  • apps/server/src/project/AgentSessionScanner.ts. The fork's isCheckoutCachePath exclusion joins upstream fix(server): session import no longer offers T3 sandbox chats behind a symlinked base or a Codex project pingdotgg/t3code#42036's new isT3OwnedPath check so it applies to both configured paths and real paths.
  • apps/server/src/vcs/GitVcsDriver.ts, apps/server/src/storageCleanup.ts, and apps/server/src/cli/thread.ts. All three had import-only conflicts and keep both sides. GitVcsDriver.ts keeps dropping CheckoutCloner and removes upstream's deleted checkpointUntrackedBlobs.
  • packages/provider-opencode/src/server/v2/adapter.ts. Upstream fix(server): OpenCode steers keep their $skill mentions pingdotgg/t3code#42141 moved mention parsing into skillsMentioned(location, text). The fork passes only the text after inline handoff context so mentions inside handoff context are not treated as skills for the current turn.
  • apps/web/src/components/Sidebar.tsx. The menu keeps upstream's triage-aware operate check before the fork's display mode action.
  • apps/web/src/components/chat/timelineMinimapItems.ts. This file takes upstream fix(web): timeline minimap previews no longer cut an emoji in half pingdotgg/t3code#42575 for emoji-safe previews through markdownPlainText. The fork's single-tilde option already lives in markdownPlainText.
  • apps/server/src/orchestration-v2/ThreadManagementService.ts and apps/server/src/fork/fyi/FyiSettle.test.ts. Upstream fix(server): a message steered in after a self-settle request keeps the thread open pingdotgg/t3code#42092 skips a self-settle when a steered message was read after the request. Fork FYI items are user_message items with inputIntent set to steer, so a one-line guard ignores items with fyi set to match the fork rule that an agent FYI is not user input. FyiSettle.test.ts adds turnItems to its mock and adds a case where an FYI read after the request still settles.
  • apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts and AntigravityAdapterV2.test.ts. AcpAdapterV2.test.ts keeps both upstream startup phase assertions and fork account-change assertions. A new upstream test in AntigravityAdapterV2.test.ts now passes the fork's required profileDirectory option.
  • apps/server/src/provider/agentContextBudget.json. Values match AgentContextBudget.test.ts measurements at 5945, 7339, and 67550. The mcpToolListJsonBytes budget grew from 67345 on fork main because of new upstream tools.

Scope

This PR covers only the conflict resolutions and post-merge fixes on top of commit A. It adds no suppression comments and changes no fork UI text. Merging to main and deploying are out of scope and happen after owner review.

Tradeoffs

The rejected alternative kept the moved Codex helpers inside CodexAdapterV2.ts. That avoids adding a new file, yet adds about 35 fork lines inside an upstream file and raises future merge conflict risk.

Blast Radius

This PR changes only the resolved files above and adds no database migrations. Commit A brings five upstream migrations in apps/server/src/persistence/Migrations/: 112_LayoutCommandApprovals.ts, 113_WorkflowSkippedRuns.ts, 114_WorkflowRunIndexes.ts, 115_WorkflowRunTags.ts, and 116_ForkHistoryMembership.ts with 116_ForkHistoryMembership.test.ts. On CI, the Agent context budget job fails on every catch-up PR because commit A leaves conflict markers in agentContextBudget.json.

Verification

All checks below ran on b472b324b0 or its identical working tree.

  • Typecheck passed across all 43 packages. The fmt, lint, and knip commit hooks passed.
  • Focused server tests passed across 14 files with 1086 tests. AgentContextBudget.test.ts failed before the measured values were set and passed 2 of 2 after the update.
  • Fork FYI tests and ThreadManagementService.test.ts passed across 12 files with 112 tests. The new FyiSettle.test.ts case failed without the one-line guard and passed with it.
  • OpenCode package tests passed across 17 files with 310 tests.
  • Web tests passed with 142 minimap and Sidebar unit tests, 16 Sidebar and minimap browser tests, and 39 fork display mode tests.
  • check:changed: running on this head.

Resolves the 10 conflicted files of commit A (5422d07) and the merge
breaks:

- Identify.ts takes upstream's version (pingdotgg#42299 drops Codex and Claude
  account ids from analytics). The Codex account-change restart (#29)
  keeps its auth.json reader in the fork-only file fork/codexAccount.ts.
- AgentSessionScanner: the checkout cache check joins upstream's new
  isT3OwnedPath (pingdotgg#42036).
- GitVcsDriver, storageCleanup, cli/thread: imports from both sides.
- OpenCode: upstream's skillsMentioned(location, text) gets the text
  after the inline context (pingdotgg#42141).
- Sidebar: upstream's triage-aware operate check, then the fork's
  display mode action.
- Minimap: upstream's markdownPlainText preview (pingdotgg#42575), which already
  keeps single tildes.
- AcpAdapterV2.test: upstream's startup phase checks and the fork's
  account checks.
- settleAfterRun's new steer check (pingdotgg#42092) ignores FYI items, which
  are no user input; FyiSettle.test mocks turnItems and covers it.
- AntigravityAdapterV2.test: new upstream test passes profileDirectory.
- agentContextBudget.json: measured values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L labels Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant