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
- 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.
- In Tinycast, enable Grok. Discovery treats that catalog as a login, so the model is offered.
- Send a chat message on the Grok route.
- 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.
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-
resultfallback.Expected: the Grok CLI's own error, and a signed-out CLI shown as sign-in required rather than ready.
Steps to reproduce
~/.grok/bin/grok) and leave it signed out.grok modelsstill exits 0 and prints the catalog underYou are not authenticated.{"type":"result","subtype":"error_during_execution","is_error":true,"errors":["Not signed in. …"],"session_id":""}There is no
resultstring.InstalledAIStreamDecoderreuses the Claude decoder, which falls back toClaude could not finish the response.The same fallback fires for any Grok execution error that puts the cause in
errorsand omitsresult(error_during_execution,error_max_turns,error_max_structured_output_retries).Environment
main(9c4755f)eb1a2256660d)Fix
Already written, waiting on
approved: #1043errors(thenresult) and name Grok if both are empty.session_id.grok modelsas 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.