Home

mweinbach / agent-coworker

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

Migrate A2UI, use pointer resizers, thread/hydrate

6 months ago

d0b242a
Authored
Max Weinbach4/21/2026, 1:01:57 AM
Multiple updates across desktop UI, server routes, session management and tests:

- Desktop: detect/migrate legacy A2UI feature-flag shapes into desktop overrides and fanout changes to workspaces with error notifications for failures.
- UI: switch sidebar resizers to PointerEvent (pointerdown/move/up/cancel), add touch-none to resizer elements and adjust settings heading color.
- Server JSON-RPC: validate thread/hydrate params with schemas, implement afterSeq/includeTurns handling (returns journalTailSeq), return snapshot+turns without subscribing clients, and add tests covering behavior and param validation.
- Session/runtime: avoid evicting sessions that are busy; HistoryManager no longer truncates allMessages (preserve full history for seeding) while keeping runtime messages capped; tests updated accordingly.
- Cost tracking: preserve lifetime turn counts/totals even when per-turn window is capped and reflect lifetime totals in snapshots; tests updated.

Also includes minor docs tweak and test updates for these behaviors.

Parent9cad3df

13 files changed
  • apps/desktop/src/app/store.actions/bootstrap.ts+47−11
  • apps/desktop/src/ui/layout/ContextSidebarResizer.tsx+14−11
  • apps/desktop/src/ui/layout/SidebarResizer.tsx+14−11
  • apps/desktop/src/ui/settings/SettingsShell.tsx+1−1
  • apps/desktop/test/bootstrap-cache.test.ts+56−0
  • apps/desktop/test/settings-shell.test.ts+1−1
  • docs/websocket-protocol.md+1−1
src/server/jsonrpc/routes/thread.ts
+16
−48
  • src/server/session/HistoryManager.ts+0−11
  • src/server/startServer.ts+1−1
  • src/session/costTracker.ts+12−28
  • test/server.jsonrpc.flow.test.ts+85−0
  • test/server.memory.test.ts+18−10