Slash-command completion misses still-connecting MCP prompts #197

Open
opened 2026-11-21 12:36:46 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-cli/src/main.rs:command_specs
What is hacky: prompts of servers still connecting are absent from completion; only /mcp and typed /server:prompt work.
Proper fix: refresh completion specs when servers finish connecting.
Original comment: "servers still connecting have no prompts yet; /mcp shows them, typed /server:prompt still resolves"

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-cli/src/main.rs:command_specs What is hacky: prompts of servers still connecting are absent from completion; only `/mcp` and typed `/server:prompt` work. Proper fix: refresh completion specs when servers finish connecting. Original comment: "servers still connecting have no prompts yet; `/mcp` shows them, typed `/server:prompt` still resolves" Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the cli label 2026-11-21 12:36:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#197