fix: clear prompt traces during --fresh and rerun reset#569
Merged
Muizzkolapo merged 1 commit intoMay 19, 2026
Merged
Conversation
542319e to
6ba5ec0
Compare
clear_prompt_traces() existed on the storage backend but was never called from production code, causing unbounded growth of the prompt_trace table across runs. Add calls in both _clear_for_fresh_run and _reset_retryable_actions alongside the existing delete_target and clear_disposition calls.
6ba5ec0 to
9372046
Compare
d32d433
into
integration/batch-online-unification
1 check passed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
clear_prompt_traces()existed on the storage backend but was never called from production code, causing unbounded growth of theprompt_tracetable across runsclear_prompt_traces(action_name)call in both_clear_for_fresh_runand_reset_retryable_actionsalongside existingdelete_targetandclear_dispositioncallsVerification