feat: add default scope for powercontext web - #1453
Open
jiannnnyyyyy wants to merge 6 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Scope detection skips serving degraded servers, misidentifies Handoff-only deployments, under-validates responses, and documentation overstates selection behavior.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds Dashboard Scope diagnostics and documents automatic Default Scope creation.
Changes:
- Adds Scope discovery checks to
powercontext doctor. - Updates CLI expectations.
- Updates English and Chinese quickstarts.
File summaries
| File | Description |
|---|---|
src/powercontext/cli/system.py |
Adds Dashboard Scope diagnostics. |
tests/test_system_cli.py |
Updates doctor test expectations. |
docs/en/docs/tutorials/codex-quickstart.md |
Documents Default Scope behavior. |
docs/zh/docs/tutorials/codex-quickstart.md |
Documents Default Scope behavior in Chinese. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 5
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
1 task
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Which issue or RFC does this PR close?
Closes #1449.
Rationale for this change
On a fresh installation, users should be able to open the Dashboard without manually configuring a Scope. The default Scope should be created automatically and diagnostics should provide clear guidance when Dashboard Scope discovery fails.
What changes are included in this PR?
powercontext doctor.DefaultScope creation and selection.DefaultScope on startup.Are there any user-facing changes?
Yes.
DefaultScope in the Dashboard.powercontext doctornow reports Dashboard Scope availability.How was this change tested?
Also manually verified that a fresh local Server exposes the persistent
DefaultScope through/dashboard/scopes.AI usage statement
Implemented with OpenAI Codex powered by GPT-5. Changes were reviewed and validated with targeted automated tests and Ruff.