Skip to content

fix(demo): stop delaying the trust prompt; it cannot be avoided - #29

Merged
RodolpheKouyoumdjian merged 1 commit into
mainfrom
fix/trust-prompt-is-unavoidable
Sep 11, 2026
Merged

RodolpheKouyoumdjian merged 1 commit into
mainfrom
fix/trust-prompt-is-unavoidable

Conversation

@RodolpheKouyoumdjian

Copy link
Copy Markdown
Contributor

Reverts the mitigation from #28, which I verified does not work.

Evidence

Four fresh Codespaces (2026-09-11) all opened untrusted and all raised "Do you trust the authors of the files in this folder?":

attempt config result
1–2 plain drift analyze prompted (1 of the 2 was trusted only because the modal got dismissed during automation)
3 security.workspace.trust.* settings (#27) prompted — those keys are user-scope by design, ignored from devcontainer settings
4–5 sleep 10 && (#28) prompted — the wait only moved the modal later

Until it is answered the extension never activates (untrustedWorkspaces.supported: false): no panel, no analysis, no terminal.

This PR

Back to postAttachCommand: drift analyze < /dev/null, so the question arrives immediately instead of after a pause in which the demo looks broken. DEMO.md (added in #28) keeps telling the visitor what to click.

The comment now records what was tried and why it failed, so the next person does not attempt either fix again.

Follow-up (not here)

The extension could handle this far better: declaring untrustedWorkspaces: limited would let the panel say "trust this folder so Drift can analyse it" and re-run on onDidGrantWorkspaceTrust, instead of showing nothing — the same "silence instead of explanation" failure fixed in trydrift/drift#272.

🤖 Generated with Claude Code

Four fresh Codespaces on 2026-09-11 all opened untrusted and all raised "Do you
trust the authors of the files in this folder?" as soon as the startup terminal
asked to execute code. The ten-second wait added in #28 did not prevent it — it
only moved the same modal later, after a pause in which the demo looked broken.

So the terminal starts immediately again. The question arrives at once, DEMO.md
says what to click, and nothing here pretends the prompt is avoidable: an
earlier attempt via `security.workspace.trust.*` was ignored because those keys
are user-scope by design.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 11, 2026 23:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@RodolpheKouyoumdjian
RodolpheKouyoumdjian merged commit eb564ff into main Sep 11, 2026
1 check passed
@RodolpheKouyoumdjian
RodolpheKouyoumdjian deleted the fix/trust-prompt-is-unavoidable branch September 11, 2026 23:24
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