fix(portal): VS Code BYOAI prompts fetch the corpus automatically - #181
Merged
Conversation
KB-x
marked this pull request as ready for review
July 30, 2026 16:03
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's New
In VS Code, the BYOAI assistants now fetch the JVD corpus automatically and answer with citations, instead of asking the user to confirm a fetch or offering paste / "limited mode" fallbacks.
Why
Those fallbacks exist for AI clients that can't browse. In VS Code the assistant always has a live fetch tool, so the "can you fetch? — say go" prompt was pointless friction: if the prompt is running here, there is web access.
Details
portal/scripts/generate-snips.mjs— the synthesized VS Code.prompt.mdnow carries a short "VS Code runtime" note above the inlined guide: it states the fetch tool is available, tells the assistant to fetch the corpus immediately and silently, and scopes the inlined no-web fallbacks (paste / limited mode / confirm-first) as not applicable here. Positive framing, one scoping sentence — not a list of "don'ts."SYSTEM_PROMPT.mdsources and the GPT/Claude-byoai-prompt.txtare untouched, so other clients keep their fallbacks.portal/public/byoai/*/*.prompt.md— regenerated (all 17).portal/src/data/snips.json— regeneration timestamp.Testing
bun run build— clean..prompt.md, directly under the frontmatter.Notes
Behavioral verification (does the model now fetch without asking) is a live check in VS Code after merge + reinstall. If hedging persists, the fallback is to strip the no-web branches from the VS Code build directly.