-
Notifications
You must be signed in to change notification settings - Fork 977
feat(init): add IDE restart instruction after init #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add prominent restart instruction in success message to inform users they need to restart their IDE/coding tool for slash commands to appear. Applies to all tools when slash commands are created or refreshed. Also updates cli-init spec to document the restart instruction requirement.
WalkthroughThe PR adds iFlow CLI tool support to initialization and update flows with YAML frontmatter slash-command generation, reorders AI tool registry entries, and introduces a restart reminder prompt when tools are created or refreshed. Changes
Sequence DiagramsequenceDiagram
participant User as User
participant Init as Init Flow
participant Config as Config
participant FS as File System
User->>Init: Run OpenSpec init
Init->>Config: Get AI tools list
Config-->>Init: Return updated AI_TOOLS
User->>Init: Select iFlow CLI
Init->>FS: Create/update IFLOW.md
FS-->>Init: ✓ File created
rect rgba(76, 175, 80, 0.2)
note right of Init: Generate slash commands
Init->>FS: Create .iflow/commands/openspec-proposal.md<br/>(with YAML frontmatter)
Init->>FS: Create .iflow/commands/openspec-apply.md<br/>(with YAML frontmatter)
Init->>FS: Create .iflow/commands/openspec-archive.md<br/>(with YAML frontmatter)
FS-->>Init: ✓ Commands generated
end
rect rgba(33, 150, 243, 0.2)
note right of Init: Show restart prompt
Init->>User: Display restart instruction<br/>(commands loaded at startup)
end
Init->>User: Next steps
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-11-17T12:07:21.701ZApplied to files:
🧬 Code graph analysis (2)openspec/specs/cli-update/spec.md (1)
src/core/init.ts (1)
🪛 LanguageToolopenspec/specs/cli-init/spec.md[style] ~130-~130: Consider using “who” when you are referring to people instead of objects. (THAT_WHO) 🔇 Additional comments (6)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add prominent restart instruction in success message to inform users they need to restart their IDE/coding tool for slash commands to appear. Applies to all tools when slash commands are created or refreshed. Also updates cli-init spec to document the restart instruction requirement.
Add prominent restart instruction in success message to inform users they need to restart their IDE/coding tool for slash commands to appear. Applies to all tools when slash commands are created or refreshed. Also updates cli-init spec to document the restart instruction requirement.
Summary
openspec initProblem
Users don't realize they need to restart their IDE/coding tool after running
openspec initfor slash commands to appear. This is a common pain point that leads to confusion and support requests.Solution
Display a clear "Important: Restart your IDE" message in the post-installation output, positioned prominently before the "Next steps" section. The message explains that slash commands are loaded at startup and instructs users to restart their coding assistant.
Changes
displaySuccessMessage()methodTest Plan
Run
openspec init, select any tool(s), and verify the restart instruction appears in the success message.🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.