Skip to content

Provider 400 after successful Bash output with zgo@kimi-k2.5/k2.6 in Claude Code v2.1.119 #111

@yowmamasita

Description

@yowmamasita

Summary

When running claudish with ZenGo Kimi models, tool execution can succeed (and print output) but the provider layer still returns:

{"type":"error","error":{"type":"invalid_request_error","message":"Error from provider: Provider returned error"}}

This appears after Bash tool calls in claudish --model zgo@kimi-k2.5 and claudish --model zgo@kimi-k2.6.

Environment

  • claudish CLI (Claude Code banner shows v2.1.119)
  • Models:
    • zgo@kimi-k2.5
    • zgo@kimi-k2.6

Reproduction

  1. Run:
    claudish --model zgo@kimi-k2.5
    or
    claudish --model zgo@kimi-k2.6
  2. Prompt:
    show me offline clients
    
  3. Agent executes a Bash tool command.

Observed behavior

k2.5

  • First attempt (ssh ...) fails auth (expected for missing creds)
  • Second attempt with sshpass returns valid table output (38+ lines)
  • Despite successful command output, UI shows API error:
    • invalid_request_error: Error from provider: Provider returned error

k2.6

  • Sometimes gets stuck in repeated Coalescing…
  • When it does run Bash, same API Error: 400 appears after command output/failure

Expected behavior

  • If Bash output is valid and returned, the turn should complete normally.
  • Provider errors should not be surfaced when the tool result is already available and usable.

Additional context

Potentially relevant code path:

Raw snippets

⎿  API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"Error from provider: Provider returned error"}}
k2.6 session also showed repeated: "Coalescing…"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions