fix(installer): drop bogus 'gaia chat init' from post-install banner (#1024)#1029
Open
kovtcharov wants to merge 2 commits intomainfrom
Open
fix(installer): drop bogus 'gaia chat init' from post-install banner (#1024)#1029kovtcharov wants to merge 2 commits intomainfrom
kovtcharov wants to merge 2 commits intomainfrom
Conversation
…1024) The post-install banner advertised `gaia chat init` as the way to "Setup document folder" — but the chat subparser only defines flags (`--query`, `--index`, `--watch`, ...), never a positional `init` action. Following the banner produced `error: unrecognized arguments: init`. Replace the bogus line with three concrete, shell-safe examples that match the user's actual intent (bringing documents into RAG): gaia chat Start interactive chat with RAG gaia chat --index report.pdf Index a PDF for Q&A gaia chat --watch ./docs Auto-index a folder of docs Use `report.pdf` / `./docs` rather than `<placeholder>` syntax — `<` is a reserved redirection operator in PowerShell (the platform on the original report) and would have re-broken the same Windows users on a different parse error. Also fix a CLAUDE.md example that propagated the same fake commands (`gaia chat init`, `gaia chat status`) to anyone training agents off this repo. Replaced with `gaia init --profile chat` and `gaia diagnostics`, which are real and actually diagnostic.
The post-install banner now points users at `gaia chat --watch ./docs` but the docs only documented `--index`. Add a "Watch Folder" example in `docs/guides/chat.mdx` (Tabs alongside Single/Multiple/One-shot/Voice) and `docs/reference/cli.mdx` (CodeGroup alongside the existing chat examples), plus a one-line snippet in `docs/reference/features.mdx`. The `--watch` flag itself was already in the cli.mdx options table — this just adds runnable examples so users following the banner have something to copy.
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.
Why this matters
Closes #1024.
Before: After
gaia init, the post-install banner advertisedgaia chat initas the way to "Setup document folder". That command never existed — the chat subparser only defines flags (--query,--index,--watch, …). Following the banner's own instructions printederror: unrecognized arguments: initand stopped the user cold (Windows 11 / PowerShell, but reproducible everywhere).After: The banner shows three real, working commands that match the user's actual intent (bringing documents into RAG):
```
gaia chat Start interactive chat with RAG
gaia chat --index report.pdf Index a PDF for Q&A
gaia chat --watch ./docs Auto-index a folder of docs
```
Concrete filenames (
report.pdf,./docs) instead of<placeholder>syntax —<is a reserved redirection operator in PowerShell and would have re-broken the same Windows users on a different parse error.Also fixed a CLAUDE.md example that propagated the same fake
gaia chat init/gaia chat statuscommands to anyone training agents off this repo (replaced with the realgaia init --profile chatandgaia diagnostics).Test plan
python -c "import sys; sys.argv=['gaia','chat','init']; from gaia.cli import main; main()"→ still rejects (bug behavior confirmed)gaia chat --index report.pdfandgaia chat --watch ./docsparse cleanly and dispatch to the chat agent_print_completion()rendered in both rich and plain-text branches — output is shell-safe on PowerShell, cmd, bash, zshpython -m black --check src/gaia/installer/init_command.pycleanpytest tests/unit/test_webui_build.py tests/unit/installer/test_init_ctx_size.py→ 19 passedgaia init --profile chatfollowed by the suggested commands works end-to-end on Windows 11 / PowerShell