Merge this with Create a merge commit, not squash, so upstream history stays intact.
Merges upstream v0.1.10-nightly.20261113.4630 (previous sync: v0.1.10-nightly.20261112.4580).
Conflicted files:
apps/mobile/src/features/home/HomeScreen.tsx: kept the fork's power and phone-server chips above the empty state (feat(mobile): sleep and wake a desktop from the Android home screen #4, feat(mobile): run the phone's server and Claude Code inside the app, replacing Termux #11) and used upstream's new deriveHomeEmptyState and its showsAddEnvironment flag inside it. Both imports kept.
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: kept both additions to the task_notification branch. The fork holds an ended awaited task for wake delivery (fix(server): background work an agent waits on survives settles, crashes and failed wakes #14), and upstream now drops the task's tool-use id mapping.
apps/server/src/orchestration-v2/ProviderSessionManager.ts: took upstream's split into writeReleasedRosterEvents and the new writeReleasedToolCallEvents. The fork's fix(server): background work an agent waits on survives settles, crashes and failed wakes #14 behavior moved into writeReleasedRosterEvents: it records waited-on work on the run as run.background-work-cancelled, and it wakes the agent after a crash or idle release. reason is threaded through writeReleasedBackgroundWorkEvents.
apps/server/src/orchestration-v2/ProviderSessionManager.test.ts: kept the fork's "records a waited-on job its session took down" test and took upstream's it.effect.each version of the outliving-roster test, which replaces the old single case.
apps/server/src/orchestration-v2/runtimeLayer.test.ts: both sides added tests at the same spot. Kept the fork's two automatic-settlement tests and upstream's delegated-archive test.
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts: upstream re-indented the file when it dropped redundant Effect.scoped wrappers (test: drop Effect.scoped wrappers that @effect/vitest already applies pingdotgg/t3code#35993). Took upstream's file and re-added the fork's three tests, dropping the same wrapper from one of them. That test's roster expectation now includes the nativeItemId that upstream started recording on pending tasks.
apps/server/src/provider/agentContextBudget.json: set mcpToolListJsonBytes to the measured 48131, which is upstream's 48099 plus the fork's existing 32 bytes.
Follow-up commit 8f42063 fixes two tests that the merge left unchanged and CI caught:
Server and mobile typecheck pass. AgentContextBudget, ProviderSessionManager, runtimeLayer and ClaudeAdapterV2 tests pass.
Done by Claude Opus 5.5 in Claude Code (T3 Code daily fork sync).
🤖 Generated with Claude Code