Files
Meldwork/desktop/test
Ryder Sun 22f811cde2 fix: harden local agent runs and broaden natural discussion rounds
- Extract WorkBuddy/Claude/Qwen error-result lists (errors[]) into failure
  diagnostics and classify authentication failures as
  LOCAL_AGENT_AUTH_REQUIRED instead of a bare LOCAL_AGENT_PROCESS_FAILED,
  so the catalog marks the Agent as needing a fresh login and retries stop.
- Scope the isolated OpenClaw runtime directory by session, workspace, and
  CLI version, so an upgraded OpenClaw gets a fresh managed scope instead
  of failing on legacy workspace state written by an older CLI.
- Natural agent-led discussions now open with a full participant round and
  the delivery owner cannot declare completion before peers had a
  discussion round; sequential runs get the same cross-review gate
  (system.autoCrossReview).

Checks: npm --prefix desktop test (1574 pass), npm --prefix frontend test
(343 pass), frontend build and build:desktop, desktop pack.
2026-10-14 16:52:25 +08:00
..

Desktop Tests

Desktop tests mirror the source domains under desktop/src. Keep a test next to the domain it verifies, and put reusable fixtures or process harnesses in test/support rather than copying them into individual suites.

The test runner discovers *.test.cjs recursively. Use a focused suite while iterating, then run the complete suite before delivery:

npm run test:agents
npm run test:runs
npm run test:workspace
npm test

Suite selection is defined in scripts/test-discovery.cjs. Add a new domain to TEST_SUITES when it needs an independent, repeatable test command.