Fix #54: Fix comment handling after the first one#55
Merged
Conversation
When plan update fails (usage limit, timeout, or parse error), the issue should stay in AWAITING_*_APPROVAL so the next tick naturally retries run_update with the same new comments. Previously, it set status to INTERRUPTED which caused the orchestrator to retry with run_preliminary (a full re-plan), dropping any comments seen since the plan was posted. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #54
Removed the two
update_issue_state(INTERRUPTED)calls fromrun_updateintasks/plan.py. On failure (usage limit, timeout, or parse error), the function now just returns without changing state, so the issue stays inAWAITING_*_APPROVALand the next tick naturally retries the update with the same new comments. Updated the corresponding test to assert thatupdate_issue_stateis NOT called on failure.