Skip to content

chore: sync upstream through c7a0931537 - #288

Merged
andrewcai8 merged 95 commits into
mainfrom
sync/upstream-c7a0931537
Nov 10, 2026
Merged

andrewcai8 merged 95 commits into
mainfrom
sync/upstream-c7a0931537

Conversation

@andrewcai8

Copy link
Copy Markdown
Owner

Summary

Merges upstream pingdotgg/t3code through c7a0931537 (93 commits after 077fd62222, no new migrations, CI green upstream). Merge base is the previous sync (#287).

Notable upstream changes

Conflict resolutions (7)

  • apps/server/package.json: upstream's Claude SDK ^0.3.321 plus the fork's connectrpc/bufbuild deps.
  • pnpm-lock.yaml: took upstream's, vp i --no-frozen-lockfile, confirmed --frozen-lockfile.
  • agentContextBudget.json: re-measured with AgentContextBudget.test.ts: 5547 / 7277 / 54828 (mcp bytes down 16 vs fork main, so no agent-context-increase label needed).
  • ClaudeAdapterV2.test.ts: kept both sides' tests (fork roster-after-failed-turn test and upstream's first-frame-failure helper and test).
  • useHandleNewThread.ts / chatRouteCommands.ts: resolveDefaultProjectRef(projects, projectOrder, lastUsedProjectKey, fallbackReady, home) keeps upstream's last-used project and fallback-ready gate, and the fork's rule that Home's folder is never the default (it also filters the last-used project through defaultNewThreadProjectRef).
  • useHandleNewThread.test.ts: kept the fork's placeNewChat mock and upstream's orderItemsByPreferredIds mock; updated upstream's default-project test for the new signature.

Semantic checks

No new releaseEntry callers inside open; no new MCP tools taking environmentId; no new migrations (ForkMigrations unchanged); no SQLite constant changes; no new sidebar status labels; NOT_A_REPOSITORY_PATTERN still applied after upstream's heavy GitVcsDriverCore/GitManager changes (no conflicts). No fork-code fixes were needed outside the conflict files.

Verification

  • vp test run --maxWorkers=3 in apps/server: 8233 passed, 9 failed, 8 skipped (all Mac-only, see below; 8 of 9 pass with TMPDIR set to its realpath or on rerun).
  • packages/shared: 1550 passed, 4 skipped. packages/client-runtime: 2095 passed.
  • apps/web targeted (--maxWorkers=2): useHandleNewThread, chatRouteCommands, chatThreadActions, state/shell tests: 28 passed.
  • vp run typecheck in apps/server and apps/web: clean (0 errors, 0 warnings). vp run knip:check: clean.
  • vp lint --report-unused-disable-directives and vp fmt --check on all 708 files differing from upstream: clean.

Not verified

  • Full apps/web and apps/desktop suites, mobile tests (left to CI; Mac shared with a T3 host).
  • Known Mac-only failures: GitVcsDriverCore "keeps generated worktree folders short", invocation/ServerEnvironment/AgentSessionScanner/UsageService (/private/var realpath), AntigravityInstallation "accepts the agy CLI" (case-insensitive APFS), ClaudeSkills install order (flaky).

Follow-ups

  • Hosts need the next runtime tag after merge; megpt-mono t3-host Dockerfile bump.
  • Native Static Analysis may need reruns if no macOS runner is acquired.

Claude Sonnet 5.5, Claude Code

🤖 Generated with Claude Code

t3dotgg and others added 30 commits November 9, 2026 11:49
Add a native Cmd/Ctrl+W shortcut that closes focused DevTools while retaining renderer tab and terminal shortcuts and repeated-key protection.

Validation: 31 focused tests, check:changed, and CI passed. Electron runtime checks verified the close handler; automated native keypress verification remains unconfirmed.

Model: GPT 6.1 Sol. Harness: Codex.
…droid only (pingdotgg#33504)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…sizing Files (pingdotgg#33510)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… a stray key (pingdotgg#33525)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
pingdotgg#33538)

Co-authored-by: Yuruzuu <tauqmc@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
…otgg#33600)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…op (pingdotgg#33598)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
)

OpenCode usage scans materialized complete message bodies and queried empty
rowid ranges. Select in-window rowids first and project usage fields in
SQLite, keeping message bodies off the JS heap. Read each database in one
snapshot and record scan row and page counts.

On a read-only snapshot of a 3.32 GB real database, five fresh-process runs
measured 2.33x faster 30-day reads and 2.82x faster 90-day reads with identical
records. These are cold application-cache measurements; OS caches were not
cleared. Local check:changed and CI passed.

Adapted SQL projection from pingdotgg#27679
and window selection/snapshot handling from
pingdotgg#26613.

Model and harness: GPT 6.1 Sol through Codex in T3 Code.

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Tymoteusz Bielski <31070271+TymekTM@users.noreply.github.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…gg#33632)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Normalize Cursor usage pages as they arrive, retain bounded raw page data, and preserve count-proven boundary deduplication and stable event keys. Use direct hex hashing, limit concurrent account refreshes to two, reuse unchanged cached records, and persist retention pruning.

Validation: check:changed passed with 61 focused tests; 40 differential reader cases matched the original output. CI and agentic reviews passed on the merged head.

GPT 6.1 Sol via Codex in T3 Code.
…approve" (pingdotgg#33645)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
New threads started without an active thread or draft used the first project in sidebar order, even after working in another project. This was visible when creating a draft from Settings or delivering a pending snapshot after reopening the app.

Remember the project from the current thread or draft, including its environment, and prefer it when a new draft needs a project. Removed or archived projects fall back to sidebar order. The new-thread keyboard shortcut reads the same preference when invoked. Pending snapshots wait while the remembered environment loads and retry when its project state becomes available.

Validation: regression coverage for project selection across environments, missing and archived projects, and a preference changed after shortcut registration. Verified Settings → reload → New thread in the client. `vp run check:changed` covers formatting, lint, affected typechecks, tests, and React compiler checks.

Model: GPT 6.1 Sol via the Codex harness.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…s that build (pingdotgg#33617)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…w at rest (pingdotgg#33599)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
…bar changes (pingdotgg#33611)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
juliusmarminge and others added 24 commits November 10, 2026 01:39
… the sheet (pingdotgg#33223)

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Nathan Wong <20381195+thelogicmatrix@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
… instead of running forever (pingdotgg#33008)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…me it in the sign-in hint (pingdotgg#32951)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ot its whole history (pingdotgg#33305)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…status refresh (pingdotgg#32905)

Co-authored-by: ferhtgoldaraz <2060086+ferhtgoldaraz@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…of asking to reconnect (pingdotgg#32994)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…hots for good (pingdotgg#32861)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…hread (pingdotgg#33160)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… wakes (pingdotgg#32815)

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

Co-authored-by: PR Batch Tester <agent@local.test>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…bar's place (pingdotgg#33021)

Co-authored-by: dongxingong <8446245+dongxingong@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ingdotgg#27791)

Co-authored-by: PR Batch Tester <agent@local.test>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. labels Nov 10, 2026
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Baseline: fc06227 · PR result: bbbfc71 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

Upstream's new-thread hook now reads defaultProjectFallbackReadyAtom, whose
module loads the client tracer; the fork-only cloud test did not mock it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andrewcai8
andrewcai8 merged commit 348addc into main Nov 10, 2026
76 of 82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:XXL 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.