feat: Broad-Side re-submits truncated slices automatically (#133) - #151
Merged
Conversation
Submit persists every request body to .codecarto/broadside/<run>/ requests.json so collect can recover coverage lost to a max_tokens cutoff without re-walking the repo. Collect re-submits each truncated result once with a doubled output cap (bounded by the model's completion ceiling), rewrites the JSON/markdown for recovered slices, clears their truncation flag, and reports the recovery in the collect summary. Still-truncated slices stay flagged. Opt out with retry_truncated: false. Closes the remaining half of #133. 3 new tests (request persistence, resubmit flow with a doubled cap, opt-out); 38 broadside tests, 398 total, all passing.
This was referenced Aug 24, 2026
# Conflicts: # CHANGELOG.md # ROADMAP.md # tests/broadside.test.mjs
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 the remaining half of #133 (truncation detection shipped earlier in #144).
.codecarto/broadside/<run>/requests.json— so collect can recover a truncated slice without re-walking the repo (also survives a crash between submit and collect).max_tokens(bounded by the model's completion ceiling), rewrites the recovered JSON/markdown, clears the truncation flag, and reports↻ N recoveredin the summary.⚠ still truncated after retry); opt out withretry_truncated: false.3 new tests (request persistence, resubmit flow asserting the doubled cap, opt-out path). 38 broadside tests, 398 total, all passing.
Note: this branch inserts a bullet at the top of the CHANGELOG 'Added' section, as do #149 and #150 — trivial list-merge conflicts expected on whichever merges later; keep all bullets.