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]>
27 commits from main, including the ⌘P file picker / ⇧⌘F content search
(#4855), thread content search (#4959), sidebar title regeneration
(#4810), image-paste compression (#4967), and the docs restructure
(#4807). Notable resolutions beyond keep-both:
- Thread content search is ported to the v2 surface: searchThreads joins
ORCHESTRATION_V2_WS_METHODS/rpc/auth scopes, and the SQL now UNIONs
orchestration_v2_projection_messages so current threads are searchable,
not just legacy-projected ones.
- Title regeneration's server half lived in the v1 ProviderCommandReactor
this branch deletes, so the capability is deliberately not advertised:
clients hide the action, the contract/UI code stays intact, and the
input field is accepted as a documented no-op.
TODO(orchestration-v2): port regeneration to the v2 runtime.
- Main's 035_ProjectionThreadTitleRegeneration migration collided with
this branch's 035-043 range; renumbered to 044.
- Mobile activity grouping keeps this branch's runId/prominence semantics
while adopting main's O(1) trailing-group optimization (prominence
tracked in a flag instead of a per-append scan).
- v1-only startup tests from main (heartbeat/auto-bootstrap against the
deleted reactor-era services) are dropped; their v2 equivalents already
cover the ordered startup phases.
Co-Authored-By: Claude Fable 5 <[email protected]>
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]>
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]>
Port mainline lifecycle and backend fixes onto the v2 orchestration architecture while retaining the full v2 implementation.
Co-authored-by: codex <[email protected]>
Reuses the focused compatibility approach from closed PR #3923 and covers the remaining hardware-keyboard reverse iteration.
Co-authored-by: codex <[email protected]>
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]>