Commit Graph
548 Commits
Author SHA1 Message Date
Julius MarmingeandClaude Fable 5 353f352c1e feat(orchestration): port thread title regeneration to the v2 runtime
Follow-ups from the main merge:

- Migration numbering: main's 035_ProjectionThreadTitleRegeneration is
  released and keeps its id; this branch's unreleased v2 migrations shift
  to 036-044 instead (a released migration can never be renumbered).
- thread.metadata.update accepts regenerateTitle: true arms an in-flight
  titleRegeneration marker on the thread payload (requestId + startedAt),
  a landing title or explicit false clears it. The marker projects onto
  thread shells and through the client-runtime shell model, so the
  sidebar's Regenerating state works unchanged.
- New ThreadTitleRegenerationService worker reacts to armed markers on
  the live domain-event stream (so ws, MCP, and mobile dispatches all
  behave the same): builds a newest-first conversation digest from the
  v2 projection (8k-char budget, retained attachments — ported from the
  v1 reactor), generates via TextGeneration, and lands the title with a
  follow-up metadata update. Failures clear the marker and log.
- The server advertises threadTitleRegeneration again, and the client
  updateThreadMetadata dispatches regenerateTitle-only updates.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-03 11:45:15 -04:00
Julius Marmingeandcodex 413089399d [codex] feat(web): show git progress in the commit button (#4963)
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:13 -04:00
Julius Marminge 8b88bc70bf feat(orchestration): track provider retries and thread visits
- Project retry progress and recovery for Codex and Claude turns
- Sync thread completion markers through server-side visit timestamps
2026-08-03 11:45:13 -04:00
Julius Marminge 64d8fcd8b6 feat(server): surface legacy thread migration progress
- Publish migration lifecycle events during startup
- Show a web toast while legacy threads are restored
2026-08-03 11:45:13 -04:00
Julius Marmingeandcodex 2d309f1468 fix(worktrees): make handoff rollback atomic
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:12 -04:00
Julius Marmingeandcodex bb2bdc93ab fix(orchestrator): handle fresh review edge cases
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:12 -04:00
Julius Marmingeandcodex f1a331d7be fix(orchestrator): address late review findings
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:12 -04:00
Julius Marmingeandcodex 5ded72aba2 fix(mobile): gate thread controls on live runs
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:12 -04:00
Julius Marmingeandcodex 6a803d092d fix(client): preserve live thread relationships
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:12 -04:00
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 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 fe5df2b650 feat: migrate v1 state into orchestrator v2 (#4400)
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
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
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 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 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
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
Alex 9923f6a2ef feat(orchestrator): pass model options through MCP thread targets (#3872) 2026-08-03 11:45:08 -04:00
Julius MarmingeandClaude Fable 5 335708df8b feat: scheduled tasks (automations) (#3638)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-03 11:45:07 -04:00
Julius Marminge bc40ae8d28 Switch Cursor provider to the official SDK
- remove ACP model discovery and mismatch probe code
- update provider, orchestration, and tests for SDK-based flows
- refresh marketing copy to match the SDK runtime
2026-08-03 11:45:07 -04:00
Julius Marminge 60dc48a413 Require Cursor API key for provider checks
- Switch Cursor provider status and model discovery to the SDK catalog
- Improve chat content lane alignment and provider secret handling
2026-08-03 11:45:07 -04:00
Julius Marminge 9479d6f7cc Adopt userdata-v2 and subagent activity mapping
- Move desktop and server state paths to `userdata-v2`
- Handle Codex subagent activity events in orchestration v2
- Update related path and lifecycle tests
2026-08-03 11:45:06 -04:00
Julius Marmingeandcodex 3c680b50c8 Retire V1 client orchestration parity
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:06 -04:00
Julius Marmingeandcodex beab58b45b Expose V2 thread workflows on mobile
Co-authored-by: codex <[email protected]>
2026-08-03 11:45:06 -04:00
Julius Marmingeandcodex 2fde64e80f Enrich mobile V2 execution items
Share V2 item-to-entity linkage across clients and give mobile targeted execution, provider, request, checkpoint, search, subagent, and handoff inspection without reconstructing the timeline.

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:06 -04:00
Julius Marmingeandcodex 00b7fd1245 Map thread panel into title bar and sidebar
- Add thread-panel presentation logic for inline vs popover layouts
- Move thread details controls into the chat header/sidebar flow
- Add shared wait-for-atom helper and workspace display name parsing

Co-authored-by: codex <[email protected]>
2026-08-03 11:45:05 -04:00
Julius Marminge efdf72ec8c Record created threads and subagent progress
- Add parent-thread records for spawned child threads
- Persist Claude subagent progress as reasoning items
- Tighten projection verification around readable thread projections
2026-08-03 11:45:05 -04:00
Julius Marminge 82ffe9862c Handle preparing turns across provider orchestration
- Treat preparing as an active turn state in mobile and server flows
- Tighten ACP model option validation and selection reconfiguration
- Add coverage for turn mapping, raw protocol logging, and recovery paths
2026-08-03 11:45:05 -04:00
Julius Marminge cb6012aeb8 Integrate orchestration V2 controls and process recovery
- Add V2 item inspection, thread relationships, queued-run controls, and composer dispatch policies
- Reconcile interrupted provider state safely across shutdown and startup
- Preserve checkpoint baselines and shared provider-session projections
2026-08-03 11:45:05 -04:00
Julius Marminge 3991a00629 Complete orchestration V2 frontend cutover
- Migrate web and mobile state, commands, and persistence to V2 projections
- Render conversations from authoritative visible turn items
- Harden runtime policy, launch handling, attachments, and cache invalidation
2026-08-03 11:45:05 -04:00
Julius Marminge b77ac60a0e Integrate orchestration v2 with the application runtime
Retain the existing event-sourced application data plane for projects and shell state while making orchestration v2 the sole agent runtime. Adapt v2 events and receipts to the shared infrastructure and remove the v1 provider reactors.
2026-08-03 11:45:04 -04:00
Julius Marminge 28ea5e1104 Start orchestration V2 application services 2026-08-03 11:45:02 -04:00
Julius Marminge f2481dfbfd Align orchestration V2 with Effect service conventions 2026-08-03 11:45:02 -04:00
Julius Marminge 6b64376033 Share Codex sessions across orchestration threads
- Track explicit thread-to-session bindings and detach without stopping siblings
- Apply runtime settings per Codex thread and filter multiplexed events by turn
- Add migration, projection, lifecycle, and concurrency coverage
2026-08-03 11:45:02 -04:00
Julius Marminge 27897acd26 Map orchestration turns to provider instances
- Separate provider driver identity from configured provider instances
- Add durable event, effect, checkpoint, and turn-position persistence
- Route turn lifecycle and recovery through shared orchestration services
2026-08-03 11:45:02 -04:00
Julius Marminge 96b3a4e578 Add MCP thread management and Codex turn mapping
- Add scoped thread list, read, send, wait, and interrupt tools
- Track creation provenance and map provider turns across adapters
- Centralize thread lifecycle operations in a management service
2026-08-03 11:45:02 -04:00
Julius Marminge bd23813e34 Add ACP replay harness and session lifecycle support
- Add replay agent and fixture-driven ACP transcript testing
- Support session lifecycle, auth methods, and session resume/fork flows
- Expand orchestration V2 adapter coverage and debug tooling
2026-08-03 11:45:02 -04:00
Julius Marminge d699990254 Handle segmented Cursor turns and stable visible timelines
- split streaming assistant and reasoning output into separate segments
- filter hidden interruption artifacts from projections and replay fixtures
- keep visible timeline positions stable when upserting streamed items
2026-08-03 11:45:01 -04:00
Julius Marminge da9a6788ee Add orchestration MCP toolkit
- Register orchestration tools on the MCP HTTP server
- Grant orchestration capability to MCP sessions
- Add service and integration coverage for delegated tasks and thread creation
2026-08-03 11:45:00 -04:00
Julius Marminge 14539c234a wip 2026-08-03 11:45:00 -04:00
Julius Marmingeandcodex 471005ff2f feat(orchestration-v2): model native subagents
Co-authored-by: codex <[email protected]>
2026-08-03 11:44:59 -04:00
Julius Marmingeandcodex 09aadd6f34 feat(orchestration-v2): add merge-back replay coverage
Record provider fixtures for continued forks and sibling merge-backs, exercise context survival end to end, and stop completed run listeners from consuming later provider events.

Co-authored-by: codex <[email protected]>
2026-08-03 11:44:59 -04:00
Julius Marmingeandcodex 40747fff7b feat(orchestration-v2): wire claude adapter primitives
Co-authored-by: codex <[email protected]>
2026-08-03 11:44:59 -04:00
Julius Marminge bf5ebea4c8 Add model selection to orchestration runs
- persist the selected model on run records
- surface run model selection in the debug UI
- update replay fixtures and contracts for the new field
2026-08-03 11:44:58 -04:00
Julius Marminge 232e12c720 Add Claude replay fixture recorder
- Move Codex replay recording into `apps/server`
- Add Claude Agent SDK replay fixtures and test harness
- Update orchestration-v2 fixture scenarios and docs
2026-08-03 11:44:58 -04:00