Files
airship/packages
Nayan 08549ee551 feat(overlay): fill view mode with a frame list, a minimap and a bar that speaks
View mode had a canvas and an empty left dock. It gets the two surfaces that
make many frames navigable, and the bar stops going quiet while work is in
flight.

The dock swap. One left dock with two heads and two bodies, swapped by mode,
rather than two docks fighting over the same edge. `covers()` in the safe-inset
calculation moves from raw open flags to `isVisible`, which fixes a fit that sat
off-centre whenever the inspector was mode-gated away — the flag said open, the
panel was not on screen. `repinTranscript()` defers a scroll fix to the next
frame, because a `display:none` transcript reports zero metrics and the pin was
computing against nothing.

The frame list. Rows with a device glyph, inline rename, a row menu and an add
menu; click to centre, double-click to fit; drag to restack through dnd-kit with
a drop-line indicator, and keyboard ↑↓ on the grip. That needs `POINTER_ONLY`
sensors: a `feedback: "none"` draggable cannot keyboard-drag anyway, and leaving
the keyboard sensor registered started a phantom drag that also ate Tab. Rows
rebuild on a `shape` key, so panning the canvas does not rebuild the list.

The minimap. A fixed-size card of rectangles, not thumbnails — thumbnails of
live iframes cost a paint per frame per move and tell you nothing a rectangle
does not. Bounds are the frames unioned with the visible rect. Dragging pans
against a projection snapshot frozen at pointerdown plus the grab offset, so the
projection cannot shift under the gesture driving it. No close button: the last
one was undiscoverable to restore.

Apply, Discard and the job chip. `pendingCount()` now includes `structureSet`,
which is a real fix rather than a tidy-up — a delete rendered a chip and blocked
the surface toggle while never revealing the composer, so there was no way to
send it. Reveal fires on a rise in `pendingCount` against a `pendingSeen`
watermark instead of on "non-zero", so a dock the user deliberately closed stays
closed. Discard all and New chat get a confirm-before-destroy two-step anchored
on the button that triggered them. The job chip lives in its own `bar-job-host`
so mode-gating and `awaiting`-gating stop clobbering each other, and
`reportOffscreenTurn` offers a "Show" action when a turn finishes with the
transcript hidden.

Connection resilience. `submit()` refuses with an error toast when the socket is
closed, rather than entering `awaiting` for a message that was never sent. On
`hello`, `reconcileAwaiting` walks the server's jobs and `releaseAwaiting` closes
an orphaned turn with an error bubble pointing at Past chats. It deliberately
keeps pending visual deltas: the connection dropped, the user's unsent work did
not.

Also `shell-app.ts`: `pruneFrameUnsubs()` disposes the layout subscriptions of
deleted frames. Each closure was pinning a dead frame's `window`.

All six style modules land together so the stylesheet stays internally
consistent in one commit. `pop.css.ts`'s new `.tip*` rules in particular arrive
alongside the deletion of the old `.tip` block from `docks.css.ts`; split, one of
those two commits has tooltips styled twice and the other has them not at all.
2026-08-14 13:23:23 +05:30
..