Home

mweinbach / agent-coworker

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

test: make provider, webfetch, and session-memory suites hermetic and real

2 months ago

8f6469c
Authored
Max Weinbach7/14/2026, 2:30:53 AM
- connection-catalog: every catalog call now injects a throwing LM Studio
  fetch stub and temp-home paths; three tests previously read the real
  ~/.cowork and could fire live discovery with ambient credentials.
- webFetch: added real Readability/JSDOM/Turndown pipeline coverage plus a
  deterministic fallbackHtmlToMarkdown test; removed assertions that only
  exercised the regex stub.
- agentSession.settings: memory tests write through the real MemoryStore
  in temp dirs instead of monkey-patching the private store.
- workspace-route: the thread-summary filter test uses the real
  shouldIncludeJsonRpcThreadSummary instead of a reimplementation.
- ws e2e/harness: the restart test polls persisted state instead of a
  50ms sleep; wsHarness rejects in-flight requests on socket close with a
  self-describing error instead of stalling to the 10s timeout.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Parent7fd2736

6 files changed
  • test/harness.ws.e2e.test.ts+58−5
  • test/helpers/wsHarness.ts+43−4
  • test/jsonrpc.workspace-route.test.ts+4−8
  • test/providers/connection-catalog.test.ts+47−1
  • test/session/agentSession.settings.test.ts+89−50
  • test/tools/tools.webFetch.test.ts+133−2