Skip to content

test: CLI multi-spawn tests time out at the 5 s default under load #249

Closed

Description

@ElbertePlinio

Found while fixing #239 (PR #246). Several CLI tests spawn the built CLI two or more times but keep vitest's 5000 ms default. Under CPU contention each spawn can take 2 to 3 s, so they time out like #239 did.

In packages/cli/test/agents.test.ts, "creates a missing cursor config at the default path and unlinks it" (around line 298) and "registers only the core server by default and the browser relay with --browser" (around line 202) each spawn three times. Tests in the "agents link cursor", "agents link codex" and "agents link claude-code" blocks timed out 4 to 15 times per file run with 8 busy loops on 2 pinned CPUs.

Full coverage runs at load average 17 to 48 also timed out in commands.test.ts ("pickforge-lab artifacts" report tests, the session desktop viewer 8 s bound, desktop env, android fake adb), artifacts-export.test.ts, desktop-windows.test.ts and session-status.test.ts. Each file passes alone.

Activity

  1. added
    bug
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions