Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: harden PI runtime and tool execution regressions

8 months ago

f148087
Authored
mweinbach2/27/2026, 6:36:05 PM
- 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−2
  • src/tools/spawnAgent.ts+1−1
  • src/tools/webSearch.ts+70−3
  • tasks/todo.md+63−0
  • test/providers/codex-cli.test.ts+11−9
  • test/providers/helpers.ts+4−1
  • test/runtime.pi-message-bridge.test.ts+14−0
  • test/runtime.pi-runtime.test.ts+91−1
  • test/tools.test.ts+100−0