Repository navigation
fix(cli): keep exactly named find blocks, the typed --run on retry, and measure only referenced bytes - #10605
Open
waleedlatif1 wants to merge 2 commits into
Open
waleedlatif1 wants to merge 2 commits into
waleedlatif1 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge. SummaryThree focused CLI fixes:
No actionable issues found. Reviewed the added regression tests; did not run them. Reviews (2) · Last reviewed commit: "fix(cli): keep the trigger-named retry r..." · Reviewed by Greptile |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…nd measure only referenced bytes - source find: blocks a name matches exactly go ahead of partial matches before the 20-block cap - workspaces source apply: the failed-run next command dedupes runs by the lock-resolved trigger and keeps the --run the user typed over a refusal's rewrite - workflows source apply: the size preflight sums the entry and the code files it references, as the server does; the file count still covers every sent file
waleedlatif1
force-pushed
the
fix/cli-find-run-dedupe-byte-preflight
branch
from
December 1, 2026 22:12
29e3d22 to
3af0fa7
Compare
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This branch was previously deployed
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.
Summary
Three small sim-cli fixes:
sim workflows source find: with several names, matches were joined in the order given and then cut to 20 blocks. A broad partial name (find 'core' 'Fallback') could push a block named exactly past the cap, and then the command told the caller to name it exactly. Exact matches now go ahead of partial matches before the cap.sim workspaces source apply --run: the failed-runnextcommand deduped runs by their names as typed. That caused two problems. A bare run that was refused and rewritten toorders.apiIn={a}beat the user's ownorders.apiIn={b}. And a rewrite next to a run naming the same trigger by its block key survived the dedupe, so the suggested command was then refused ("one trigger of workflows/orders/").testRunsnow dedupes on the lock-resolved trigger id, as its own check does, and keeps the value the user typed over a rewritten one.sim workflows source apply: the size preflight summed every file it sent, including code files that only the lock still names. The server measures only the entry plus the code files it references, so the CLI could refuse a source the server accepts.maxFilesis still counted over every sent file.maxTotalBytesis now measured over the entry and the code files it references.Tests
Each new test fails on the pre-fix source and passes after the fix:
Score Nblocks plusfind 'core' 'Fallback'still prints Fallbackingest={"a":1}plusingest.apiIn={"b":2}gives a next command that keeps{"b":2}. A bare run plusingest.apiin={"b":2}(the block key) gives a single entryE_LIMIT_EXCEEDED. A referenced 4 MB code file is still refused before sending (guard)Gates
bun run generate(no artifact changes)