Skip to content

fix(portal): VS Code BYOAI prompts fetch the corpus automatically - #181

Merged
KB-x merged 1 commit into
mainfrom
vscode-fetch
Jul 30, 2026
Merged

fix(portal): VS Code BYOAI prompts fetch the corpus automatically#181
KB-x merged 1 commit into
mainfrom
vscode-fetch

Conversation

@KB-x

@KB-x KB-x commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

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.md now 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."
  • Applies to the synthesized VS Code artifact only. The 17 SYSTEM_PROMPT.md sources and the GPT/Claude -byoai-prompt.txt are untouched, so other clients keep their fallbacks.
  • portal/public/byoai/*/*.prompt.md — regenerated (all 17).
  • portal/src/data/snips.json — regeneration timestamp.

Testing

  • Regenerated: 638 snips / 17 JVDs / 0 warnings.
  • bun run build — clean.
  • Verified the runtime note is present in all 17 .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.

@KB-x KB-x self-assigned this Jul 30, 2026
@KB-x
KB-x marked this pull request as ready for review July 30, 2026 16:03
@KB-x
KB-x merged commit 1c148e6 into main Jul 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant