Commit Graph
2296 Commits
Author SHA1 Message Date
Julius Marmingeandcodex 67ab204c23 fix(server): record retried legacy handoffs
Co-authored-by: codex <[email protected]>
2026-07-27 19:39:05 +02:00
Julius Marmingeandcodex 4600a83e98 fix(server): preserve imported history across retries and forks
Co-authored-by: codex <[email protected]>
2026-07-27 19:30:29 +02:00
Julius Marmingeandcodex 9fd6b628be fix(server): hydrate delegated wake-policy parents
Co-authored-by: codex <[email protected]>
2026-07-27 19:23:29 +02:00
Julius Marmingeandcodex a7495ac4ba fix(server): gate migrated thread commands on hydration
Co-authored-by: codex <[email protected]>
2026-07-27 19:23:29 +02:00
Julius Marmingeandcodex 6a2a78526b fix(server): retain imported shell history origin
Co-authored-by: codex <[email protected]>
2026-07-27 19:23:29 +02:00
Julius Marmingeandcodex 1c90d03cc6 fix(server): preserve legacy context attribution
Co-authored-by: codex <[email protected]>
2026-07-27 19:23:29 +02:00
Julius Marmingeandcodex 0d81444d7b fix(server): preserve migrated context across provider failure
Co-authored-by: codex <[email protected]>
2026-07-27 19:23:29 +02:00
Julius Marmingeandcodex 83d955ce3b feat(server): migrate v1 state into orchestrator v2
Co-authored-by: codex <[email protected]>
2026-07-27 19:23:29 +02:00
Julius Marmingeandcodex 5263ab1836 chore(orchestrator): refresh checks after main sync
Co-authored-by: codex <[email protected]>
2026-07-27 19:22:59 +02:00
Julius Marmingeandcodex 06f5aaee77 fix(web): restore checked-in project scripts
Co-authored-by: codex <[email protected]>
2026-07-27 18:55:04 +02:00
Julius Marminge d342dc3d98 Merge origin/main into t3code/codex-turn-mapping
Co-authored-by: codex <[email protected]>

# Conflicts:
#	apps/web/src/components/BranchToolbarEnvModeSelector.tsx
#	apps/web/src/components/BranchToolbarEnvironmentSelector.tsx
2026-07-27 18:54:42 +02:00
Yusuf007Randcodex 13543cd065 fix: ignore subagents when sorting sidebar projects
Co-authored-by: codex <[email protected]>
2026-07-27 18:52:45 +02:00
Yusuf007Randcodex 97a04be613 fix: hide subagent threads from v2 lists
Co-authored-by: codex <[email protected]>
2026-07-27 18:52:45 +02:00
Max Katz 32843c2551 fix(web): constrain branch toolbar context (#4657) 2026-07-27 12:42:33 -04:00
Mike Olsonandcodex 3b6251f2b5 fix(claude): Settle positive task-notification results
A Claude V2 turn whose terminal SDK result carried origin.kind
"task-notification" had that result discarded, so the run stayed running
forever and every run queued behind it stalled. The drop is now limited to
results reporting zero model turns, which is what the stale debris the guard
was written for actually looks like.

ClaudeAdapterV2 dropped any task-notification-origin result unless the turn was
an agent/provider continuation. An app-owned delegated-task wake run is
agent/server, so its terminal results were discarded and finalizeActiveTurn
never ran. Any turn whose final result carries that origin hangs, not just
wakes. Observed in production against a real session: three terminal success
results with num_turns 154, 60 and 7 were all dropped, the session went silent
for 8h27m, and five queued runs behind it never dispatched.

The guard could not simply be deleted. After interrupt recovery a stale stopped
task_notification and its origin result interleave ahead of the real root
assistant stream and must not terminalize the turn or leak their text.
Zero-turn results are still dropped, so that path is unchanged: this drops
strictly fewer results than before, so no previously working path can regress.

num_turns separates the two cases cleanly. The existing stale fixture sets
numTurns 0 explicitly, makeResultFrame defaults to 1, and the production
results all carried positive turns. The predicate is num_turns === 0 rather
than < 1 or a truthiness check on purpose: num_turns is required on both result
variants in 0.3.205, but if an older emitter ever omitted it, undefined === 0
is false, so the result is accepted rather than dropped. That fails toward
terminalizing rather than toward the hang class this fixes.

Both drops and accepts are logged with num_turns, stop_reason, terminal_reason,
result uuid, session id and message provenance. The drop is debug level because
interrupt recovery produces it routinely; the accept is info, because a
positive-turn task-notification result settling a non-continuation turn is both
the hang fix working and the exact shape a stale positive-turn result would
take.

Co-authored-by: codex <[email protected]>
2026-07-27 18:36:31 +02:00
Mike Olsonandcodex 959a1a3bf8 fix(orchestrator): Wake settled parents when delegated children finish
An app-owned delegated child wrote its result into the parent projection but
never started a parent run, so an async delegation's result sat unread until the
user's next message. Offer a provider continuation request when a delegated
child terminalizes, with a per-task completionWake policy separating async
delegations from blocking waits.

The wake must also reach the model. ProviderContinuationRequests is a
provider-native mechanism whose dispatch only triggers ingestion of output the
adapter already buffered, and both ClaudeAdapterV2 and AcpAdapterV2 discard the
message text when it is marked creationSource provider. An app-owned child
buffers nothing, so a wake marked that way settled instantly having prompted
nothing. App-owned wakes now dispatch as message_text via a shared
delegatedTaskWakeRequest helper used by both producers.

Co-authored-by: codex <[email protected]>
2026-07-27 18:36:31 +02:00
Mike Olson 82d7d408b5 fix(acp): Preserve wake evidence across an app-owned wake
This PR introduces the only wakeBuffer clear at the ACP startTurn site, and it
also clears midTurnUnreportedCompletedTaskIds there, both on the reasoning that
a user turn owns the conversation.

An orchestrator-injected wake is not a user turn. #4499
fix/delegated-task-parent-wake dispatches app-owned delegated-child wakes as
creationSource "server", which is non-continuation, so once both land such a
wake would discard this session's pending native wake frames and its kept
mid-turn completion marks, losing agent output and a continuation offer that
nothing else can recover.

acpIsAppOwnedWakeTurn exempts orchestrator-injected wakes from both clears,
matching what ClaudeAdapterV2 already does with its own buffer. Inert without
#4499, since nothing else dispatches creationSource "server". Kept as its own
commit because the concern originates in a different PR.
2026-07-27 18:23:07 +02:00
Mike Olson bf5ad780f0 fix(grok): Prevent spurious wake run after in-turn monitors
- Defer continuation offers for background completions that land while a
  root turn is active and un-finalized; finalize offers exactly one wake
  only when unhandled completed work remains
- Stop late monitor-event mutations from erasing in-turn handled marks, so
  injected-turn ack chatter is never retained as wake evidence
- Clear stale wake buffer frames at non-continuation user-turn start
- Make the late-mutation suppress logic's running/terminal branches
  mutually exclusive
2026-07-27 18:23:07 +02:00
Julius Marminge da11342e03 Fix live sidebar resize limits and defer Alchemy runtime context (#4655) 2026-07-27 18:07:40 +02:00
Julius Marmingeandcodex 180620e436 Fix Relay Worker RuntimeContext wiring (#4653)
Co-authored-by: codex <[email protected]>
2026-07-27 15:59:55 +00:00
Julius MarmingeandClaude Fable 5 96398e3775 feat(connect): release the Cloudflare tunnel when the environment shuts down (#4531)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-27 17:33:41 +02:00
Julius Marmingeandcodex 3f3b8b4044 Merge latest origin/main into t3code/codex-turn-mapping
Co-authored-by: codex <[email protected]>
2026-07-27 17:11:58 +02:00
Julius Marmingeandcodex 3cc075adb1 test(orchestrator): align merged V2 compatibility checks
Remove the unreferenced V1 activity payload projection that arrived from main and assert only the public serialized SchemaError shape under Effect beta.102.

Co-authored-by: codex <[email protected]>
2026-07-27 17:11:20 +02:00
Julius Marmingeandcodex d2d40b6c1a Drop redundant Relay user indexes (#4648)
Co-authored-by: codex <[email protected]>
2026-07-27 15:03:07 +00:00
Julius Marmingeandcodex 4e200e4de4 Merge latest origin/main into t3code/codex-turn-mapping
Co-authored-by: codex <[email protected]>
2026-07-27 17:02:46 +02:00
Julius Marmingeandcodex 769534e337 Merge latest origin/main into t3code/codex-turn-mapping
Co-authored-by: codex <[email protected]>
2026-07-27 17:01:55 +02:00
Julius Marmingeandcodex 724887717f fix(web): scope PR state to the thread branch (#4460)
Co-authored-by: codex <[email protected]>
2026-07-27 17:00:19 +02:00
Julius Marmingeandcodex 7b6c4e71a4 Merge origin/main into t3code/codex-turn-mapping
Co-authored-by: codex <[email protected]>
2026-07-27 16:59:33 +02:00
jan bdf99c17bf feat: allow new thread creation through project breadcrumbs (#4638) 2026-07-27 16:46:09 +02:00
Julius Marminge 108e01746c Upgrade Effect and Alchemy betas (#4643)
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <[email protected]>
2026-07-27 16:21:02 +02:00
Theo BrowneandClaude Fable 5 200fa826b0 feat(web): prompt stash — cmd+S saves the composer to a per-provider queue (#4453)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-27 06:34:13 -07:00
Julius Marmingeandcodex f4c394323d Add background preview capture and picture-in-picture support (#4397)
Co-authored-by: codex <[email protected]>
2026-07-27 13:58:17 +02:00
Julius Marminge 2b06c08a4b Add managed tunnel limits migration (#4635) 2026-07-27 11:56:49 +00:00
Julius MarmingeandClaude Fable 5 a78f245dff feat(relay): limit managed tunnels per user (#4530)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-27 13:51:31 +02:00
Theo Browne 23ea08daf2 test: account for lazy thread feed details (#4628) 2026-07-27 03:44:29 -07:00
Alex Southwell b4680cbfd0 perf(mobile): defer work-log detail serialization (#4607) 2026-07-27 03:03:49 -07:00
Theo Browne d60f6e971f fix: cut websocket throughput in half by pruning activity payloads (#4622) 2026-07-27 02:56:34 -07:00
Theo Browne 89c5a192f4 fix(dev): skip browser-blocked ports (#4608) 2026-07-26 20:26:21 -07:00
Theo BrowneandClaude Opus 5 23b5502217 feat(dev): Make t3 code dev instances shareable over Tailscale (#4556)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-07-26 19:48:09 -07:00
Theo BrowneandClaude Opus 5 a17cbc3b40 feat(dev): keep worktree dev state isolated on T3 Code dev servers (#4555)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-07-26 15:26:59 -07:00
Theo BrowneandClaude Opus 5 5719e8ac40 feat(web): show fast mode as a bolt instead of a "Normal" label (#4488)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-07-24 19:28:37 -07:00
jan 38cfc25e54 feat(web): add collapse-all toggle to diff panel (#4475) 2026-07-24 18:15:45 -04:00
41a430a88e Add Claude Opus 5 model (#4472)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Theo Browne <[email protected]>
2026-07-24 13:16:33 -07:00
Julius Marmingeandcodex 408efa6374 fix(server): clean up Claude replay failures
Wake replay stream waiters when outbound validation fails and ensure interrupted recordings close when no tool use arrives.

Co-authored-by: codex <[email protected]>
2026-07-24 17:59:31 +02:00
Julius Marmingeandcodex b2441819f0 fix(server): enforce ACP auth and preserve fork provenance
Co-authored-by: codex <[email protected]>
2026-07-24 17:58:30 +02:00
Julius Marmingeandcodex 6e9becab04 fix(server): keep derived threads awake
Reset snooze metadata when creating forks and provider subagent children, with focused regressions for both inheritance paths.

Co-authored-by: codex <[email protected]>
2026-07-24 17:54:01 +02:00
Julius Marmingeandcodex bccaea5fcd fix(mobile): wait for fork shell before navigation
Co-authored-by: codex <[email protected]>
2026-07-24 17:45:09 +02:00
Julius Marmingeandcodex c841e2a160 Merge main into codex-turn-mapping
Resolve migration sequencing and carry snooze behavior through orchestration V2.

Co-authored-by: codex <[email protected]>
2026-07-24 17:20:02 +02:00
David Whatleyandcodex 4dffcad518 Add worktree handoff and status tools to the t3-code MCP server (#3754)
Expose MCP tools for worktree handoff and status inspection, with focused server and contract coverage.

Co-authored-by: codex <[email protected]>
2026-07-24 16:56:41 +02:00
Alexandcodex 8c3675c786 feat(subagents): disclose projected results consistently (#3866)
Normalize subagent result disclosure across timeline rendering and collapsed/expanded states.

Co-authored-by: codex <[email protected]>
2026-07-24 16:56:22 +02:00