Files
ai-agent/frontend/src/lib/spawnDock.ts
Gabriel Vidal 4bcef9d79d feat(composer): swipeable sent card, tap-to-open instead of auto-open, collapsible spawn box
- The optimistic sent card above the spawn box is swipeable left/right
  (useSwipeDismiss from @gabvdl/ui 0.29.0): while queued a swipe un-sends
  (text restored to the composer), after the API fired it just dismisses
  the card — the session keeps running.
- No auto-redirect once the spawned transcript syncs: the card flips to
  'session ready — tap to open' and navigation is the user's tap. A sync
  timeout now surfaces as an error instead of silently dropping the card.
- The error notification is dismissible (X or swipe), and useSpawn gained
  dismiss()/readyId.
- New collapse chevron in the composer toolbar folds the docked spawn box
  into a slim 'Start a new session…' strip (persisted in useSpawnDock);
  collapsing dismisses the send loader. openWith un-collapses.
- @gabvdl/ui ^0.29.0 also keeps the disabled composer opaque (contents dim,
  surface stays solid) — the busy spawn box no longer shows the feed
  through.
2026-08-09 16:44:16 +02:00

4.2 KiB