Skip to content

feat: skip external content warning for gists owned by the signed-in user - #2071

Open
claude[bot] wants to merge 2 commits into
mainfrom
feat/skip-external-gist-warning-own
Open

claude[bot] wants to merge 2 commits into
mainfrom
feat/skip-external-gist-warning-own

Conversation

@claude

@claude claude Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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 --trust requirement is unchanged, since it only knows about GITHUB_TOKEN.


Generated by Claude Code

…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
erickzhao marked this pull request as ready for review November 6, 2026 18:32
@erickzhao
erickzhao requested review from a team and codebytere as code owners November 6, 2026 18:32
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

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No new blocking issues. 1 optional suggestion (a nit or a note on pre-existing code) was found and not posted.

This branch has not been deployed

No deployments
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.

2 participants