Skip to content

Fix missing sandbox network dependency diagnostics - #342858

Open
Harini (Harini410) wants to merge 12 commits into
microsoft:mainfrom
Harini410:fix/337331-sandbox-missing-network
Open

Harini (Harini410) wants to merge 12 commits into
microsoft:mainfrom
Harini410:fix/337331-sandbox-missing-network

Conversation

@Harini410

@Harini410 Harini (Harini410) commented Oct 20, 2026 •

Copy link
Copy Markdown

Summary

Fix missing sandbox network dependency diagnostics when allowOutbound is unspecified or false.

Add regression tests for missing and available network dependencies.

Testing

  • 32 tests passed in copilotSandboxDiagnostics.test.ts
  • npm run transpile-client passed
  • git diff --check passed

Copilot AI balanced review requested due to automatic review settings October 20, 2026 12:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrow implementation matches the stated intent and includes focused regression coverage.

No open issues 🎉

What changed in this PR

Fixes Agent Host sandbox diagnostics so missing network dependencies are reported when allowOutbound is unspecified or false.

Changes:

  • Removes the outbound-policy condition from network diagnostics.
  • Adds regression coverage for missing and available network dependencies.

No actionable findings remain.

File Description
src/​vs/​platform/​agentHost/​test/​node/​copilotSandboxDiagnostics.test.ts Adds network dependency regression tests and adjusts denied-path coverage.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotSandboxDiagnostics.ts Reports missing network dependencies regardless of outbound policy.

Review effort: Balanced

@Harini410
Harini (Harini410) requested a balanced review from Copilot October 21, 2026 14:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

2 open issues

Review effort: Lite

@Harini410
Harini (Harini410) requested a balanced review from Copilot October 21, 2026 15:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

No open issues 🎉

2 resolved since last review

Review effort: Lite

@Harini410

Harini (Harini410) commented Oct 21, 2026 •

Copy link
Copy Markdown
Author

Merge conflicts with microsoft:main are resolved. Both Copilot review comments have also been addressed, and the targeted tests and diff checks passed locally. Ready for review. Thank you!

@abtparnian-svg abtparnian-svg 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.

password_h_h1changes

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants