Repository navigation
fix(paper2code): compare tool arguments when detecting loops - #299
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Merged on 2026-11-16 as e824d71 ("Merge PR #299"). Thank you! I reproduced the bug on main first: five consecutive reads or writes of different files aborted the Paper2Code implementation run, and your two workflow tests show exactly that (they fail on main and pass here). Comparing a sorted-keys signature of the arguments matches what the main runtime's repeat guard does, so it fits well. #290 changed the same lines in |
Description
Paper2Code counted only tool names, so reading five different modules or writing several planned files consecutively could abort as a loop. Compare the tool name and a stable snapshot of its JSON arguments instead. Changed paths or content can proceed; repeated calls with identical arguments still stop the workflow, regardless of object key order.
Closes #294.
Changes Made
Validation
Validated at
728e90f4fa969b2f0ac3435bf95bc26abc892a30:scripts/ci/requirements.lock: 3238 passed, 43 skipped.pre-commit run --all-files --show-diff-on-failureandpython -m pip check: passed.npm run build(including version and Tauri-config checks): passed.npm run test:web, using Chromium and the real local service: 2 passed.Not run locally: Rust fmt/clippy/tests, Windows lifecycle checks, or the Python 3.13/3.14 matrix. These still need their remote CI results. No live provider calls were used. The existing large-chunk build warnings remain.
Checklist