Skip to content

fix: stop untrusted workspace settings from redirecting inference - #162

Merged
anjerodev merged 3 commits into
mainfrom
fix/untrusted-workspace-settings
Oct 20, 2026
Merged

anjerodev merged 3 commits into
mainfrom
fix/untrusted-workspace-settings

Conversation

@anjerodev

Copy link
Copy Markdown
Owner

Summary

  • Ignore remote inference endpoints and request headers from workspace settings, so a repository cannot send staged diffs or user API keys to another host.
  • Ignore custom prompt text from untrusted workspaces, and strip delimiter tags inside diffs so a staged file cannot close the untrusted-content region.
  • Bump the extension to 3.3.1 for release.

Test plan

  • pnpm test (78 passing)
  • Confirm the release workflow publishes 3.3.1 to the Marketplace and creates the GitHub release

A trusted repo could point generation at a remote host and send user API keys with it. Use user settings for remote endpoints and headers, and allow only loopback URLs from the workspace.
Ignore workspace prompt text until the folder is trusted, and strip delimiter tags inside diffs so a staged file cannot close the untrusted-content region.
@anjerodev
anjerodev merged commit c50b023 into main Oct 20, 2026
1 check passed
@anjerodev
anjerodev deleted the fix/untrusted-workspace-settings branch October 20, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant