Skip to content

Commit d1d6e5b

Browse files
Document new autocomplete and rendering features
Update knowledge file with: - Scroll-to-element behavior on branch toggles - Slash command autocomplete system (/ trigger) - Agent mention autocomplete system (@ trigger) - Streaming markdown rendering improvements 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 55f4baa commit d1d6e5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

knowledge.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ Codebuff is a tool for editing codebases via natural language instruction to Buf
6161
- Issue: When markdown-rendered content returned arbitrary React elements (e.g., nested `<box>` containers) under `<text>`, toggling a branch threw `Error: TextNodeRenderable only accepts strings, TextNodeRenderable instances, or StyledText instances`.
6262
- Fix (Oct 2025): `cli/src/components/branch-item.tsx` now inspects expanded content; if it is text-renderable, it stays inside `<text>`, otherwise the raw element tree is rendered directly. This prevents invalid children from reaching `TextNodeRenderable` while preserving formatted markdown.
6363
- Related adjustment: `cli/src/hooks/use-message-renderer.tsx` ensures the toggle header renders within a single `<text>` block so glyphs and names remain StyledText-safe.
64+
- Toggling any agent/tool branch now calls `scrollToAgent`, and each branch registers its container via `registerAgentRef`. This keeps the toggled item anchored in the top third of the scrollbox, improving navigation in long sessions.
65+
- Typing `/` now opens a five-item slash menu (mirroring npm-app commands) directly above the input. Use arrow keys or Tab/Shift+Tab to move the highlight and Enter to insert the selected command; the list scrolls as you move beyond the first five items.
66+
- Typing `@` scans the local `.agents` directory, surfaces agent `displayName`s (e.g., `@Codebase Commands Explorer`), and inserts the highlighted agent mention with Enter. Navigation mirrors the slash menu, and both menus cap the visible list at five entries.
67+
- Streaming markdown now renders as plain text until the message or agent finishes, preventing scroll jitter that occurred when partial formatting changed line heights mid-stream.
6468

6569
### Shell Shims (Direct Commands)
6670

0 commit comments

Comments
 (0)