Skip to content

[Bug]: Grok chat shows Claude could not finish the response #1044

Description

@iuri1911

What happened?

Using the installed Grok CLI as the chat model shows Claude could not finish the response. The turn never reached Claude. Grok failed, and Tinycast reported Claude's missing-result fallback.

Expected: the Grok CLI's own error, and a signed-out CLI shown as sign-in required rather than ready.

Steps to reproduce

  1. Install Grok CLI 1.0.40 (~/.grok/bin/grok) and leave it signed out. grok models still exits 0 and prints the catalog under You are not authenticated.
  2. In Tinycast, enable Grok. Discovery treats that catalog as a login, so the model is offered.
  3. Send a chat message on the Grok route.
  4. The CLI prints an error result and exits 1:
{"type":"result","subtype":"error_during_execution","is_error":true,"errors":["Not signed in. …"],"session_id":""}

There is no result string. InstalledAIStreamDecoder reuses the Claude decoder, which falls back to Claude could not finish the response.

The same fallback fires for any Grok execution error that puts the cause in errors and omits result (error_during_execution, error_max_turns, error_max_structured_output_retries).

Environment

  • Tinycast: current main (9c4755f)
  • macOS 26.7 (25G229), Intel x86_64
  • Grok CLI 1.0.40 (eb1a2256660d)
  • Claude CLI is not installed on this machine, which makes the Claude sentence obviously wrong

Fix

Already written, waiting on approved: #1043

  • Read errors (then result) and name Grok if both are empty.
  • Ignore an empty session_id.
  • Treat the signed-out banner on grok models as sign-in required. The catalog is still parsed; it is not offered until the CLI is signed in.

I'm willing to implement this myself once this issue is labelled approved. The patch is the PR above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedGreen-lit. A PR may link this issue and will pass the gate.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions