Add Permission Handling documentation to all language READMEs#879
Open
jamesmontemagno wants to merge 3 commits intogithub:mainfrom
Open
Add Permission Handling documentation to all language READMEs#879jamesmontemagno wants to merge 3 commits intogithub:mainfrom
jamesmontemagno wants to merge 3 commits intogithub:mainfrom
Conversation
Co-authored-by: jamesmontemagno <1676321+jamesmontemagno@users.noreply.github.com>
…-permissions docs: Add Permission Handling section to all language READMEs
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the SDK documentation across Node.js/TypeScript, Python, Go, and .NET to reflect that an explicit permission handler is now required when creating or resuming a Copilot session, and adds new “Permission Handling” sections with examples and result-kind reference tables.
Changes:
- Update quick starts and session creation/resume examples to include the required permission handler.
- Add per-language “Permission Handling” documentation with approve-all and custom handler examples.
- Document permission decision result kinds and per-tool “skip permission” configuration.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| python/README.md | Adds required on_permission_request guidance and Python permission handler examples/tables. |
| nodejs/README.md | Adds required onPermissionRequest guidance and TS permission handler examples/tables. |
| go/README.md | Adds required OnPermissionRequest guidance and Go permission handler examples/tables. |
| dotnet/README.md | Adds required OnPermissionRequest guidance and .NET permission handler examples/tables. |
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
This pull request updates the documentation for all SDKs (Node.js, Python, Go, .NET) to clarify that a permission handler is now required when creating or resuming a Copilot session. It adds detailed sections and examples for "Permission Handling", including how to use built-in helpers or provide custom logic to approve or deny tool executions. The changes also update all code samples, quick starts, and configuration references to include the required permission handler.