Repository navigation
Improve mock policy server troubleshooting - #333930
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Stale browser drafts can overwrite newer server state, and configurable-upstream guidance remains hardcoded to api.github.com.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 1
New issues introduced by this change (4)
| Severity | Finding |
|---|---|
scripts/mock-policy-server/public/app.ts — A persisted browser value is always preferred over the server value here and, when they differ, is… |
|
scripts/mock-policy-server/README.md — This absolute probe example conflicts with the newly documented configurable upstream: the GUI… |
|
scripts/mock-policy-server/public/app.ts — This tooltip becomes incorrect when the newly supported --upstream/MOCK_POLICY_UPSTREAM option… |
|
scripts/mock-policy-server/public/index.html — The probe target is not always api.github.com now that the server supports a configurable upstream;… |
What changed in this PR
Improves the mock policy server’s persistence, troubleshooting UI, control API, and documentation.
Changes:
- Adds atomic endpoint-state persistence, configurable ports, and file-deployment APIs.
- Redesigns setup, troubleshooting, validation, and deployment workflows.
- Enhances JSON editing and browser draft recovery.
| File | Description |
|---|---|
server.ts |
Adds persistence and API capabilities. |
README.md |
Documents revised workflows. |
public/style.css |
Styles redesigned UI surfaces. |
public/index.html |
Restructures setup and troubleshooting UI. |
public/app.ts |
Implements persistence and editor behavior. |
endpoints.ts |
Updates proxy workflow documentation. |
local-testing.md |
Updates contributor testing guidance. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot <[email protected]>
joshspicer
enabled auto-merge (squash)
September 2, 2026 04:07
Vijay Upadya (vijayupadya)
approved these changes
Sep 2, 2026
Anthony Kim (anthonykim1)
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Validation
git diff --check