Skip to content

chore: sync upstream pingdotgg/t3code - #180

Closed
Tevin2119 wants to merge 560 commits into
masterfrom
integration/upstream-2026-11-21
Closed

Tevin2119 wants to merge 560 commits into
masterfrom
integration/upstream-2026-11-21

Conversation

@Tevin2119

Copy link
Copy Markdown
Owner

The daily upstream sync (#176) could not merge pingdotgg/t3code main into master: 46 files conflicted. This PR merges upstream 87707319cf (559 commits since 9415a2e52d, newer than the df09ced768 named in #176), with every conflict resolved.

How fork features map onto upstream's changes

Upstream's structure and new behavior win. Fork features are re-applied on top of them.

  • Delivery team instructions (all providers). Upstream added a runtimePolicy folder list to buildRuntimeInstructions. It now takes both runtimePolicy and the fork's threadId, and adds team instructions after the workspace block. Claude, Cursor, OpenCode (v1 and v2) pass both. On Codex, team_instructions is a separate context entry next to upstream's new t3_code_workspace entry.
  • Delivery MCP servers. Codex codexThreadRuntimeParams keeps the fork's deliveryMcpServerOverrides next to upstream's per-thread AGENT_THREAD_ENV for stdio servers. It is still exported for DeliveryAdapterBinding.test.ts, and still uses the Pick<ModelSelection, "model" | "options"> type the fork's context window needs. ACP acpMcpContext takes both the fork's threadId (delivery ACP servers) and upstream's callLauncher.
  • Codex context windows and unselected effort. The resume path still records contextWindowByThread / teamSetupByThread before upstream's new resumed binding. The fork's "unselected effort means Codex's default" divergence stays. Upstream's extraRoots sandbox widening is adopted.
  • Provider session open. ProviderAdapterRegistry runs upstream's broken-runtime refusal first, then the fork's delivery prepare/begin/report. Sessions without auth still take the delivery path (no early return).
  • Turn start. The fork's team-setup reload around providerSessions.open stays, and now also skips the native id for upstream's brokenNativeThread. Upstream's new provider-thread-load-failure settle call gets the fork's required class: "provider_error".
  • Orchestrator mode. ModelPickerContent is rebuilt from upstream's version, which adds sub-provider sections. The fork's team panel ternary, delivery binding lock, getContextDisabledReason and disabled-instance tooltip are re-applied on top. Team-chat resume after a seat completes stays in Orchestrator.ts, beside upstream's new taskId argument to releaseFinishedDelegateSessions. run.output.submit and the team-chat delegated request are both internal commands.
  • MCP. hiddenWhileDeliveryOff sits beside upstream's new hiddenWithoutForge, and is added to upstream's THREAD_ONLY set. /mcp scope carries both delivery and forge. The fork's "empty cross-provider catalog" guard stays, now checking upstream's resolved model.
  • Board task inspection vs upstream side threads. Upstream now opens subagents, side chats and linked threads beside the current thread (openSideThread, useSideThreadTrigger, useLinkedThreadOpener). Inside a board task workspace, the fork's useThreadInspection still takes precedence: in useThreadLifecycle, for relationship rows, and for remote rows a client can open directly. Everywhere else upstream's opener runs.
  • Right panel. Upstream replaced side-chat with thread / linked-thread surfaces. The fork's task-evidence and task-deployments surfaces, titles and icons stay with them.
  • Model manifest. The fork's fork-compatibility.json overlay stays, and upstream's resolveProviderCompatibility import is added.
  • Pi. The fork's usage-limit read stays on top of upstream's host.compatibility argument.
  • Mobile. The delivery model binding stays next to upstream's useSubmitAfterNativeImages. The settings rows use upstream's Android sizing plus the fork's disabledReason.
  • master default branch. agent-context-budget.yml takes upstream's HEAD^1 comparison, which works for any base branch. The step and message say "base branch", and BASE_REF is gone.
  • i18n. The fork's keys (Pull requests, Task evidence, Deployments) and upstream's "Thread on {label}" are both kept in every locale. Running gt generate adds and removes no keys.
  • Docs. thread-sidebar.md keeps upstream's new "Open a thread beside the one you are in" section and the fork's board-task inspection section.

Migrations for upstream library and API changes

  • Upstream fix(client): commands run as Effects on the caller's fiber, so interrupting a caller stops them pingdotgg/t3code#38912 made command .run(registry, …) return an Effect. packages/client-runtime/src/state/delivery.test.ts now uses Effect.exit / Exit.isFailure, the way upstream migrated its own tests.
  • The registry now reads instance.snapshot and needs ModelManifest. DeliveryAdapterBinding.test.ts gives its instance a snapshot with no version and provides ModelManifest.layerTest.
  • Upstream's delegate path now reads the parent project's workspace. The fork's empty-catalog test mocks ProjectService.getById like its upstream neighbors.
  • Duplicate imports from the merge are gone (PeerForwarding.test.ts, ProviderTurnStartService.test.ts).
  • agentContextBudget.json is set to the measured values. The fork's delivery MCP tools add the same +912 bytes they added before (59026 to 59938). Upstream's own growth over master will trip the budget check, so this PR probably needs the agent-context-increase label.
  • Fork-only BackgroundWorkDetails design: subagents open from their provider icon and get no Details dialog. Upstream fix(web): Background work details show a subagent as Waiting, like the line above pingdotgg/t3code#38763's new test asserted a subagent status inside that dialog. Its "Waiting · …" line assertion is kept and the dialog half is dropped. The fork's icon test still passes.

Verification (Windows, no repo-wide checks)

  • vp run typecheck is clean in all 29 packages with changed files (apps: server, web, mobile, desktop, marketing; packages: client-runtime, contracts, shared, provider-, source-control-, effect-*, issue-tracker-linear, ssh).
  • Pre-commit hooks pass: vp fmt, vp lint, knip:check.
  • vp test run on the tests beside every resolved file:
    • Server: 18 files, 1124 passed, 7 failed. All 7 fail the same way on a pristine upstream 87707319cf checkout, so they are environmental on this machine: Claude native fork path (/workspace vs C:\workspace), two Orchestrator.control-reads tests (statement.stat is missing in this Node), and four ProviderTurnStartService worktree/git tests.
    • Web unit: 4 files, 157 passed. Web browser: 9 files, 59 passed.
    • contracts 36/36, provider-core 4/4, provider-opencode 142/142, provider-acp 67/67, client-runtime delivery 4/4.
    • provider-cursor: 2 tests fail with EBUSY while deleting a temp SQLite file. Upstream's unchanged adapter.ts and adapter.test.ts fail identically, so this is environmental.
    • provider-pi driver: 2 failures, in the known Windows group (pi is installed globally).
  • vp run i18n:check cannot spawn node_modules/.bin/gt on Windows. Running gt generate directly in web and mobile adds and removes no keys (only Windows key order changed, which was reverted).

Replaces the conflicted draft #176.

Resolved with Claude Opus 5.5 (claude-opus-5-5) in Claude Code, running inside T3 Code.

🤖 Generated with Claude Code

juliusmarminge and others added 30 commits November 19, 2026 16:49
…t and @ (pingdotgg#38323)

Co-authored-by: Yash Singh <saiansh2525@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ider versions (pingdotgg#39427)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…fest (pingdotgg#39434)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…urn ends (pingdotgg#38869)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…s parent (pingdotgg#39455)

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

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
… signs in (pingdotgg#39443)

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

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…#39380)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…g#39493)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…"Ran command" (pingdotgg#39474)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
juliusmarminge and others added 27 commits November 20, 2026 21:18
…asked for a result (pingdotgg#40137)

Co-authored-by: MarcoDotIO <Marcus.Arnett10@gmail.com>
…ding (pingdotgg#39989)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ffs (pingdotgg#40152)

Co-authored-by: MarcoDotIO <Marcus.Arnett10@gmail.com>
…icode (pingdotgg#40075)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…art of minute (pingdotgg#40131)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…question (pingdotgg#40104)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Merge pingdotgg/t3code main at 8770731 (559 upstream commits since
9415a2e) into Tevin2119/t3code master. The daily sync (#176) stopped on
46 conflicted files. Upstream's structure wins; fork features are reapplied
on top: delivery team instructions and stdio servers in every provider's
runtime instructions, the Orchestrator team panel in the model picker,
board task inspection beside upstream's new side-thread opener, task
evidence and deployments panel tabs, Codex context windows and unselected
effort, Pi usage limits, and the base-branch agent-context check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@polymaniadeveloper-hub

Copy link
Copy Markdown
Collaborator

Superseded by #176, which now carries the full sync: variant A subagent UI, upstream main through d51d8c4 (410 commits), and master's #174/#177/#178.

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.