Commit Graph
1133 Commits
Author SHA1 Message Date
Julius MarmingeandClaude Fable 5 807072b7c1 fix: port main fixes stranded by the v2 rewrite (round 2)
Native subagent observability (#5219), wired per its spec's v2 merge plan:
- getWorkflowScript RPC re-homed onto the v2 WS surface (contracts, rpc
  group, ws handler, auth scope, client atom).
- AgentsPanel fed by the spec's mapper swap: projectedSubagentsToRuntime
  maps orchestration-v2 subagent entities into the panel model;
  deriveAgentPanelModel's v2Projection leg is now live and the v1 fold
  never runs. Agents surface wired into ChatView + RightPanelTabs.
Other ports and reconciliations:
- Shell reconnect-loop fix (#5561) ported into the v2 shell sync
  (same-session resubscribes resume from the in-memory cursor), with the
  cursor-resume regression test adapted to v2 fixtures.
- Mobile end-follow latch (#5566) ported onto the v2 ThreadFeed.
- Claude ede_diagnostic interrupt classification (#5557) ported into
  ClaudeAdapterV2 (aborted_tools/aborted_streaming => interrupted; CLI
  telemetry never becomes the failure banner). #5559 needs no v2 port
  (unknown system subtypes are already ignored).
- Plan sidebar removed from the v2 ChatView/ChatComposer per main's
  plans-fold-into-chat rework (#5558); rightPanelStore stays at main's
  surface set.
- SettingsPanels rebuilt as main's refactored version plus the branch's
  composer-context setting; sidebar snooze respects the time format
  (#4438 follow-through).
- v1-only leftovers deleted: zombie v1 adapters/ingestion/tests the v2
  rewrite removes, the v1-bound transfer-budget CI harness (#5350, needs
  a v2 rebuild), and main's v1 client pagination machinery (#5493 client
  side; the 037 keyset migration is kept — server-side v2 windowing is a
  follow-up).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:27 +02:00
Julius MarmingeandClaude Fable 5 4cd4e62417 fix(server): renumber v2 migrations after main's 037_ProjectionTurnsKeysetIndex
Main owns migration numbering: 037_ProjectionTurnsKeysetIndex landed on
main (#5493), so the v2 migrations shift from 037-045 to 038-046.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:19 +02:00
Julius MarmingeandClaude Fable 5 e992d844b6 fix: repair conflict-marker artifacts from rebase auto-resolutions
rerere replayed stale resolutions during the rebase and committed nested
conflict markers in several files. Restore the branch-intended v2 shapes
and re-graft main's compatible additions (pending-card opacity comments,
theme-editor keybinding test, mobile scroll re-arm effects from #5566).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:19 +02:00
Mike Olson 18a91d6822 feat(orchestrator): Surface waiting background work (#4378) 2026-08-15 16:51:19 +02:00
Julius MarmingeandClaude Fable 5 b5cada5e89 test(server): align migration expectations with renumbered ids
Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:19 +02:00
Julius MarmingeandClaude Fable 5 3b903fc423 fix: port main fixes stranded by the v2 rewrite
- Port thread pinning (#5312) into the orchestration-v2 command pipeline:
  thread.pin/unpin commands, thread.pinned/unpinned events, pinnedAt on the
  v2 thread state and projected shells, promotion semantics (pin clears
  settle/snooze, settle clears pin) matching the v1 decider, and client
  pin/unpin operations in the v2 dispatch style.
- Port the regenerated-title context anchoring (#5365) into
  ThreadTitleRegenerationService: pin the first user message ahead of the
  retained tail when the digest is truncated.
- Re-apply the right-panel controls positioning from #5260 to the v2
  ChatView title bar controls.
- Repair merge artifacts: committed conflict markers in BranchToolbar,
  duplicate capability keys, duplicate CommandPalette import, v1 turn
  naming in DiffPanel's focus-refresh effect, onSend signature merge.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:19 +02:00
Julius MarmingeandClaude Fable 5 e538616255 fix(server): renumber v2 migrations after main's 036_ProjectionThreadsPinned
Main owns migration numbering: 036_ProjectionThreadsPinned landed on main,
so the v2 migrations shift from 036-044 to 037-045. Release path runs all
of main's migrations first, then the v2 stack.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:19 +02:00
Julius MarmingeandClaude Fable 5 482c46f6e2 fix(server): stop tying codex text-generation temp files to the caller's scope (#5406)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-15 16:51:18 +02:00
Mike Olson 5133fdbed5 fix(orchestrator): Prevent redundant delegated completion turns (#5311) 2026-08-15 16:51:18 +02:00
Julius MarmingeandClaude Fable 5 a6216cf3dc fix(test): keep codex replay recovery off the repo checkout
The codex resume test was the only replay scenario without a
runtimePolicyOverride, so its checkpoint scope cwd fell back to
process.cwd() and baseline capture ran real git over the entire
checkout. Locally the capture short-circuits on checkpoint refs left
behind by earlier runs; on a fresh CI checkout it is a cold multi-second
capture that outlives the scenario wait budget, failing await_thread_idle
while the run is still mid-checkpoint. Point the fixture's turn/start
frames at the <workspace> placeholder and checkpoint a throwaway git
workspace like every other replay test.

Scenario waits are also wall-clock-bounded now: the iteration budget
counts event-loop turns, which burn at full speed while git/fixture IO
is in flight, so exhaustion additionally requires a 60s real-time
deadline to pass.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:18 +02:00
Julius MarmingeandClaude Fable 5 7b1d62e39c chore: resolve lint warnings across v2 code
Hoist inline Schema compiles to module scope, drop unused
imports/vars, stabilize react-markdown component identities via a
module-scope factory, remove useless spreads, and use data-derived
keys for release-note bullets. No behavior changes.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:18 +02:00
Julius MarmingeandClaude Fable 5 2d379a19fa test(server): cover v2 thread title regeneration
Ports the deleted v1 ProviderCommandReactor title coverage onto the v2
service: marker arming/clearing via thread.metadata.update, superseded
requestId no-ops, digest-driven regeneration, the "New thread" and
unchanged-title fallbacks, generation failure, and missing initial
messages, plus unit tests for formatThreadTitleContext.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:13 +02:00
Julius MarmingeandClaude Fable 5 298d797e72 fix: send mcp-protocol-version header in worktree registration test
Required for follow-up requests by the 2025-06-18 MCP HTTP transport
that effect beta.103 enforces.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:13 +02:00
Julius MarmingeandClaude Fable 5 c2b4f965a3 fix: adopt effect beta.103 APIs in rebased v2 code
- Schema.UnknownFromJsonString -> Schema.fromJsonString(Schema.Unknown)
- SchemaIssue.InvalidValue single-argument form in checkpointDiff
- McpServerClient requires protocolVersion

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:51:13 +02:00
Julius MarmingeandClaude Fable 5 2a6f05fb43 fix(server): restore worktree branch naming in the v2 orchestrator (#5309)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-15 16:51:13 +02:00
Yusuf Rawat 0dd6b54c8a fix(orchestration-v2): restore generated thread titles (#5176) 2026-08-15 16:51:13 +02:00
maria-rcks 28d429d047 fix: reconcile rebase with latest main 2026-08-15 16:51:08 +02:00
Julius MarmingeandClaude Fable 5 80b181c6a8 refactor(orchestration): split thread-not-sendable into typed errors
Effect service conventions: ThreadManagementThreadNotSendableError
carried an Archived/NoSteerableRun reason union and switched on
reason._tag inside the message getter. Modelled as two error classes
(ThreadManagementThreadArchivedError, ThreadManagementNoSteerableRunError);
both still map to the MCP thread_not_sendable failure code.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:50:25 +02:00
Julius MarmingeandClaude Fable 5 65f11099fe fix(orchestration): promoted queued messages keep the queued_turn intent
The turn item materialized when a queued run is promoted was emitted
with inputIntent "turn_start", but the deterministic replay driver (and
the recorded queued_turn fixtures) expect "queued_turn" — the mismatch
stalled replay before the queued run could start, leaving run 1 waiting
and run 2 queued forever in all five queued_turn fixtures.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:50:25 +02:00
Yusuf Rawat 17a2932583 fix(orchestration): thread visits no longer create activity loops (#5038) 2026-08-15 16:50:25 +02:00
Julius MarmingeandClaude Fable 5 0e7452f059 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-15 16:50:25 +02:00
Julius MarmingeandClaude Fable 5 ef433a39ec fix(relay): stop replaying the whole event store into the awareness relay
Live profiling of the built app (debugger pause inside the hot sqlite
call) showed AgentAwarenessRelay.publishThread grinding at ~8 full shell
snapshots per second after boot. Two causes:

- streamDomainEvents was eventSink.stream() with no cursor, which
  replays every stored event from genesis before going live — so each
  boot fed the relay the entire event history as fresh activity, and it
  queued a publish per activity-relevant event for hours. It now tails
  from the current high-water mark; the relay's startup snapshot publish
  already covers initial state, and the sink subscribes before reading
  the cursor so no live event is lost.
- publishThreadUnsafe materialized the full shell snapshot to find one
  thread; it now uses getThreadShell (archived/deleted map to the
  tombstone path exactly as the active-list lookup did).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-15 16:50:25 +02:00
Julius MarmingeandClaude Fable 5 fefd57fc54 perf(orchestration): per-thread shell deltas, visit throttling, event compaction (#4971)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-15 16:50:25 +02:00
Julius Marminge 5e058ee234 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-15 16:50:25 +02:00
Julius Marminge ba05523ed2 feat(server): surface legacy thread migration progress
- Publish migration lifecycle events during startup
- Show a web toast while legacy threads are restored
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex dbf97e42bf fix: close failed provider adapter scopes
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex f5d80b1d16 fix: preserve thread management failure semantics
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex e77b08358d fix: address latest orchestration review findings
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex e4b59b169e fix: preserve orchestration task identity
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex 6f459c12d0 fix: address orchestration review findings
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex 18c2458673 fix: address orchestration review findings
Use shared cache schemas, close the OpenCode abort race, and assert fixture collection sizes correctly.

Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex fff6e73842 fix(orchestrator): preserve migrated and nested history
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex 729304a428 fix(server): preserve project mutation client errors
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex 55ff7a676f fix(orchestrator): validate rollback and search links
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex af6060be1c fix(orchestrator): close cancellation edge cases
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex 7d185275db fix(orchestrator): decode direct Claude result blocks
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex 2c0125489a fix(orchestrator): validate replay edge cases
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex ef08c6fa53 fix(orchestrator): preserve terminal effect outcomes
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex 9d089a5430 fix(orchestrator): preserve retryable effect failures
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex a151a77206 fix(orchestrator): avoid replaying settled effects
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex 6750918ab1 fix(worktrees): make handoff rollback atomic
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:19 +02:00
Julius Marmingeandcodex b324a91812 fix(orchestrator): release stranded effect claims
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:18 +02:00
Julius Marmingeandcodex c5f20fbc57 fix(orchestrator): execute resolved runtime responses
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:18 +02:00
Julius Marmingeandcodex d9ea5b182c fix(orchestrator): harden provider edge cases
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:18 +02:00
Julius Marmingeandcodex c2a1c56596 fix(orchestrator): handle fresh review edge cases
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:18 +02:00
Julius Marmingeandcodex 926be24e17 fix(orchestrator): address late review findings
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:18 +02:00
Julius Marmingeandcodex c63da0a2cb fix(checkpoints): retain thread-start baseline after failed runs
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:18 +02:00
Julius Marmingeandcodex 4c743ff634 fix(claude): preserve explicit model options
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:18 +02:00
Julius Marmingeandcodex 997289b565 fix(server): isolate deterministic attachment ids
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:18 +02:00
Julius Marmingeandcodex b115390123 fix(testkit): harden provider replay recording
Co-authored-by: codex <[email protected]>
2026-08-15 16:50:18 +02:00