test: the trust pty tests choose an engine, so they pass where no agent CLI is installed
Problem
v0.10.4's npm publish failed at npm test. Two pty tests from #191 and #193 timed out waiting for the trust message:
a project's mapping that runs a shell command waits for :trusta project's command that defines a mapping waits for :trust…
CI has no Claude Code, Codex or OpenCode CLI, and these tests didn't choose an engine, so vigent started in demo mode, which doesn't show the trust message. Both tests passed locally only because a Claude Code CLI was on PATH there.
Change
Each test's own config sets engine = "claude", so vigent starts normally whatever is installed. Nothing outside the tests changes.
Verification
- No agent CLI on PATH (only node and git), the same conditions as CI:
- before the change: both fail, reproducing the CI error;
- after: all 3 tests in the group pass, on the Node build and the Rust binary.
- With Claude Code on PATH: still passes.
Follow-ups
Publish 0.10.4 to npm once this is in. The binaries, image and Homebrew tap for v0.10.4 are already released.
Generated by Claude Code
Summary by cubic
Fixes two pty tests that timed out in CI, where no Claude Code, Codex, or OpenCode CLI is installed. The tests didn't choose an engine, so vigent started in demo mode, which doesn't show the trust message they wait for.
Each test's config now sets engine = "claude", so vigent starts normally regardless of what's installed. Nothing outside the tests changes.