Repository navigation
feat: skip external content warning for gists owned by the signed-in user - #2071
Open
claude[bot] wants to merge 2 commits into
Open
claude[bot] wants to merge 2 commits into
claude[bot] wants to merge 2 commits into
Conversation
…user When signed in to GitHub, a gist whose owner matches the signed-in login (case-insensitive) is treated like a local fiddle: running it skips the trust prompt, and opening it from an electron-fiddle:// link or gist URL skips the "Load this gist?" confirmation. Gists owned by anyone else, and every gist while signed out, still prompt as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PiGRtCdwmpbm9MiBiyfZyD
erickzhao
marked this pull request as ready for review
November 6, 2026 18:32
erickzhao
approved these changes
Nov 6, 2026
A gist counts as the signed-in user's own code only when loadGist marks its origin `byOwner`: the gist is not a fork and the loaded revision is in its own history. A fork, or a `?revision=` link to a commit GitHub serves from elsewhere under the gist's ID, prompts as before. Session restore of a clean gist window keeps the stored untrusted origin, so a published copy of someone else's fiddle that was never approved still asks before it runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PiGRtCdwmpbm9MiBiyfZyD
This branch has not been deployed
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.
Requested by Erick Zhao · Slack thread
When you're signed in with a GitHub token, Fiddle no longer warns you about external content in gists you own. A gist whose owner matches the signed-in login (case-insensitive) is treated like a local fiddle, as long as it isn't a fork and the loaded revision is in its own history: running it skips the "Run code from this fiddle?" trust prompt, and opening it from an
electron-fiddle://link or a gist URL skips the "Load this gist?" confirmation. Gists owned by anyone else, forks, revisions from outside the gist's history, anonymous gists, every gist while signed out, and a never-approved published copy of someone else's fiddle restored from the last session still prompt as before.The headless CLI's
--trustrequirement is unchanged, since it only knows aboutGITHUB_TOKEN.Generated by Claude Code