Skip to content

chore: sync upstream pingdotgg/t3code - #203

Merged
polymaniadeveloper-hub merged 716 commits into
masterfrom
integration/upstream-2026-11-25
Nov 26, 2026
Merged

polymaniadeveloper-hub merged 716 commits into
masterfrom
integration/upstream-2026-11-25

Conversation

@Tevin2119

@Tevin2119 Tevin2119 commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Merging pingdotgg/t3code main into master conflicted in 41 files, so the daily sync opened conflicted draft #202. This replaces it. It now merges current upstream 539008aab955202593282ca01de64c1f09826b9b. The first merge took ca81b7b97a (562 commits past f00893a512), and a refresh added the 149 commits after it. It also supersedes #200, which resolves the older 667116e.

Upstream won every conflict. The fork's features are re-fitted on top of upstream's code.

How it was resolved

For the 14 code and doc files #200 also resolved, I replayed #200's resolution forward. First the fork's commits since #200's base were merged in (3918efa..master), then upstream's 667116e..ca81b7b. Every file merged cleanly except one. So #200's fork-to-upstream mapping carries over unchanged:

  • AGENTS.md
  • docs/README.md
  • ws.ts (provider maintenance runner)
  • CodexAdapterV2.ts
  • runtimeLayer.ts
  • peerLinks.ts
  • ChatView.tsx
  • ThreadManagementService.ts
  • OrchestratorMcpService.ts
  • knip.jsonc
  • the ProviderTurnStartService, ServerEnvironment and elicitationForm tests

How fork features map onto upstream's changes up to ca81b7b

  • McpInvocationContext.ts: takes upstream's new runtimeModeCeiling field. That also fixes a mojibake "Labs → Workflows" comment that was on master.
  • Translations (web and mobile, 10 locales each): merged key by key. The fork's board filing, QA receipt and seat hand-off strings sit alongside upstream's stack auto-merge strings and other new ones. No key was changed on both sides.
  • CommandPalette.tsx: keeps the fork's task items (useCommandPaletteTaskItems) and adds upstream's thread actions.
  • PullRequestThreadLinks.tsx: takes upstream's SharedTooltipTrigger. The fork's board-task count (linkedCount) and boardTasks are kept in the command-palette hand-off.
  • SidebarThreadRow.tsx: keeps the fork's restructured row and adds upstream's "Pending" sync label ahead of the snooze/woke states.
  • UsageLimitsPooled.tsx: the empty state now needs no fork balances and no upstream HTTP quota sources.
  • test/fakeEnvironment.ts: keeps the fork's thread tags and adds upstream's pullRequests.
  • docs/operations/development.md: upstream deleted it. The fork's note that check:changed handles a master default branch is now in 00_development.md. The fork's machines.md link now points at 00_development.md.
  • Upstream API changes the fork had to follow:
    • providerMaintenanceRunner.ts: upstream removed timedOut when it dropped the update timeout (fix(server): a timed-out provider update no longer force-kills the installer pingdotgg/t3code#42171). The fork's one-click update path for Kimi, Hermes, DeepSeek and Antigravity no longer sets it.
    • ProviderTurnStartService.ts: upstream added a restored-worktree setup failure. It now passes the fork's required class: "provider_error".
    • ws.test.ts: upstream's two new worktree-command tests now serve CoreWsRpcGroup, as the fork's other tests do. Fork-only delivery and checkout-update handlers sit outside that group.

Refresh to 539008a (31 conflicted files)

origin/master had nothing new beyond this branch, so only upstream was merged.

  • One shared tooltip (perf(web): one shared tooltip serves every trigger in the app pingdotgg/t3code#42671): upstream replaced per-trigger Base UI tooltips with SharedTooltipTrigger. Each conflict takes upstream's trigger and carries the fork's content inside it:
    • PanelLayoutControls: the fork's detailsLabel.
    • QueuedRunsControl: the fork's "Steer lead" button during team chat.
    • TimelineUserMessageRow: the fork's "Steer · Lead only" label and tooltip.
    • IssueThreadLinks: the fork's linkedCount and boardTasks.
    • SidebarChrome: the fork's active state and badge.
    • ChatMarkdown: drops its own SharedTooltipProvider, as upstream did, and keeps the fork's allowMedia.
    • ThreadActivityBanners: the fork's background subagent avatar puts the shared trigger on an enabled wrapper around its button. The button is disabled until the child thread exists, and the shared trigger shows nothing on a disabled control.
  • SidebarThreadRow.tsx: both row variants use upstream's ThreadHoverCardTrigger. The slim and folder row renders the fork's SidebarRowShell through it. The card row keeps the fork's surface and state classes. The woke, settle and un-settle buttons take upstream's version.
  • Antigravity: takes upstream's removal of Google's internal usage APIs (fix(server): stop reading Antigravity usage limits from Google's internal APIs pingdotgg/t3code#43026), so the fork's probeUsage and clearUsage are gone. The fork's one-click update maintenance stays. It still needs HttpClient for the version advisory, so the driver and its test keep that dependency.
  • Claude and Codex adapters: take upstream's CLAUDE_T3_MCP_SERVER and CODEX_T3_MCP_SERVER constants. The fork's team delivery servers are kept beside them.
  • CommandPalette.tsx: takes upstream's useCommandPaletteSettingsItems, and keeps the fork's deliveryEnabled.
  • ThreadDetailsCard.tsx: the scroll-list selector is upstream's list plus the fork's [data-thread-details-task].
  • TimelinePendingApprovalRow.tsx: keeps the fork's approval-scope note and adds upstream's push-hooks details.
  • UsagePage.tsx: takes upstream's "1 session" plural fix. The fork's count filtered by harness is its own translated plural message.
  • Benchmarks (refactor(scripts): one benchmark per surface on a shared metrics core pingdotgg/t3code#43058): upstream removed render scenarios.
    • vite.config.ts drops their node:fs/promises import and keeps the fork's node:child_process.
    • test/fakeEnvironment.ts drops emitTerminalMetadata and keeps isThreadSubscribed, runningRun, userItem and emitShellThread, which fork browser tests still use.
  • Translations: both sides only appended keys. vp run i18n:generate then re-sorted the merged web catalogs, without adding or removing any other key.

QA fixes (independent QA on 68c8fe8)

  • Board seat navigation follows fix(client): a link to a newly linked machine's thread opens without a reload pingdotgg/t3code#41722. useTaskConversation now calls upstream's refreshNamesLacking with the machines its remote seats run on. It does that only when the task's environment offers links, as upstream's own callers do. A new pure helper, seatEnvironmentsNeedingLinks, names those machines. Before this, a seat on a machine linked while the board was open opened through that machine's saved but offline direct connection, even though the task's environment could read it.
    • After round 2, the ids reach the refresh as an array, unchanged, through useEffectEvent. Before that, joining and splitting at commas broke an id that contains a comma. The effect is keyed on the sorted ids (seatLinksRefreshKey), like upstream's mobile caller, so reordering the same seats asks nothing.
  • Background subagent avatar is named on hover before its child thread exists. It uses upstream's SharedTooltipTrigger on an enabled wrapper (see above).
  • Filtered session count used to read "1 sessions of these harnesses" in every locale. It is now one ICU plural message, translated by hand in all 10 web locales.

CI fixes

  • Test Server 1, NativeTeamChat.queue.test.ts: the contribution and critique cases timed out at 120 s here. Master passes them: CI run 45442624725 on 31cc0d9 is green. Upstream perf(server): runs finish when the provider turn ends, not after checkpoint capture pingdotgg/t3code#41362 now finishes a run when its provider turn ends, so a run no longer passes through waiting before completed. The test still waited for waiting after each answered turn, and that event never arrives. Like upstream's own tests in perf(server): runs finish when the provider turn ends, not after checkpoint capture pingdotgg/t3code#41362, it now waits for completed and then drains the worker. Only the test was wrong: the fork's team-chat code does not wait on waiting. BoardConversation lists it only among active statuses, and it can still appear on older runs.
  • Lint: formatted apps/web/src/routes/profiles.tsx.
  • Agent context budget: mcpToolListJsonBytes re-measured at 64370.
    • Master is 63954, so this is +416. Upstream's own value at 539008a is 62140.
    • The five fork-only tools are delivery_read, delivery_file_task, delivery_qa_receipt, delivery_seat_handoff and delivery_native_build_step, 2290 bytes together. Upstream's tool text is uncut.
    • Raising it above master needs the agent-context-increase label.

Verification (Windows, no repo-wide checks)

  • Typecheck: vp run typecheck is clean in server, web, mobile, desktop, client-runtime, contracts and shared. Web was re-checked after the QA fixes.
  • QA fixes:
    • lib/taskConversation.test.ts, BackgroundWorkDetails.browser.test.tsx, TaskConversation.browser.test.tsx and UsageLimitsPooled.browser.test.tsx: 41/41.
    • The new "names a background subagent on hover before its thread exists" case fails on 68c8fe8's ThreadActivityBanners.tsx and passes with the fix.
    • Round 2: lib/taskConversation.test.ts and TaskConversation.browser.test.tsx, 36/36. The new case checks that an id containing a comma stays one id with its own key, and that reordered machines share a key.
    • vp run i18n:check passes.
  • NativeTeamChat.queue.test.ts: 4/4 in 59 s with no timeout.
  • Server tests beside resolved files: ClaudeAdapterV2, CodexAdapterV2, AntigravityProvider, AntigravityDriver and AgentContextBudget. 764 pass and 11 are skipped. 3 ClaudeAdapterV2 failures are environmental, and all 3 fail the same way with upstream's unchanged ClaudeAdapterV2.ts and .test.ts swapped in:
    • 2 cases fail with Windows EPERM on fs.symlink: "starts the new version, and only for the model change" and "keeps a process that runs background work until that work ends".
    • "forks a session from its original directory after the workspace root changes" expects C:\workspace on Windows.
  • Web unit tests: CommandPalette.logic and ProviderStatusBanner, 43/43.
  • Web browser tests: 186/186 across 19 files.
    • ChatMarkdown (and permissions), CommandPalette (browser, composition, content), QueuedRunsControl and ThreadDetailsCard.
    • ChatView and ThreadRouteView, which use the kept fake-environment helpers.
    • The five Sidebar* suites, SidebarChrome, SidebarDraftBlock, SidebarUpdatePill, SidebarProviderUpdatePill and UsageLimitsPooled.
  • Hooks: the CI-fix and QA-fix commits passed the pre-commit hooks.
    • The refresh merge commit was made with --no-verify, with the owner's approval. lint-staged's file list for 656 files exceeds cmd.exe's command-line limit on Windows. Its steps were run by hand and pass: vp fmt --check and vp lint in chunks, and vp run knip:check.
    • vp run check:changed against master sees the whole upstream merge and fails to spawn with ENAMETOOLONG on Windows, so CI covers the full gate.
  • Earlier round, before the refresh: there were 7 ProviderTurnStartService worktree-recovery failures and 2 ServerEnvironment failures. They were attributed then, each shown on upstream's unchanged code: git cannot spawn in temp worktrees, the tests inherit this machine's T3_WORKSPACE_* variables, and fs.symlink fails with EPERM.

Replaces #202. Supersedes #200.

Model: Claude Opus 5.5 (claude-opus-5-5) via Claude Code in T3 Code.

🤖 Generated with Claude Code

Independent QA (Codex GPT-6.2 Astra, on the AMD desktop)

Round 1, at 68c8fe86df: FAIL

Round 2, at cd03ad018e: FAIL

  • Resolved: the avatar tooltip (Chromium probe passes) and the plural (90/90 locale checks). The locale catalogs kept all 10,465 keys, and only the one new key was added. The ordinary seat refresh now works.
  • Medium: the hook splits a valid environment id at commas before passing it to upstream. An id such as A,B makes the refresh look up A and B and skip. Pass the ids as an array.
  • Low: reordering the same seats triggers a needless names read. Sort the ids for the effect dependency, as upstream's multi-machine caller does.
  • CI at cd03ad018e: Test Server 2 failed in ProviderInstanceRegistry test cleanup (ENOTEMPTY on rmdir of a /tmp dir). That's unrelated to this round's web-only diff, and the next push reruns it.

Round 3, at 1a769a65f5: PASS

  • Comma ids: a seat on a machine with id A,B, while A and B were already cached, makes one refresh call and one names read, then resolves through the host.
  • Reorder: reordering, rerendering and reconnecting each leave the call and read counts at one.
  • useEffectEvent: used at the top level and called only inside the effect, with a reasoned lint disable.
  • CI: all 20 checks passed on this head. The round-2 ENOTEMPTY cleanup failure in Test Server 2 didn't come back. That test file is byte-identical to upstream 539008aa, and this round only changed apps/web.
  • Tests: 41/41 targeted tests pass, including QA's round-2 fixture cases.

voltcrash and others added 30 commits November 24, 2026 17:41
brandon-julio-t and others added 21 commits November 25, 2026 12:37
…ders and asks about the rest (pingdotgg#43046)

Co-authored-by: Claude Fable 5.2 <[email protected]>
@polymaniadeveloper-hub polymaniadeveloper-hub added the agent-context-increase Accept growth in agent context size label Nov 25, 2026
Tevin2119 and others added 4 commits November 25, 2026 23:25
Merge pingdotgg/t3code main at 539008a (149 commits past ca81b7b).
origin/master had nothing new beyond the branch.

Upstream wins every conflict; fork features are re-fitted on top:
- Web components adopt upstream's shared tooltip (pingdotgg#42671) and the
  sidebar's ThreadHoverCardTrigger, keeping the fork's row shell,
  board counts, team-chat steer labels and delivery props.
- Antigravity takes upstream's removal of usage probing (pingdotgg#43026) and
  keeps the fork's one-click update maintenance, which still needs
  HttpClient for the version advisory.
- Claude and Codex adapters take upstream's MCP server name constants
  and keep the fork's delivery servers.
- The fake test environment keeps the helpers fork tests still use.
- agentContextBudget.json: mcpToolListJsonBytes re-measured at 64370.

Committed with --no-verify (approved): lint-staged's file list for 656
files exceeds cmd.exe's command-line limit on Windows. Its steps (vp fmt
--check, vp lint, vp run knip:check) were run by hand and pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s gone

Upstream pingdotgg#41362 finishes a run when its provider turn ends, so runs no
longer pass through "waiting" before "completed". The NativeTeamChat
queue test still waited for "waiting" on each answered turn, so the
contribution and critique cases hung until vitest's 120 s timeout.
It now waits for "completed", then drains the worker, as upstream's
own tests did in that change.

Also formats apps/web/src/routes/profiles.tsx for the Lint check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
QA on #203 found three places the fork did not follow upstream:

- Board seat navigation now rereads the task environment's link names
  when they lack a seat's machine, through upstream's
  refreshNamesLacking (pingdotgg#41722). A seat on a machine linked while the
  board was open no longer opens through a saved but offline direct
  connection. seatEnvironmentsNeedingLinks names the wanted machines.
- A background subagent's avatar uses upstream's SharedTooltipTrigger
  on an enabled wrapper, so it is named on hover before its child
  thread exists.
- The usage page's filtered count is its own translated plural message
  instead of a number with an English suffix. i18n:generate also
  sorted the keys the merge had appended by hand.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The board's seat link refresh joined the wanted environment ids into a
comma key and split it back, so an id containing a comma reached
refreshNamesLacking as two cached ids and the refresh was skipped. It
now passes the ids as they are, through useEffectEvent, and keys the
effect on the sorted ids, as upstream's mobile caller does. Reordered
seats no longer trigger a names read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@polymaniadeveloper-hub
polymaniadeveloper-hub merged commit d853a73 into master Nov 26, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Accept growth in agent context size

Projects

None yet

Development

Successfully merging this pull request may close these issues.