pi-mono/packages/coding-agent/test/suite
Armin Ronacher 962b130e0c feat(coding-agent): add in-context compaction
With compaction.inContext enabled, compaction can generate the summary inside the cached conversation: it repeats the request the next turn would send, appends the instructions as a system message plus a user message, and sets toolChoice none. The recent tail is kept as before. A gate requires a verified model, a warm cache from the same model and thinking level, room in the context window, and a lower estimated cost than the standalone summary. Failed or rejected attempts fall back to the standalone summary, never execute tools, and are recorded in details.inContext with their usage.

pi-ai adds the supportsInContextCompaction compat setting and test/in-context-compaction-probe.ts, which measures whether a model keeps its prompt cache for this request shape. The generated catalog flags the models that passed.
2026-10-07 00:14:46 +02:00
..
regressions fix(coding-agent): keep MCP tools with --tools, add tool patterns and --no-mcp 2026-10-05 17:21:55 +02:00
agent-session-bash-persistence.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
agent-session-boundaries.test.ts feat: add canonical session context boundaries 2026-09-21 16:59:20 +02:00
agent-session-codemode.test.ts fix(coding-agent): keep hidden tools out of prompt rules and skills hint 2026-10-05 18:50:17 +02:00
agent-session-compaction-model-overrides.test.ts feat(coding-agent): support per-model compaction token budgets 2026-09-10 08:37:20 +02:00
agent-session-compaction.test.ts feat(coding-agent): Virtual models (#10035) 2026-09-28 23:30:45 +02:00
agent-session-in-context-compaction.test.ts feat(coding-agent): add in-context compaction 2026-10-07 00:14:46 +02:00
agent-session-mcp-oauth.test.ts fix(mcp): send application_type in OAuth dynamic client registration 2026-10-05 17:11:00 +02:00
agent-session-mcp.test.ts fix(coding-agent): keep MCP tools with --tools, add tool patterns and --no-mcp 2026-10-05 17:21:55 +02:00
agent-session-model-extension.test.ts feat(agent): add Pico storage foundation 2026-09-18 12:32:00 +02:00
agent-session-prompt.test.ts feat(ai,coding-agent): add image input limits (closes #9631) 2026-09-20 22:59:16 +02:00
agent-session-queue.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
agent-session-retry-events.test.ts fix(coding-agent): close compaction cancellation races 2026-09-19 19:18:18 +02:00
agent-session-runtime.test.ts fix(coding-agent): save new session file at the first user message 2026-09-25 16:27:51 +02:00
agent-session-tool-orchestration.test.ts feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
agent-session-tool-result-images.test.ts feat(ai,coding-agent): add image input limits (closes #9631) 2026-09-20 22:59:16 +02:00
harness.ts fix(coding-agent): restore MCP tools loaded by tool_search on resume and reload 2026-10-01 13:35:33 +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
mcp-oauth-server.ts feat(coding-agent): opt-in MCP OAuth client ID metadata documents 2026-10-02 16:02:43 +02:00
README.md docs(coding-agent): remove issue-specific regression test placement rule (#8775) 2026-08-28 16:39:28 +02:00
virtual-models.test.ts feat(coding-agent): Virtual models (#10035) 2026-09-28 23:30:45 +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