singularity-forge/packages/pi-agent-core/src
Tom Boucher 2ea668ee09 fix: handle pause_turn stop reason to prevent 400 errors with native web search (#2869) (#3248)
Map pause_turn to "pauseTurn" instead of "stop" so the agent loop
continues when Anthropic's server pauses a long-running turn (e.g.
native web search hitting its iteration limit). Previously the
incomplete server_tool_use block was saved to history, causing a
400 invalid_request_error on the next API call.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 13:51:18 -06:00
..
agent-loop.test.ts fix: handle pause_turn stop reason to prevent 400 errors with native web search (#2869) (#3248) 2026-03-30 13:51:18 -06:00
agent-loop.ts fix: handle pause_turn stop reason to prevent 400 errors with native web search (#2869) (#3248) 2026-03-30 13:51:18 -06:00
agent.test.ts fix(footer): display active inference model during execution (#1982) 2026-03-22 17:06:49 -06:00
agent.ts feat(agent-core): add externalToolExecution mode for external providers 2026-03-25 12:57:47 -06:00
index.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
proxy.ts fix: handle pause_turn stop reason to prevent 400 errors with native web search (#2869) (#3248) 2026-03-30 13:51:18 -06:00
types.ts feat(agent-core): add externalToolExecution mode for external providers 2026-03-25 12:57:47 -06:00