Skip to content

Merge upstream t3code v0.1.12-nightly.20261124.5178 into stage - #378

Merged
bk-agent-01 merged 4271 commits into
stagefrom
t3code/upstream-sync-20261124
Nov 24, 2026
Merged

bk-agent-01 merged 4271 commits into
stagefrom
t3code/upstream-sync-20261124

Conversation

@bk-agent-01

@bk-agent-01 bk-agent-01 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Merges upstream pingdotgg/t3code nightly v0.1.12-nightly.20261124.5178 (8aff2f9060, 4,303 commits since the last sync cefb544af3 on 2026-11-03) into stage, following .agents/skills/merge-upstream.

Requested by: Tushar Bhardwaj (T3 session): "merge latest upstream t3-code main to our stage … let me know once its ready to be tested on stage".

What changed

  • Merge commit 817e9397f5: 263 conflicted files (652 hunks) resolved by parallel workers, keep-both by default, every fork edit kept and marked.
  • Migrations: upstream 079–111 register at fork ids 1071–1103 (stage's highest applied id is 1070; ids 1–45 and 1000–1070 unchanged). Upstream's V2-preview ledger rewrite stays deleted, as on stage.
  • Lockfile regenerated (upstream dropped typescript from the catalog; vite-plus stays single-copy; remark-gfm back in apps/web for the plan review editor).
  • Fork behaviour the auto-merge dropped, restored: plan mode on web and mobile (upstream feat(settings): clean up Labs: promote tool calls, remove plan mode and old toggles pingdotgg/t3code#33131 removed it), toolyard-mcp-bridge CLI fast path, MCP listThreads owner filter, background-turn grant re-check after worktree prune, ChatView useEnvironmentQuery import (render crash), Clerk-user binding of remote DPoP tokens (decodeRelayJwt became an Effect, so identitySubject was silently never stored), PR watch forced re-read using the fork's per-owner key, watch_pull_request session-target check, UsageService fork thread-usage block, fork Android icons, shared outbox model fields.
  • Fork access checks added on new upstream features (cross-review findings): workflows admin/operator only; feedback answers, prompt suggestions, task folders and branch-status RPCs check thread access; issues RPCs/MCP check project access and member issue lists read only visible projects; issue-tracker accounts admin only; peer-link relay admin only and user-bound peer credentials need thread access; level-bound MCP approval codes keep their approver.
  • Lint/i18n: fork strings in upstream files go through gt/msg/<T>; new keys added to every locale catalog with English text; fork-owned files exempt from no-untranslated-copy and from the 40 Effect rules upstream enabled since 2026-11-03 (marked ratchets).

Decisions

  • Took upstream's rewritten nodeSqliteClient (writer worker, 4-reader pool) over the fork's checkpoint admission; kept the fork's reader busy probe.
  • Took upstream's cross-session shell resume over the fork's TEC-1837 version; removed the orphaned shellResume.expbkt3.ts.
  • Kept the fork's PR-sweep file-fingerprint reuse in GitManager. Followed upstream perf(server): status of a repository without a remote skips remote lookups pingdotgg/t3code#40277: a branch whose last remote is removed drops its PR after the remote cache expires.
  • Took upstream's idle provider-session timeout (30 min → 2 min); the fork never changed it.
  • Workflows and issue-tracker accounts carry no owner, so they are admin/operator only rather than per-user.
  • Level-bound approval-code approvers are kept in memory; a server restart invalidates outstanding level codes (they are refused before being spent).
  • GT translation catalogs are exempt from the fork-marker check (generated files, cannot hold comments). New fork strings use English text in every locale for now.
  • CI (fork-owned changes, marked): typecheck runs one package at a time (GitHub-hosted runners were killed at 4 and 2 in parallel); upstream's desktop launch check is skipped because its seed database is upstream-numbered and the fork's frozen ids 33–45 cannot migrate it.
  • Server layer chain split in two (server.ts): with the fork's layers it reached 23 Layer.provideMerge steps, past pipe's 20-function limit, which typed the whole server layer as never. Order is unchanged.
  • Branch-status RPCs (subscribeVcsBranch, vcsRefreshBranch) now list the fork's SourceControlProfileError, like the fork's status RPCs, because their status fallback can raise it.
  • Mobile: a compaction command the server rejects stays visibly failed (the fork's behaviour on its other failure paths) instead of upstream's restore-to-draft; the fork's third swipe button fades like upstream's second.
  • Web: settings reset buttons keep the fork's old wording as their aria-label; thread-comment "open" goes to the comment's own thread; new clipboard failure messages are translated keys.
  • Typecheck in deploy-stage.yml also runs one package at a time (same runner memory limit).
  • Follow-up (pre-existing, not in this PR): the fork settings tool reports the external MCP API key as never configured (control/handlers.ts, reads the redacted value).
  • Removed one skipped upstream test (migrate-dev-db peer-links seed) that needs upstream's 68–70 ids.
  • Not done (follow-up): fork doc text from five docs upstream deleted/renumbered; translations of the new fork strings.
  • Not merge-blocking checks: "Agent context budget" (compares against stage and fails on upstream's own text growth; the repo has no override label), "Label PR size" (ENOBUFS on a 34k-file diff).

Acceptance check

  • CI green on head 668b9baf72 (Check gate: lint, build, typecheck, test, test_web, test_server; markers; validate). Not gating and red: Agent context budget, Label PR size (see Decisions).
  • stagebkt3 serves the merge commit, migrations 1071–1103 applied, server starts with no migration error.
  • Smoke on stagebkt3: sign in, open a thread, send a message, plan mode toggle visible.

How I tested

No local build, test or typecheck (dev-server-1 compute policy); CI is the validation gate and stagebkt3 the runtime check. Local checks: zero conflict markers, a relative-import and named-export scan over fork-owned client files, the fork marker audit, and vp fmt on every changed file.

Cross-review: Codex gpt-6.1-sol, 5 rounds. Round 1: 3 P1 + 1 P2; round 2: 2 P1 + 1 P2; round 3: 1 P2; round 4 (33eed97f9b): no new findings; round 5 on 33eed97f9b..668b9baf72: no findings. All fixed.

🤖 Generated with Claude Code

juliusmarminge and others added 30 commits November 23, 2026 03:41
)

Co-authored-by: vultronforce <273871018+vultronforce@users.noreply.github.com>
…n-runnable t3 on PATH (pingdotgg#41402)

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

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

Co-authored-by: kacigaya <163902005+kacigaya@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
)

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

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

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

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

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ce is signed in (pingdotgg#41415)

Co-authored-by: Nirmal Thewarathanthri <8257850+nthewara@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…home through a symlink (pingdotgg#41435)

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

Co-authored-by: abominable-intelligence <abominable-intelligence@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#41441)

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

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…oors from A/A runs (pingdotgg#41370)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…th one client (pingdotgg#41371)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…d CLI lookups (pingdotgg#41393)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…nd keep the 20-client storm behind --stress (pingdotgg#41372)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
bk-agent-01 and others added 2 commits November 24, 2026 11:39
Upstream removed typescript from the catalog (tsgo typecheck), so
apps/web drops its typescript devDependency; vite-plus stays single-copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Plan mode on web and mobile (upstream removed client plan mode in pingdotgg#33131).
- Toolyard CLI fast path in binMain, MCP listThreads owner fields,
  background grant re-check after worktree prune.
- Fork Effect diagnostic ratchet in tsconfig.effect.json; fork files exempt
  from the new untranslated-copy lint rule.
- Shared outbox model takes upstream mobile outbox additions; Android icons.
- Test fixtures: fork scope/session fields, migration ids 1055+ lane.
- Remove orphaned shellResume fork module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Nov 24, 2026
@github-actions

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for cc19bdb.

This comment will update automatically after the next completed run.

bk-agent-01 and others added 23 commits November 24, 2026 12:01
Duplicate LinearIcon and test imports, unused jose in apps/server,
fork-safe mobile version test. TEMP: server shards run plain vitest to
list every failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…PI drift

- Workflows are admin-only; feedback answers, prompt suggestions, issue and
  task-folder RPCs check thread/project access (cross-review P1s).
- Level-bound MCP approval codes keep their approver for required identity.
- Mark fork regions the marker check flagged; add fork strings to catalogs.
- Fork client modules use upstream's renamed DPoP, duration and
  preferences APIs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge-resolution fixes: Claude auth probe models, GitManager remote reads
under the fork fingerprint, fork title flag on fork/regeneration, PR sweep
idle rotation on the light snapshot, REST PR readiness defaults, Codex
replay isolator for config/read, EnabledWhen on thread-only fork MCP
tools, issues MCP project access. Test fixtures for new upstream layers and
counts; GT catalogs exempt from the marker check (generated).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ests

- ChatView lost its useEnvironmentQuery import in the merge (render crash).
- watch/unwatch_pull_request re-check the fork session target (upstream
  moved them into PullRequestWatchService and dropped the check).
- remark-gfm back in apps/web for the plan review editor.
- Test fixtures for new upstream layers, settings and draft fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Fork-owned files get the 40 Effect rules upstream enabled since
  2026-11-03 switched off (marked ratchet in tsconfig.effect.json).
- New fork strings in the web catalogs; approval-code marker.
- Tests follow upstream's no-remote PR skip, agentFeedback settings,
  ProjectService.getById, ThreadViewers, fork Linear instructions and the
  fork's thread-keyed VCS action state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…/runtime tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…upstream desktop launch check

- Fork strings in upstream files go through gt/msg/<T>; comment length;
  remove the unreasoned skipped peer-links seed test.
- UsageService fork thread-usage block follows upstream's retention and
  transcript-dir API; desktop/server/web test layers.
- The upstream desktop launch check seeds an upstream-numbered database the
  fork cannot migrate; skipped with a marked note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ests

- Issue tracker accounts and peer-link relay are admin/operator only;
  user-bound peer credentials need thread access; member issue lists read
  only visible projects before tracker reads.
- Catalog entries for translated fork strings; markers; test mocks.
- Compact the fork Effect-rule ratchet to directory globs.
- TEMP: print failed typecheck task details.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… round 3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rdown, tests

decodeRelayJwt became an Effect upstream, so identitySubject was never
stored and a token could be reused across Clerk users.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…check one at a time

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… evals error output

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… signature

Jwt.decodeUnverified rejects unsigned tokens; the subject is only a cache
label (the server verifies the token), so decode the payload directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repositoryRoot replaces isRepository in the fork turn bootstrap; fork
schedule mode limits no longer use upstream's shell-shaped check;
redactServerSettingsForClient client arg; typed MCP scope; RunId filter
narrowing; withProjectAccess return type; evals fixture fork scope fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…task test labels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…props, outbox types)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arity, fixtures)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…use type; catalogs

Effect's pipe takes at most 20 functions; the merge made 23, typing the
server layer as never and leaking any into the CLI graph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removes the temporary CI changes (plain vitest shards, typecheck error
printout). Kept: one-at-a-time typecheck and the skipped desktop launch
check, both marked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bk-agent-01
bk-agent-01 marked this pull request as ready for review November 24, 2026 15:20
@bk-agent-01
bk-agent-01 merged commit f039d05 into stage Nov 24, 2026
39 of 42 checks passed
@bk-agent-01

Copy link
Copy Markdown
Collaborator Author

Merged into stage as f039d051a0, pinned to head 668b9baf72, with the requester's Merge answer in the session (CI-gate door check: skipped desktop launch check, GT catalogs exempt from the marker check, typecheck concurrency 1). CI green on the head (Check gate, markers, validate); Agent context budget and Label PR size are not gating. Cross-review: Codex gpt-6.1-sol, 5 rounds, last two clean.

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

Labels

vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.