Skip to content

mock policy server: improve cross-platform setup - #332833

Merged
joshspicer merged 2 commits into
mainfrom
jospicer/mock-policy-server-setup-improvements
Aug 27, 2026
Merged

mock policy server: improve cross-platform setup#332833
joshspicer merged 2 commits into
mainfrom
jospicer/mock-policy-server-setup-improvements

Conversation

@joshspicer

Copy link
Copy Markdown
Member

Summary

  • make the system-proxy setup explicit for both macOS and Windows, including Proxyman's platform-specific proxy controls
  • require and simplify copying the VS Code http.proxy property
  • provide collapsible macOS and Windows commands for clearing the SDK managed-settings cache
  • make live policy requests open their matching endpoint editor while preserving keyboard focus across log refreshes

Testing

  • npm run hygiene
  • started npm run mock-policy-server and verified the served setup UI, exact copied values, live-request data, request navigation wiring, and focus-preservation behavior
  • parsed the browser TypeScript after stripTypeScriptTypes
  • git diff --check

npm run compile reaches the main source compile but currently fails on five unrelated pre-existing AgentService errors (_findProviderForSession / registerProvider).

Make proxy and SDK cache setup explicit for macOS and Windows, and let developers navigate live requests directly to their endpoint configuration. Preserve keyboard focus while the request log refreshes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 26, 2026 22:33

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.

Pull request overview

Improves the mock policy server’s cross-platform setup guidance and live-request workflow.

Changes:

  • Adds macOS and Windows proxy/cache instructions.
  • Makes the VS Code proxy setting explicit and copyable.
  • Makes policy requests navigable while preserving focus during refreshes.
Show a summary per file
File Description
.github/skills/policy-and-managed-settings/local-testing.md Updates local-testing guidance.
scripts/mock-policy-server/README.md Documents proxy, cache, and request navigation workflows.
scripts/mock-policy-server/public/app.ts Adds copy commands and interactive request-log behavior.
scripts/mock-policy-server/public/index.html Adds cache-command disclosures and accessible request-log labeling.
scripts/mock-policy-server/public/style.css Styles new cache controls and interactive log rows.

Review details

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment on lines +34 to +36
<details class="cache-command-picker">
<summary class="btn-header">Clear SDK Policy Cache</summary>
<div class="cache-command-popover">
@joshspicer
joshspicer enabled auto-merge (squash) August 27, 2026 05:32
@joshspicer
joshspicer merged commit 84ef348 into main Aug 27, 2026
37 checks passed
@joshspicer
joshspicer deleted the jospicer/mock-policy-server-setup-improvements branch August 27, 2026 05:50
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 27, 2026
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.

4 participants