coder / coder/aibridge

Bad request error with codex + tool call

Open
#68 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
39
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Rarely when prompt executes tool call it fails with "400 Bad request" error. Any subsequent prompts are also failing with the same error. Restarting client fixes the issue.

I've encountered this 2 times when using codex, both times external tool (not injected) was called.

Error seems to happen randomly. I have not found reliable way to reproduce it.

```
› how many coder licenses do I have?

• You're logged in as Admin User. To determine how many Coder licenses you have, I'll need to check the details for your organization. Please hold on while I attempt to gather this information.

• Called codex.list_mcp_resources({})
└ {"resources": []}

■ unexpected status 400 Bad Request: {"error":{"code":"","message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages:
call_Jp7zbvAXmPHRp4OZFT1DcTNM","param":"","type":"invalid_request_error"}}data: [DONE]

› say hi

■ unexpected status 400 Bad Request: {"error":{"code":"","message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages:
call_Jp7zbvAXmPHRp4OZFT1DcTNM","param":"","type":"invalid_request_error"}}data: [DONE]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.