Repository navigation
fix(fork): resolve upstream merge 4e6b1fa771 (2026-11-24) - #308
Open
orbitingflea wants to merge 1 commit into
Open
orbitingflea wants to merge 1 commit into
orbitingflea wants to merge 1 commit into
Conversation
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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Resolve the 10 conflicted files and post-merge breaks from merging upstream
mainat4e6b1fa771into the fork. Commit A at5422d07574oncatch-up/20261125-baseis git's mechanical merge of 280 upstream commits up to 2026-11-24 over forkmainateb8a539412. It leaves all conflict markers intact. This PR is commit B atb472b324b0on 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
mainstays unchanged, and upstream behaviour arrives from commit A.What changed
apps/server/src/telemetry/Identify.tsandapps/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 fromIdentify.tsand deletedCodexAuthJsonSchemaandopenAiUserId. This PR takes upstreamIdentify.tsand moves the Codexauth.jsonschema,id_tokenuser id decode, andreadCodexAccountunchanged into the new fork-only filecodexAccount.ts.CodexAdapterV2.tsimportsreadCodexAccountfromcodexAccount.ts. That move shrinks the fork diff inCodexAdapterV2.tsby about 20 lines and keeps the fork-modified file count unchanged.apps/server/src/project/AgentSessionScanner.ts. The fork'sisCheckoutCachePathexclusion joins upstream fix(server): session import no longer offers T3 sandbox chats behind a symlinked base or a Codex project pingdotgg/t3code#42036's newisT3OwnedPathcheck so it applies to both configured paths and real paths.apps/server/src/vcs/GitVcsDriver.ts,apps/server/src/storageCleanup.ts, andapps/server/src/cli/thread.ts. All three had import-only conflicts and keep both sides.GitVcsDriver.tskeeps droppingCheckoutClonerand removes upstream's deletedcheckpointUntrackedBlobs.packages/provider-opencode/src/server/v2/adapter.ts. Upstream fix(server): OpenCode steers keep their $skill mentions pingdotgg/t3code#42141 moved mention parsing intoskillsMentioned(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 throughmarkdownPlainText. The fork's single-tilde option already lives inmarkdownPlainText.apps/server/src/orchestration-v2/ThreadManagementService.tsandapps/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 areuser_messageitems withinputIntentset tosteer, so a one-line guard ignores items withfyiset to match the fork rule that an agent FYI is not user input.FyiSettle.test.tsaddsturnItemsto its mock and adds a case where an FYI read after the request still settles.apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.tsandAntigravityAdapterV2.test.ts.AcpAdapterV2.test.tskeeps both upstream startup phase assertions and fork account-change assertions. A new upstream test inAntigravityAdapterV2.test.tsnow passes the fork's requiredprofileDirectoryoption.apps/server/src/provider/agentContextBudget.json. Values matchAgentContextBudget.test.tsmeasurements at 5945, 7339, and 67550. ThemcpToolListJsonBytesbudget grew from 67345 on forkmainbecause 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
mainand 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, and116_ForkHistoryMembership.tswith116_ForkHistoryMembership.test.ts. On CI, the Agent context budget job fails on every catch-up PR because commit A leaves conflict markers inagentContextBudget.json.Verification
All checks below ran on
b472b324b0or its identical working tree.fmt,lint, andknipcommit hooks passed.AgentContextBudget.test.tsfailed before the measured values were set and passed 2 of 2 after the update.ThreadManagementService.test.tspassed across 12 files with 112 tests. The newFyiSettle.test.tscase failed without the one-line guard and passed with it.