-
Notifications
You must be signed in to change notification settings - Fork 404
fix(monitor): forward all CLI parameters to inner ralph loop #126
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
base: main
Are you sure you want to change the base?
Conversation
…ia#120) When using --monitor flag, the tmux session now correctly forwards all CLI parameters to the inner ralph_loop.sh execution instead of only --calls and --prompt. Added forwarding for: - --output-format (json/text) - --verbose - --timeout - --allowed-tools - --no-continue - --session-expiry Added 8 new tests for parameter forwarding validation. Test count: 329 (up from 321) Fixes frankbria#120 Co-Authored-By: Claude <[email protected]>
WalkthroughThe changes address Issue Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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
🧪 Generate unit tests (beta)
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 |
Forward monitor CLI parameters into the inner ralph loop by updating
|
|
Hey! I just merged a fix on main (#133) for a flaky test (test 199 in Could you rebase onto |
Summary
Fixes #120
When using
--monitorflag, the tmux session now correctly forwards all CLI parameters to the innerralph_loop.shexecution. Previously, only--callsand--promptwere forwarded, causing parameters like--output-format textto be silently ignored.Changes
setup_tmux_session()inralph_loop.shto forward all 6 additional CLI parameters:--output-format(json/text) - was the reported bug--verbose(boolean flag)--timeout(minutes, default 15)--allowed-tools(tool permissions)--no-continue(disable session continuity)--session-expiry(hours, default 24)Test Plan
npx bats tests/unit/test_cli_parsing.batsralph --monitor --output-format text --verbose # Should now show "[INFO] Using modern CLI mode (text output)" instead of JSONralph --monitor --output-format text --timeout 30 --verbose # All parameters should be forwarded to the inner loopTest Results
🤖 Generated with Claude Code (issue-hunter-pro)
Summary by CodeRabbit
Improvements
Tests
✏️ Tip: You can customize this high-level summary in your review settings.