Skip to content

Once an error is encountered in tool call, the session cannot recover #199

@hammerhoundai

Description

@hammerhoundai

What happened?

╭──────────────────────────────────────────────────────────────────╮
│ ✔ WebFetch Processing URLs and instructions from prompt: "Get… │
│ │
│ The 'prompt' must contain at least one valid URL │
│ (starting with http:// or https://). │
╰──────────────────────────────────────────────────────────────────╯

╭──────────────────────────────────────────────────────────────────╮
.. .. . . . ..
╰─────────────────────────────────────────────────────────────╯
✕ [API Error: OpenAI API error: 400 Invalid request: tool_call_id
is not found]

╭──────────────────────────────────────────────────────────────────╮
.. .. . . . ..
╰─────────────────────────────────────────────────────────────╯

✕ [API Error: OpenAI API error: 400 Invalid request: 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: brave_web_search:3]

╭──────────────────────────────────────────────────────────────────╮
.. .. . . . ..
╰─────────────────────────────────────────────────────────────╯

✕ [API Error: OpenAI API error: 400 Invalid request: 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: brave_web_search:3]

What did you expect to happen?

It should be possible to rescue such a session instead of having to close the session and start fresh.

Client information

  • CLI Version: 0.0.4
  • Git Commit: 8d6dfaa (local modifications)
  • Operating System: linux v20.19.4
  • Sandbox Environment: no sandbox
  • Model Version: kimi-k2-turbo-preview
  • Memory Usage: 220.5 MB

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions