-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(agents): add --no-interactive to validate commands in agent workflows #494
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
…lows AI agents following OpenSpec workflows would hit interactive prompts when running `openspec validate` because the commands in AGENTS.md and slash command templates didn't include the --no-interactive flag. This caused hangs in LLM tool execution since agents run in pseudo-TTY environments where process.stdin.isTTY returns true, triggering interactive mode. Fixes #492
📝 WalkthroughWalkthroughThe PR adds the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used🧠 Learnings (17)📓 Common learnings📚 Learning: 2025-11-25T01:08:02.839ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:02.839ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
📚 Learning: 2025-11-25T01:08:19.004ZApplied to files:
🔇 Additional comments (4)
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 |
Review CompleteYour review story is ready! Comment !reviewfast on this PR to re-generate the story. |
Summary
--no-interactiveflag to allopenspec validatecommands in agent workflowsagents-template.ts(7 commands),slash-command-templates.ts(2 commands)AGENTS.mdwith the updated templateupdate.test.tsto match new command formatFixes #492
Why
AI agents following OpenSpec workflows hit interactive prompts when running
openspec validatebecause the documented commands didn't include--no-interactive. This caused hangs in LLM tool execution since agents typically run in pseudo-TTY environments whereprocess.stdin.isTTYreturnstrue, triggering interactive mode.Test plan
openspec/AGENTS.mdcontains--no-interactiveon all validate commands🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.