pi-mono/packages/coding-agent/test/suite
Petr Houška 523b5a4917
fix(coding-agent): normalize find root results (#7569)
Relativize absolute find results with path.relative() instead of slicing
at searchPath.length + 1. path.resolve() keeps the trailing separator for
root paths (POSIX / and Windows bare drive roots like I:\), so the slice
dropped the first character of the first path segment. Preserve directory
markers using platform-aware separators so Windows paths do not gain "//"
and valid POSIX backslashes remain unchanged.

This also avoids treating sibling paths with a shared prefix as children.
Relative results returned by custom glob operations now pass through
unchanged instead of being resolved against process.cwd(), which produced
invalid paths whenever cwd differed from the search path.

Fixes #6104
2026-08-04 00:05:48 +02:00
..
regressions fix(coding-agent): normalize find root results (#7569) 2026-08-04 00:05:48 +02:00
agent-session-bash-persistence.test.ts fix(coding-agent): support concurrent user bash cancellation (#7103) 2026-07-27 12:00:24 +02:00
agent-session-compaction.test.ts fix(coding-agent): resume after context-limited length stops (#7540) 2026-08-03 18:07:53 +02:00
agent-session-model-extension.test.ts add usage info to branch summary, compaction and tool result entries (#6671) 2026-07-20 16:41:43 +02:00
agent-session-prompt.test.ts fix(coding-agent): reject prompts during manual compaction 2026-07-31 14:09:21 +00:00
agent-session-queue.test.ts fix(coding-agent): drain follow-ups queued during agent_end 2026-05-28 18:27:39 +10:00
agent-session-retry-events.test.ts fix(coding-agent): add settled agent lifecycle event 2026-07-09 12:42:08 +02:00
agent-session-runtime.test.ts ***WIP it's a PoC *** fix(coding-agent): guard tree navigation during responses (#7022) 2026-07-28 14:46:30 +02:00
agent-session-tool-result-images.test.ts fix(coding-agent): resize images returned by tools (#7330) 2026-08-03 14:02:03 +02:00
harness.ts fix(coding-agent): reload model config in picker (#7036) 2026-07-24 07:52:49 +02:00
lax-message-content.test.ts fix(ai,agent,coding-agent): normalize null message content at ingestion boundaries (#6343) 2026-07-06 20:47:08 +02:00
README.md refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00

Coding agent suite tests

Use test/suite/ for the new harness-based test suite around AgentSession and AgentSessionRuntime.

Rules:

  • Use test/suite/harness.ts
  • Use the faux provider from packages/ai/src/providers/faux.ts
  • Do not use real provider APIs, real API keys, network calls, or paid tokens
  • Keep these tests CI-safe and deterministic
  • Do not use or extend the legacy test/test-harness.ts path unless a missing capability forces it

Organization:

  • Put broad lifecycle and characterization tests directly under test/suite/
  • Put issue-specific regression tests under test/suite/regressions/
  • Name regression tests as <issue-number>-<short-slug>.test.ts
  • Example: test/suite/regressions/2023-queued-slash-command-followup.test.ts