Commit Graph
2402 Commits
Author SHA1 Message Date
Julius Marmingeandcodex 6ab4ce9fe3 fix(orchestration): handle checkpoint-wait runs
Allow merge-back from provider-finished runs awaiting checkpoint capture while keeping waiting runs visible but non-interruptible in mobile.

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Julius Marmingeandcodex 091a76003e fix(acp): make xai cancellation reliable
Cancel pending prompt completions without restarting ACP, and keep text-only monitor acknowledgements tracked as background work.

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Julius Marmingeandcodex d93083fe50 fix(contracts): reject invalid legacy intervals
Keep positive sub-minute schedules readable without accepting corrupt zero or negative persisted intervals.

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Julius Marmingeandcodex 3d1db82e1c fix(orchestration): preserve legacy schedule compatibility
Enforce the one-minute floor only on writes, clamp legacy execution intervals, and keep queued work protected from archive while reusing shared active-run derivation.

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Julius Marmingeandcodex a70b7acd83 fix(mobile): preserve active thread state
Keep executing runs visible when newer work is queued, expose provider errors in compact shells, and preserve mobile creation metadata for fork and merge operations.

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Julius Marmingeandcodex 74f8c7ceed fix(orchestration): harden scheduled task startup
Reject scheduled task intervals below one minute and tear down the effect worker when awareness relay startup fails.

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Julius Marmingeandcodex 25463fe2b1 fix(orchestrator): schedule effects from durable deadlines (#4656)
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Julius Marmingeandcodex fe5df2b650 feat: migrate v1 state into orchestrator v2 (#4400)
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Julius Marmingeandcodex 61b181443c chore(orchestrator): refresh checks after main sync
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Julius Marmingeandcodex e647f444d2 fix(web): restore checked-in project scripts
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Yusuf007Randcodex f96a785978 fix: ignore subagents when sorting sidebar projects
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Yusuf007Randcodex 263ad34710 fix: hide subagent threads from v2 lists
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:11 -04:00
Mike Olsonandcodex b244cc81ce 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-08-03 11:45:11 -04:00
Mike Olsonandcodex 5ee040a06e 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-08-03 11:45:11 -04:00
Mike Olson f691c18da4 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-08-03 11:45:11 -04:00
Mike Olson ead7f56c6d 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-08-03 11:45:10 -04:00
Julius Marmingeandcodex 55be8808d4 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-08-03 11:45:10 -04:00
Julius Marmingeandcodex 134d0b62ba 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-08-03 11:45:10 -04:00
Julius Marmingeandcodex f52e8be137 fix(server): enforce ACP auth and preserve fork provenance
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:10 -04:00
Julius Marmingeandcodex c592c62104 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-08-03 11:45:10 -04:00
Julius Marmingeandcodex b4137f061d fix(mobile): wait for fork shell before navigation
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:10 -04:00
David Whatleyandcodex 1aad8b5450 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-08-03 11:45:10 -04:00
Alexandcodex 6ae33d8b0c 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-08-03 11:45:10 -04:00
Mike Olson 660f947a19 fix(orchestrator): hydrate shell cache and group multi-environment projects (#3640)
Restore versioned shell-cache hydration, reconcile repository enrichment across multiple environments, and decode non-null settled shell timestamps correctly.
2026-08-03 11:45:10 -04:00
Julius Marminge 30617478c9 test(orchestrator): align Codex approval reviewer replays (#4457)
Update every deterministic Codex turn/start expectation with the explicit user approvals reviewer emitted by the adapter, restoring exact replay coverage and unblocking the merge lane.
2026-08-03 11:45:09 -04:00
Mike Olson 523d078020 fix(orchestrator): Preserve claude/codex post-interrupt recovery state (#4229) 2026-08-03 11:45:09 -04:00
Mike Olson 350b0ef151 test(orchestrator): Align post-merge CTM fixtures (#4193) 2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex 2d8f6c3b96 fix(web): contain thread details panel effects
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex 267c0b22b2 fix(web): layer nested panel popups correctly
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex 701ccd2213 refactor(web): use shared glass surfaces
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex e703b2a03d fix(web): remove stacked composer shadows
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex b201a7c28f fix(web): restore v2 composer chrome
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex 77870e9ff7 fix(server): preserve released migration ordering
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex d956fccbac fix(orchestration): clarify agent delegation and scheduling
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:09 -04:00
Julius Marminge dac4ad26b0 Unify T3 MCP tool presentation across clients
- Extract shared T3 MCP tool label resolution
- Show T3 Code branding for matched tool activity rows
- Add tests for shared resolution and mobile feed output
2026-08-03 11:45:09 -04:00
Julius Marminge eda0ca15b7 Render T3 MCP tools with branded timeline labels
- Pretty-print known T3 MCP tool names in work rows
- Show the T3 Code logo for recognized MCP tool entries
- Add logic and UI tests for the new tool presentation
2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex f14c150cf3 fix(grok): align ACP extensions with open source runtime
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex 664d82753f fix(mobile): support Hermes collection sorting
Reuses the focused compatibility approach from closed PR #3923 and covers the remaining hardware-keyboard reverse iteration.

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:09 -04:00
Julius Marmingeandcodex 389879cd81 test(orchestrator): align integration fixtures
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Mike Olson f609654f11 fix(orchestrator): Harden Grok v2 runtime lifecycle
Settle root turns from provider signals and preserve post-settle continuations.

Track asynchronous subagent and monitor work, allow image prompts, and keep steered messages visible.

Separate soft steering from hard Stop while containing and reaping native process trees.
2026-08-03 11:45:08 -04:00
Julius Marmingeandcodex 590622b97b fix(orchestrator): dedupe Grok continuation dispatch
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Mike Olsonandcodex 9b91d3b8ca fix(orchestrator): harden Grok v2 lifecycle (#3578)
Integrate the current Grok settlement, monitor/subagent lifecycle, interrupt containment, steer visibility, and image support stack into the orchestration-v2 branch.

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Julius Marmingeandcodex e63d49f66b fix(acp): bind MCP credentials to activated threads
Passes the current target thread MCP configuration through ACP load, resume, and fork requests instead of reusing the credentials captured when the provider process opened.

Addresses https://github.com/pingdotgg/t3code/pull/2829#discussion_r3507807130

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Julius Marmingeandcodex cc8cc854f7 fix(acp): release turns after interrupt timeout
Clears the timed-out turn with an identity guard so a late completion cannot clobber a newer active turn.

Addresses https://github.com/pingdotgg/t3code/pull/2829#discussion_r3483533894

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Julius Marmingeandcodex ff3aca1dd4 fix(claude): reopen queries after MCP credential rotation
Fixes review: https://github.com/pingdotgg/t3code/pull/2829#discussion_r3566081244

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Julius Marmingeandcodex 6a1ba3ca2b fix(claude): enforce read-only tool availability
Fixes review: https://github.com/pingdotgg/t3code/pull/2829#discussion_r3509702833

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Julius Marmingeandcodex e754e8027e fix(claude): honor never-approval runtime policies
Fixes review: https://github.com/pingdotgg/t3code/pull/2829#discussion_r3507807129

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Julius Marmingeandcodex 4b41243e6d fix(claude): allow questions during plan mode
Fixes review: https://github.com/pingdotgg/t3code/pull/2829#discussion_r3501073032

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Julius Marmingeandcodex 751da6d2c4 fix(claude): preserve approvals with full-access sandbox
Fixes review: https://github.com/pingdotgg/t3code/pull/2829#discussion_r3476628169

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00
Julius Marmingeandcodex 597b02dc53 fix(claude): redact launch arguments from protocol logs
Fixes review: https://github.com/pingdotgg/t3code/pull/2829#discussion_r3471595059

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:08 -04:00