Skip to content

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

Merged
kovtcharov-amd merged 4 commits into
mainfrom
fix/chat-init-banner-1024
May 11, 2026
Merged

kovtcharov-amd merged 4 commits into
mainfrom
fix/chat-init-banner-1024

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

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
2 of 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
@kovtcharov-amd
kovtcharov-amd enabled auto-merge May 11, 2026 19:52
@kovtcharov-amd
kovtcharov-amd requested a review from itomek May 11, 2026 20:00
itomek
itomek previously approved these changes May 11, 2026
Keep this branch's corrected commands (gaia init --profile chat,
gaia diagnostics) over main's stale gaia chat init / gaia chat status.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue May 11, 2026
Merged via the queue into main with commit a00b6a0 May 11, 2026
22 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the fix/chat-init-banner-1024 branch May 11, 2026 21:38
@itomek itomek mentioned this pull request May 14, 2026
5 of 6 tasks
pull Bot pushed a commit to bhardwajRahul/gaia that referenced this pull request May 15, 2026
## Why this matters

v0.18.0 ships agent memory v2 (hybrid-search second brain with LLM
extraction and observability dashboard), ChatAgent split into three
composable agents (Chat/FileIO/DocumentQA), parallel tool calls, and a
Telegram adapter scaffold — plus fixes the RAG-on-PDF timeout with Gemma
4 that broke document Q&A since v0.17.6 and adds CI gates that enforce
RAG quality baselines on every future PR.

Full notes: `docs/releases/v0.18.0.mdx`.

## What's New

- **Agent memory v2** ([amd#606](amd#606)) —
Hybrid semantic + keyword search, LLM extraction, observability
dashboard via SSE streaming
([amd#1032](amd#1032)). Per-user isolation
enforced; extraction runs async so it doesn't add latency.
- **ChatAgent split** ([amd#979](amd#979)) —
`ChatAgent`, `FileIOAgent`, and `DocumentQAAgent` replace the monolithic
class; each composable via `tools=`. Backward-compatible shim preserved.
- **Parallel tool calls** ([amd#946](amd#946))
— Multiple `tool_calls` from a single LLM turn are executed
concurrently, cutting round-trips for multi-tool workflows.
- **Telegram adapter scaffold, Phase 0**
([amd#951](amd#951)) — `gaia telegram
start|stop|status`, per-user session isolation, `[telegram]` extras.
Phase 1 (message handling + allowed-users gate) tracked in
[amd#889](amd#889).
- **Connectors: per-MCP toggle + single-writer enforcement**
([amd#1018](amd#1018),
[amd#998](amd#998)) — Disable individual MCP
servers without removing them; concurrent writes serialised with
actionable errors on contention.
- **File navigation, web browsing, and write security**
([amd#495](amd#495)) — `FileSearchToolsMixin`,
web browsing tool, and scratchpad mixin in `KNOWN_TOOLS`; write tools
check `allowed_paths` before dispatch.
- **Email UI and policy alerts**
([amd#995](amd#995),
[amd#1039](amd#1039),
[amd#952](amd#952)) — Pre-scan triage card,
in-chat Connect, policy alert cards, and durable receipts for
confirmation-gated actions.

## Bug Fixes

- **RAG-on-PDF timeouts on Gemma 4**
([amd#1034](amd#1034), closes
[amd#1030](amd#1030)) — Prompt-size budget
check added at composition time; CI gates enforce it on every PR
([amd#1040](amd#1040)).
- **Envelope-level parse failure crashed SD recovery**
([amd#1047](amd#1047), closes
[amd#1023](amd#1023)) — Falls through to a
clean recovery path with step-1 context preserved.
- **Windows-path tool args corrupted**
([amd#1027](amd#1027)) — Backslash
normalisation now happens after argument parsing.
- **Blender `send_command` hung**
([amd#1026](amd#1026), closes
[amd#1022](amd#1022)) — Read timeout applied
to persistent-connection servers.
- **`gaia chat init` in post-install banner**
([amd#1029](amd#1029), closes
[amd#1024](amd#1024)) — Replaced with the
correct `gaia init`.
- **Keyring treated as required**
([amd#1028](amd#1028)) — Import guarded;
optional on systems without `keyring`.
- **electron-builder URLs stale**
([amd#953](amd#953)) — Three doc/installer
files updated to current download paths.

## Tooling & Docs

- **RAG eval CI gates** ([amd#1040](amd#1040),
closes [amd#1033](amd#1033)) — RAG quality
baselines + prompt-size budget enforced on every PR.
- **Fork-PR authors now receive Claude review**
([amd#932](amd#932)) —
`allowed_non_write_users: "*"` with prompt-injection mitigations
documented.
- **Eval runs mandated before merging**
([amd#1036](amd#1036)) — `CLAUDE.md` requires
`gaia eval agent` for LLM-affecting changes.
- **GAIA website** ([amd#369](amd#369)) —
[amd-gaia.ai](https://amd-gaia.ai) live.
- **Custom agent guide reorganised**
([amd#997](amd#997)), Lemonade PPA docs
([amd#801](amd#801)), broken Lemonade CLI URL
fixed ([amd#996](amd#996)), WhatsApp adapter
evaluation spec ([amd#950](amd#950)).

## Release checklist

- [x] `util/validate_release_notes.py docs/releases/v0.18.0.mdx --tag
v0.18.0` passes
- [x] `src/gaia/version.py` → `0.18.0`
- [x] `src/gaia/apps/webui/package.json` → `0.18.0`
- [x] Navbar label in `docs/docs.json` → `v0.18.0 · Lemonade 10.2.0`
- [x] All 28 commits in range (v0.17.6..HEAD) are represented in the
notes
- [ ] Review from @kovtcharov-amd addressed
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 tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gaia chat init throw error!

3 participants