fix: raise observer analysis turn budget#387
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR makes the Claude CLI's Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16bc7436c5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ;; | ||
| esac | ||
|
|
||
| if [ "$max_turns" -lt 4 ]; then |
There was a problem hiding this comment.
Guard max-turn parsing against integer overflow
The new max-turn validation treats any digit-only string as valid, but the subsequent check if [ "$max_turns" -lt 4 ] can throw integer expression expected for oversized numeric inputs; when that happens, the fallback path is skipped and the huge value is still passed to claude --max-turns. In environments where ECC_OBSERVER_MAX_TURNS is set to an out-of-range number (for example by typo or inherited env), this bypasses the intended safe default of 10 and can cause noisy runtime errors or failed analysis runs.
Useful? React with 👍 / 👎.
…max-turns fix: raise observer analysis turn budget
Summary
Testing
Closes #386
Summary by cubic
Switch the observer analysis loop to a configurable
ECC_OBSERVER_MAX_TURNS(default 10) instead of the hardcoded 3. Invalid or undersized values fall back to 10, with new tests to enforce the contract, addressing #386.Written for commit 16bc743. Summary will update on new commits.
Summary by CodeRabbit
New Features
Tests