Skip to content

Prevent task execution and debug session creation without workspace trust#16917

Open
colin-grant-work wants to merge 2 commits intomasterfrom
feature/no-debug-untrusted-16888
Open

Prevent task execution and debug session creation without workspace trust#16917
colin-grant-work wants to merge 2 commits intomasterfrom
feature/no-debug-untrusted-16888

Conversation

@colin-grant-work
Copy link
Contributor

@colin-grant-work colin-grant-work commented Jan 31, 2026

What it does

Fixes #16888
Fixes #16889

Disables debug sessions when a workspace is untrusted.

How to test

  1. In an untrusted workspace.
  2. Try to run a debug session.
  3. You should get a prompt re: trusting the workspace.
  4. If you trust the workspace, the session should start; if not, not.
  5. You should get a new prompt each time you try to debug. Previously, requesting workspace trust would only produce a prompt once.

Follow-ups

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Jan 31, 2026
@colin-grant-work colin-grant-work changed the title Don't debug without trust Prevent task execution and debug session creation without workspace trust Jan 31, 2026
@ndoschek ndoschek self-requested a review February 3, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Waiting on reviewers

Development

Successfully merging this pull request may close these issues.

Hook workspace trust into the task system Hook workspace trust into debug system

1 participant