Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Add A2UI dock + surface history UI

6 months ago

4a650ad
Authored
mweinbach4/18/2026, 2:08:38 AM
Introduce client-side support for A2UI surfaces: new types, reducer, actions, UI and plumbing to record and show surface revision history. Adds A2uiThreadDock types and createDefaultA2uiDock, MAX_A2UI_REVISIONS_PER_SURFACE, and reducer helpers to record/focus/expand/set-active/mark-seen revisions. Wire into store: new a2uiDock actions, store helpers, thread runtime default, and thread event handling to seed docks from feed and record incoming ui_surface events. Replace inline surface card with a dock and compact history row (A2uiSurfaceDock, A2uiSurfaceHistoryRow, surfaceTitle), include a pop-out renderer and revision controls, and add unit tests for dock reducer behavior.

Parentaa157f5

18 files changed
  • .claude/scheduled_tasks.lock+1−0
  • apps/desktop/src/app/a2uiDockReducer.ts+171−0
  • apps/desktop/src/app/store.actions.ts+2−0
  • apps/desktop/src/app/store.actions/a2uiDock.ts+85−0
  • apps/desktop/src/app/store.actions/thread.ts+33−13
  • apps/desktop/src/app/store.helpers.ts+5−0
  • apps/desktop/src/app/store.helpers/runtimeState.ts+2−0
apps/desktop/src/app/store.helpers/threadEventReducer.ts
+54
−8
  • apps/desktop/src/app/types.ts+42−0
  • apps/desktop/src/ui/ChatView.tsx+9−2
  • apps/desktop/src/ui/chat/a2ui/A2uiSurfaceCard.tsx+0−238
  • apps/desktop/src/ui/chat/a2ui/A2uiSurfaceDock.tsx+393−0
  • apps/desktop/src/ui/chat/a2ui/A2uiSurfaceHistoryRow.tsx+79−0
  • apps/desktop/src/ui/chat/a2ui/surfaceTitle.ts+51−0
  • apps/desktop/test/a2ui-dock-reducer.test.ts+120−0
  • apps/desktop/test/a2ui-surface-card.test.tsx+0−120
  • apps/desktop/test/a2ui-surface-dock.test.ts+83−0
  • apps/desktop/test/a2ui-surface-title.test.ts+69−0