Home

mweinbach / agent-coworker

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

refactor(desktop): simplify control socket bookkeeping

4 weeks ago

ac30daf
Authored
mweinbach8/28/2026, 2:55:20 AM
Reuse the existing promise waiter for socket readiness, register the latest store bindings once, and remove the always-true memory patch flag. Preserve disposal, timeout, retry, and model-clearing behavior.

Add regression coverage for rejected and late readiness, current store ownership, disposed re-ensure, and clearing inherited model overrides. All 8,364 tests, typechecks, Biome lint/check, and docs checks pass.

Parentdb3f3d0

3 files changed
  • apps/desktop/src/app/store.helpers/controlSocket.ts+13−64
  • apps/desktop/test/control-socket.ensure.test.ts+133−0
  • apps/desktop/test/control-socket.events.test.ts+63−0