refactor(cli): show only loaded items in startup status line

Changes the startup status line to only display items that were
actually loaded, instead of showing dots for missing items.

Before: "   · README  · AGENTS.md  ✓ Memory"
After:  "   ✓ Memory"

Also adds include prompt to the status line when specified:
"   ✓ prompt.md  ✓ Memory"

The order matches the load order: README → AGENTS.md → include prompt → Memory
This commit is contained in:
Dhanji R. Prasanna
2026-01-17 15:35:37 +05:30
parent 4877f8ae8a
commit 5622e5b21e
3 changed files with 58 additions and 38 deletions

View File

@@ -1910,7 +1910,7 @@ fn test_code_fence_no_trailing_newline() {
let mut fmt = StreamingMarkdownFormatter::new(skin);
// Note: no newline after closing ```
let input = "Done!\n\n```\n>> agent mode | fowler\n-> ~/src/g3\n ✓ README | ✓ AGENTS.md | ✓ Memory\n```";
let input = "Done!\n\n```\n>> agent mode | fowler\n-> ~/src/g3\n ✓ README ✓ AGENTS.md ✓ Memory\n```";
let mut output = String::new();
for ch in input.chars() {