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]>
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]>
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]>
- 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