fix(chat): don't override chibi's model with invalid openrouter name#47
Merged
terraboops merged 1 commit intomainfrom Feb 22, 2026
Merged
fix(chat): don't override chibi's model with invalid openrouter name#47terraboops merged 1 commit intomainfrom
terraboops merged 1 commit intomainfrom
Conversation
the TUI hardcoded model to "claude-sonnet-4-5" which is not a valid openrouter model ID (needs "anthropic/" prefix). this caused chibi-json to fail with a 400 error before making any LLM call — the root cause of the "no visible response" bug in autonav chat with chibi harness. fix: only pass DEFAULT_MODEL for non-chibi harnesses. chibi uses its own config.toml default. navigator config.harness.model is threaded through as an explicit override when set.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
autonav chat --harness chibiproducing no responsemodel: "claude-sonnet-4-5"which is not a valid OpenRouter model ID (needsanthropic/prefix), causing chibi-json to fail with HTTP 400 before making any LLM callDEFAULT_MODELfor non-chibi harnesses; chibi falls back to its ownconfig.tomldefaultconfig.harness?.modelfromnav-chat.tsso navigator config can provide an explicit model override (same pattern asnav-query.ts)Test plan
autonav chat <navigator> --harness chibi— produces a responseautonav chat <navigator>(claude-code, default) — still usesclaude-sonnet-4-5harness.modelset inconfig.json— model override respected