Repository navigation
Conversation
arxivApiUrl prefixed every term with all:, so a field query such as ti:"phrase" became all:ti:"phrase", which the arXiv API rejects with HTTP 400. Field-prefixed terms now pass through verbatim. `amico sota --help` and `amico sota <lens> --help` now print usage and exit 0. Refs #2131 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2131) Ripgrep.grep failed the whole search with "Ripgrep JSON record exceeded 65536 bytes" when any matching line (minified HTML, generated data) produced a JSON record over the 64 KB cap. The over-long record is now skipped and the remaining matches are returned. Overlay manifest refreshed. Refs #2131 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
jacktrnr
marked this pull request as ready for review
November 23, 2026 22:20
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.
Refs #2131. This fixes the two bug parts of the issue. The Slack draft-before-post and file-upload part is a feature, so it is not in this PR and #2131 stays open for it.
Root causes
1.
amico sota papersfield queries returned HTTP 400.arxivApiUrlputall:in front of every term.--query 'ti:"noise-induced heating"'therefore went out asall:ti:"noise-induced heating", which arXiv rejects. The URL encoding itself was fine. Now a term that already names an arXiv field (ti:,au:,abs:,co:,jr:,cat:,rn:,id:,all:) is sent as written. Bare terms still get theall:default.amico sota papers --helpreturned an error.sotaVerbchecked--querybefore it looked for a help flag. Nowamico sota --helpandamico sota <lens> --help(or-h) return{verb, usage}and exit 0, the same way other verbs handle help.2. grep failed on very long lines.
Ripgrep.grep(core,packages/core/src/ripgrep.ts) treated any ripgrep JSON record over its 64 KB cap as a fatalRipgrep.Error. As a result, one minified or generated line threw away every other match in the search. Now the over-long record is skipped, the 64 KB cap still limits what gets parsed, and the remaining matches come back. This is an overlay change:ripgrep.tsmoved into the overlay andmanifest.jsonwas refreshed.The issue also reported glob failing with "ripgrep execution failed". glob calls
rg --files, which emits no per-line records, so long lines cannot trigger it there. I could not reproduce it, and this PR does not change glob.Tests (written first, each seen failing)
packages/amico-run/test/sota_papers.test.ts: a field-prefixed query passes through as written (checks URL construction only, no network calls).packages/amico-run/test/sota_verb.test.ts:papers --help,papers -hand--helpexit 0 with usage.packages/app-bundle/overlay/packages/opencode/test/tool/grep-long-line.test.ts: a file containing a 200 KB matching line still returns the matches on the other lines and in other files. Before the fix it failed withRipgrep JSON record exceeded 65536 bytes.Verification
upgrade-server-binary.test.ts, a file this PR does not touch, and it passes 14/14 when run on its own (they look like load-related flakes).tsc --noEmitis clean.grep-long-line,grep,globand coreripgreptests all pass.engine_typecheck_gate.shis OK (only the Base-pin drift: manifest upstream_base_sha stale vs absorbed overlay #1229 allowlisted errors).overlay_typecheck_gate.shis OK.refresh_manifest.mjs, thendrift_gate.mjs: PASS.🤖 Generated with Claude Code