Home

mweinbach / agent-coworker

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

fix: route mobile ui_surface items through the A2UI card renderer

6 months ago

4ff42e4
Authored
Max Weinbach4/19/2026, 1:59:27 AM
This addresses the new PR #83 mobile regression where ui_surface feed items
reached ThreadFeedItem before the mobile feed row renderer understood that
variant. The mobile thread feed now routes ui_surface entries into the existing
A2uiSurfaceCard instead of falling through the log/error/system chrome path.
A focused Bun regression test locks that branch selection in place.

Constraint: Mobile A2UI feed items must not crash the thread view when workspace A2UI is enabled
Rejected: Drop ui_surface items from the mobile feed again | loses parity with the projected session snapshot and hides live A2UI state from mobile
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep mobile snapshotReducer, protocol types, and ThreadFeedItem rendering in sync whenever new feed item kinds are added
Tested: bun test test/mobile.thread-feed-item.test.tsx test/a2ui/mobileReducer.test.ts test/mobile.jsonrpc-client.test.ts; bun run typecheck; apps/mobile bunx tsc --noEmit
Not-tested: GitHub Actions on the new commit

Parent654383e

2 files changed
  • apps/mobile/src/components/thread/thread-feed-item.tsx+5−0
  • test/mobile.thread-feed-item.test.tsx+69−0