fix: harden PI runtime and tool execution regressions
8 months ago
Authored
mweinbach- apply prepareStep overrides through explicit runtime step state
- preserve stable tool-call IDs across toolcall lifecycle events
- map MCP-style isError tool responses to tool-error results
- coalesce codex auth refresh and improve adapter/runtime parity
- restore provider-aware webSearch behavior and expand regression coverage
Parent380a732
18 files changed
- scripts/run_raw_agent_loops.ts+10−1
- src/agent.ts+5−3
- src/mcp/index.ts+5−3
- src/providers/codex-auth.ts+24−0
- src/providers/modelAdapter.ts+23−33
- src/runtime/index.ts+5−3
- src/runtime/piMessageBridge.ts+24−1
- src/runtime/piRuntime.ts+195−26
- src/runtime/types.ts+8−1
src/tools/defineTool.ts+1−2src/tools/spawnAgent.ts+1−1src/tools/webSearch.ts+70−3tasks/todo.md+63−0test/providers/codex-cli.test.ts+11−9test/providers/helpers.ts+4−1test/runtime.pi-message-bridge.test.ts+14−0test/runtime.pi-runtime.test.ts+91−1test/tools.test.ts+100−0