mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
1.6 KiB
1.6 KiB
Deferred test coverage
These cases were removed from the coding-agent server backend PR to keep its test scope focused. Reintroduce them in separate, ownership-specific PRs.
Agent session persistence
Target: packages/agent/test/harness/repo.test.ts
- Verify that opening a JSONL session with malformed entry JSON fails loudly instead of returning partial history.
- Verify that malformed JSONL session headers fail
list()andopen()instead of being omitted. - Add one coding-agent backend boundary test with an injected
SessionRepositorythat rejects duringlist()oropen(), proving repository failures propagate without depending on JSONL internals.
Agent harness shutdown
Target: packages/agent/test/harness/agent-harness.test.ts
- Verify
requestShutdown({ discardPendingWrites: true })aborts active work, drains shutdown, and does not persist assistant output produced after ownership is lost.
Agent shell environment
Target: packages/agent/test/harness/tools.test.ts
- Verify a bash preparation patch can set an environment variable to
undefinedto remove an inherited value from the child process.
Coding-agent server hardening
Target: packages/coding-agent/test/server/
- Verify an absolute cwd symlink whose target is a directory is accepted and preserved in snapshots.
- Verify reopening rejects a persisted cwd that no longer resolves to a directory.
- Verify non-file-backed repositories remove an inherited
PI_SESSION_FILEfrom bash child processes. - Verify transcript lifecycle events cannot publish an idle runtime phase before the originating prompt operation settles.