Skip to content

Terminal sandboxing errors out when trusted domains are urls instead of domains.#298372

Merged
dileepyavan merged 3 commits intomainfrom
DileepY/298332
Feb 28, 2026
Merged

Terminal sandboxing errors out when trusted domains are urls instead of domains.#298372
dileepyavan merged 3 commits intomainfrom
DileepY/298332

Conversation

@dileepyavan
Copy link
Member

@dileepyavan dileepyavan commented Feb 27, 2026

fixes(#298332)
Terminal sandboxing is broken when AllowTrustedDomains flag is set to true and trusted domains contains Urls instead of just domains.

Copilot AI review requested due to automatic review settings February 27, 2026 23:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes terminal sandbox network configuration generation when allowTrustedDomains is enabled and entries in the Trusted Domains list are full URLs (not bare domains), by normalizing trusted domain entries before writing the sandbox settings file.

Changes:

  • Refactors allowed domain construction to optionally merge trusted domains via a helper.
  • Adds URL parsing to extract hostname from trusted domain entries that are full URLs.

@dileepyavan dileepyavan merged commit 3612f88 into main Feb 28, 2026
20 checks passed
@dileepyavan dileepyavan deleted the DileepY/298332 branch February 28, 2026 00:41
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.

3 participants