feat: extract restart operation to core/operations/restart.ts#95
feat: extract restart operation to core/operations/restart.ts#952witstudios wants to merge 3 commits into
Conversation
Move agent restart logic from commands/restart.ts into a reusable performRestart() function in core/operations/restart.ts. The CLI command is now a thin wrapper handling arg parsing and output formatting. Closes #60
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (5)
✨ 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 |
- Add PromptNotFoundError to error hierarchy (P1: undocumented error code) - Add killedOldAgent flag to RestartResult so command logs kill feedback (P2) - Accept optional projectRoot param for programmatic/conductor use (P2) - Refactor tests: setupDefaults accepts status override, remove duplication (P2) - Add tests for exited/gone agent skip-kill behavior (P3) - Add spawnAgent args assertion test (P3) - Test count: 8 → 14
Summary
commands/restart.tsintocore/operations/restart.tswith a reusableperformRestart()functioncommands/restart.tsto a thin CLI wrapper (arg parsing + output formatting)Test plan
npm run typecheckpasses (no new errors)npm test— all 201 tests pass (8 new), pre-existing cron-parser failures unchangedCloses #60