Skip to content

fix: show built-in commands immediately without waiting for MCP#55

Closed
suryaiyer95 wants to merge 1 commit intomainfrom
fix/discover-command-loading
Closed

fix: show built-in commands immediately without waiting for MCP#55
suryaiyer95 wants to merge 1 commit intomainfrom
fix/discover-command-loading

Conversation

@suryaiyer95
Copy link
Copy Markdown
Contributor

Summary

  • /init, /discover, /review were blocked from appearing in the command list until MCP servers and skills finished loading
  • Extracts a defaults() function that returns built-in commands synchronously
  • list() and get() use Promise.race to return defaults immediately while full state resolves asynchronously

Test plan

  • Start altimate-code with an MCP server configured (especially a slow one)
  • Verify /discover, /init, /review appear in command palette immediately
  • Verify MCP prompts and skills appear once they finish loading
  • Verify /discover executes correctly when invoked before MCP finishes

🤖 Generated with Claude Code

Extract `defaults()` so `/init`, `/discover`, `/review` are available
in the command list before MCP servers and skills finish loading.
Uses `Promise.race` in `get()` and `list()` to return defaults as a
fallback while the full state resolves asynchronously.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@anandgupta42 anandgupta42 deleted the fix/discover-command-loading branch March 17, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant