Home

mweinbach / agent-coworker

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

fix: restart stale web desktop servers and harden A2UI links

6 months ago

715ad3a
Authored
mweinbach4/19/2026, 2:54:04 AM
This closes the latest PR #83 review feedback in two places. Web desktop
workspace starts now restart a live server when the launch path or yolo mode
changes instead of silently reusing stale process settings, and A2UI links now
reject data: payload URLs while images keep the documented inline-data support.
The accompanying regressions lock both behaviors in place.

Constraint: Web desktop launch state must stay aligned with the requested workspace config, and A2UI link safety must not regress image data URL support
Rejected: Key workspace server reuse on workspaceId alone and rely on manual restart | leaves web desktop sessions pointed at stale cwd or approval mode
Rejected: Ban data: for both links and images | conflicts with the documented image contract and would regress existing inline image support
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep link and image URL allowlists separate, and treat workspacePath/yolo as part of the web desktop server identity whenever reuse logic changes
Tested: bun test test/webDesktopRoutes.test.ts apps/desktop/test/a2ui-extended-catalog.test.tsx; bun run typecheck; bun test --max-concurrency 1
Not-tested: GitHub Actions on the new commit

Parente1a6b9e

4 files changed
  • apps/desktop/src/ui/chat/a2ui/A2uiRenderer.tsx+15−1
  • apps/desktop/test/a2ui-extended-catalog.test.tsx+20−0
  • src/server/webDesktopService.ts+96−37
  • test/webDesktopRoutes.test.ts+58−1