Skip to content

fix(installer): drop bogus 'gaia chat init' from post-install banner (#1024)#1029

Open
kovtcharov wants to merge 2 commits intomainfrom
fix/chat-init-banner-1024
Open

fix(installer): drop bogus 'gaia chat init' from post-install banner (#1024)#1029
kovtcharov wants to merge 2 commits intomainfrom
fix/chat-init-banner-1024

Conversation

@kovtcharov
Copy link
Copy Markdown
Collaborator

Why this matters

Closes #1024.

Before: After gaia init, the post-install banner advertised gaia chat init as 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 printed error: unrecognized arguments: init and 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 status commands to anyone training agents off this repo (replaced with the real gaia init --profile chat and gaia diagnostics).

Test plan

  • Reproduce: python -c "import sys; sys.argv=['gaia','chat','init']; from gaia.cli import main; main()" → still rejects (bug behavior confirmed)
  • gaia chat --index report.pdf and gaia chat --watch ./docs parse 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, zsh
  • python -m black --check src/gaia/installer/init_command.py clean
  • pytest tests/unit/test_webui_build.py tests/unit/installer/test_init_ctx_size.py → 19 passed
  • Reporter (@pleabargain) confirms gaia init --profile chat followed by the suggested commands works end-to-end on Windows 11 / PowerShell

…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.
@kovtcharov kovtcharov mentioned this pull request May 10, 2026
3 tasks
@github-actions github-actions Bot added the devops DevOps/infrastructure changes label May 10, 2026
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.
@github-actions github-actions Bot added the documentation Documentation changes label May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops DevOps/infrastructure changes documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gaia chat init throw error!

1 participant