fix: pass command config to agent in create-prd and doctor commands#191
Conversation
The `command` field from storedConfig was not being passed to the agent plugin configuration in the create-prd and doctor commands. This caused these commands to ignore the user's configured custom command (e.g., `command = "zai"` in config.toml) and always use the default command. The main `run` command already handled this correctly via `buildConfig()` and `getDefaultAgentConfig()`, but these two commands built their agent configs manually without including the command field. Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
@Unravl is attempting to deploy a commit to the plgeek Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughPropagates stored configuration into agent initialization: adds optional Changes
Sequence Diagram(s)(omitted — changes are parameter propagation, not a new multi-component control flow) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #191 +/- ##
=======================================
Coverage 44.90% 44.91%
=======================================
Files 76 76
Lines 22075 22077 +2
=======================================
+ Hits 9913 9915 +2
Misses 12162 12162
🚀 New features to boost your workflow:
|
Similar to the existing command config propagation, this ensures that envExclude patterns from the stored config are passed to the agent when initialized in create-prd and doctor commands.
- Add tests verifying envExclude is passed to getInstance in doctor command - Add tests verifying command is passed to getInstance in doctor command - Add create-prd.test.tsx with argument parsing tests
|
@Unravl thanks for the fix - i also added some tests. Merging and will be in the 0.4.0 release today |
…-prd-and-doctor fix: pass command config to agent in create-prd and doctor commands
Summary
create-prdcommand to passstoredConfig.commandto agent configdoctorcommand to passstoredConfig.commandto agent configThe
commandfield from config was not being passed to the agent plugin configuration in these commands. This caused them to ignore the user's configured custom command (e.g.,command = "zai"in config.toml) and always use the default command (e.g.,claude).The main
runcommand already handled this correctly viabuildConfig()andgetDefaultAgentConfig(), but these two commands built their agent configs manually without including the command field.Test plan
command = "custom-agent"in~/.config/ralph-tui/config.tomlralph-tui create-prdand verify it uses the custom commandralph-tui doctorand verify it checks the custom commandralph-tui runstill works (no changes needed there)🤖 Generated with Claude Code
Summary by CodeRabbit
Refactor
Tests
✏️ Tip: You can customize this high-level summary in your review settings.