Repository navigation
fix(tool): report a separator-only fetch selection as not found - #791
Merged
Ishaan Gangwani (ishaan1124) merged 2 commits intoSep 29, 2026
Conversation
ANIRUDDHA ADAK (aniruddhaadak80)
requested review from
Aayam Bansal (aayambansal) and
Ishaan Gangwani (ishaan1124)
as code owners
September 28, 2026 15:14
|
ANIRUDDHA ADAK (@aniruddhaadak80) is attempting to deploy a commit to the InkVell Team on Vercel. A member of the Team first needs to authorize it. |
ANIRUDDHA ADAK (aniruddhaadak80)
force-pushed
the
fix/webfetch-empty-selector
branch
from
September 29, 2026 04:49
2015647 to
3ebe0d3
Compare
The selector tokenizer matches neither keys nor indexes for a selector like . or .., so pick() had no step to walk and returned the whole document. shapeJson then saw no undefined and reported the selection as successful, suppressing the note that tells the model to retry with a real path.
ANIRUDDHA ADAK (aniruddhaadak80)
force-pushed
the
fix/webfetch-empty-selector
branch
from
September 29, 2026 09:49
3ebe0d3 to
a877339
Compare
# Conflicts: # CHANGELOG.md
Ishaan Gangwani (ishaan1124)
merged commit Sep 29, 2026
05a4cec
into
synthetic-sciences:main
8 of 9 checks 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 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.
What
pick()returns the entire parsed document when the selector names no step, andshapeJson()then reports the selection as successful.Why it matters
The model asks to keep one narrow path, gets told
selected 1 path from N characters, and receives the full 40,000-character body plus(Selection truncated at 40,000 characters; select narrower paths.).The
not found:clause in the note is the one signal that would have told it to retry — and because nothing isundefined, that clause is exactly what gets suppressed. So a malformed selector costs a wasted turn and 40 KB of context, while the tool reports success.Verification
Fails before, passes after:
The new test asserts all three degenerate forms (
.,..,[) and checks the shaped note reportsnot found: ., so the fix is pinned at both layers — the helper and the note the model actually reads.The change
No behaviour change for any selector that names at least one step.
bun run typecheckclean; touched files are Prettier-clean (checked on LF-normalized copies — this checkout hascore.autocrlf=true, which makes Prettier flag every file in the repo).Fixes #790