Repository navigation
fix(roadmap): keep the diff of a step when a model call fails - #2781
Merged
Merged
Conversation
Owner
Author
|
Test results
Review findings, both fixed test first
Findings not fixed: none. |
dan-petty
marked this pull request as ready for review
October 30, 2026 14:29
…-model-failure # Conflicts: # openspec/specs/roadmap-implement-step/spec.md # src/devops_cli/roadmap/implement_step.py
dan-petty
pushed a commit
that referenced
this pull request
Oct 30, 2026
🤖 I have created a release *beep* *boop* --- ## [0.22.5](v0.22.4...v0.22.5) (2026-10-30) ### Bug Fixes * **roadmap:** keep the diff of a step when a model call fails ([#2781](#2781)) ([c6a837d](c6a837d)), closes [#2731](#2731) * **roadmap:** name the repo and cause in refine warnings ([#2784](#2784)) ([85b3a67](85b3a67)), closes [#2562](#2562) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.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.
A step of
devops roadmap implementnow keeps the diff of its work when a model call fails.Before this change, a failed model call raised a client error. The step reset the checkout, and the stop comment of the item held no diff. The case was worst in the extra turn for the ticks: every check had passed, and a person could not see the work.
Now
_run_agentends the turn as stopped for aModelAPIErrorthat is not a refused key. The outcome holds the masked, size-limited diff, the requests and the tokens (the failed request included), and the last text of the model. The ledger holds the spend of the failed turn. AModelHTTPErrorwith the status 401 or 403 still raisesAICredentialsErrorand stops the whole run.The reason of a failed model call holds the class of the error, the HTTP status when it has one, and the name of the model. It holds neither the message nor the body of the reply.
mask_secretsdoes not find the value of a key such asx-api-keyin the repr of a dict body, and the comment goes to GitHub. If git cannot give the diff, the step still ends as stopped, with the git error added to the reason.Closes #2731