Commit Graph
2546 Commits
Author SHA1 Message Date
Yusuf Rawat f076636c21 fix(orchestration): thread visits no longer create activity loops (#5038) 2026-08-07 13:27:50 +02:00
Julius MarmingeandClaude Fable 5 6978955a43 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-07 13:27:50 +02:00
Julius MarmingeandClaude Fable 5 5e4d39dcc4 perf(web): keep timeline minimap animations off the main thread
A renderer performance trace showed the minimap strips as a standing
source of main-thread frame work: each strip transitioned
background-color (paint) and width (layout), and both fire constantly —
scrolling or streaming flips a band of in-view states at once, and the
hover fisheye animates several widths at a time — so any interaction
kept a 60fps style/layout/paint pipeline running.

The strip now animates only compositor-friendly properties: width tiers
are scale-x on a fixed-width box, and the in-view highlight is a bright
overlay faded with opacity. The scroll handler also skips no-op
data-in-view attribute writes, which previously re-dirtied style state
for every strip on every scroll tick.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-07 13:27:21 +02:00
Julius MarmingeandClaude Fable 5 e594ac10bc 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-07 13:27:21 +02:00
Julius Marminge 3d6725f9c8 fix(chat): prevent stale timeline scroll and rerenders
- Disable LegendList end-maintenance that could snap after user scrolling
- Cancel stale imperative scrolls and release settled turn anchors
- Stabilize handoff run data to avoid per-event timeline rerenders
2026-08-07 13:27:21 +02:00
Julius MarmingeandClaude Fable 5 0996e31b58 perf(orchestration): per-thread shell deltas, visit throttling, event compaction (#4971)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-07 13:27:21 +02:00
Julius Marmingeandcodex b1557b8128 [codex] feat(web): show git progress in the commit button (#4963)
Co-authored-by: codex <[email protected]>
2026-08-07 13:27:21 +02:00
Julius Marminge 844dad005a 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-07 13:27:21 +02:00
Julius Marminge a04e807333 feat(server): surface legacy thread migration progress
- Publish migration lifecycle events during startup
- Show a web toast while legacy threads are restored
2026-08-07 13:26:48 +02:00
Julius Marmingeandcodex 4e1bc6c869 fix: close failed provider adapter scopes
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:48 +02:00
Julius Marmingeandcodex 47dab3dd85 fix: preserve thread management failure semantics
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:48 +02:00
Julius Marmingeandcodex 8074eb0935 fix: address latest orchestration review findings
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:48 +02:00
Julius Marmingeandcodex b6973f3a06 fix: preserve orchestration task identity
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:48 +02:00
Julius Marmingeandcodex 98deaf59a6 fix: address orchestration review findings
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:48 +02:00
Julius Marmingeandcodex 0a75eb7268 fix(mobile): label queued message intent
Distinguish queued and steering user messages in the mobile thread feed, matching the web timeline.

Co-authored-by: codex <[email protected]>
2026-08-07 13:26:48 +02:00
Julius Marmingeandcodex ec48d78fa5 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-07 13:26:48 +02:00
Julius Marmingeandcodex 3a4ebebc02 fix(orchestrator): preserve migrated and nested history
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:27 +02:00
Julius Marmingeandcodex 7d52c4a710 fix(server): preserve project mutation client errors
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:27 +02:00
Julius Marmingeandcodex 83c0cc678d fix(orchestrator): validate rollback and search links
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:27 +02:00
Julius Marmingeandcodex 6e87b2f34a fix(orchestrator): close cancellation edge cases
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex baeffa4d31 fix(orchestrator): decode direct Claude result blocks
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex 784b48cede fix(orchestrator): validate replay edge cases
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex aa53767ad0 fix(orchestrator): preserve terminal effect outcomes
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex fe54b7fc28 fix(orchestrator): preserve retryable effect failures
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex 4b6db95d51 fix(orchestrator): avoid replaying settled effects
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex fdac417b87 fix(worktrees): make handoff rollback atomic
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex 558a1cd449 fix(orchestrator): release stranded effect claims
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex d0ec6c2f11 fix(orchestrator): execute resolved runtime responses
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex d4ea2e749b fix(orchestrator): harden provider edge cases
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex b24a11ca81 fix(orchestrator): handle fresh review edge cases
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex 3ae1345509 fix(orchestrator): address late review findings
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex 434c15fd61 fix(mobile): gate thread controls on live runs
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex efd11e901f fix(checkpoints): retain thread-start baseline after failed runs
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex f21425e83e fix(client): preserve live thread relationships
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex cac3bd81e7 fix(web): enforce secure provider field defaults
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex 52c85db93c fix(claude): preserve explicit model options
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:26 +02:00
Julius Marmingeandcodex b6efa7fca1 fix(server): isolate deterministic attachment ids
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex 70e553eba8 fix(testkit): harden provider replay recording
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex 5e7d8f634a fix(acp): enforce task and permission invariants
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex 08f91e7aea fix(orchestration): preserve imported conversation state
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex b39004e0aa fix(checkpoints): preserve valid run history
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex 0656612620 fix(acp): discover final teardown descendants
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex 9fe0c15d18 fix(cursor): log close attempts before execution
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex 9e286b6ac9 fix(mobile): distinguish queued and waiting archive states
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex 1e736a710f fix(mobile): allow archiving post-provider work
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex 3fb4e159bf fix(orchestration): cancel queued work on archive
Co-authored-by: codex <[email protected]>
2026-08-07 13:26:25 +02:00
Julius Marmingeandcodex b00f611f81 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-07 13:26:25 +02:00
Julius Marmingeandcodex 9256400b27 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-07 13:26:25 +02:00
Julius Marmingeandcodex 2486ebcf95 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-07 13:26:25 +02:00
Julius Marmingeandcodex 6753f42b8c 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-07 13:26:25 +02:00