Upstream sync: clientName, deny-by-default permissions, PermissionHandler.APPROVE_ALL#144
Merged
brunoborges merged 3 commits intomainfrom Feb 19, 2026
Merged
Conversation
…ssionHandler.APPROVE_ALL Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
| * permissions/should_deny_tool_operations_by_default_when_no_handler_is_provided_after_resume | ||
| */ | ||
| @Test | ||
| void testShouldDenyToolOperationsByDefaultWhenNoHandlerIsProvidedAfterResume(TestInfo testInfo) throws Exception { |
| * permissions/should_deny_tool_operations_by_default_when_no_handler_is_provided | ||
| */ | ||
| @Test | ||
| void testShouldDenyToolOperationsByDefaultWhenNoHandlerIsProvided(TestInfo testInfo) throws Exception { |
… tool tests Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update with upstream sync for 13 new commits
Upstream sync: clientName, deny-by-default permissions, PermissionHandler.APPROVE_ALL
Feb 19, 2026
edburns
approved these changes
Feb 19, 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 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.
Ports 13 upstream commits from
github/copilot-sdk(5016587→c263dfc), covering two behavioral changes and one new API.Breaking: Deny permissions by default
requestPermission: trueis now unconditionally sent in everysession.create/session.resumecall (including null-config). The server will always callback for permissions; the SDK returns a deny result when no handler is registered.Migration: Any test or code that invokes shell/file tools without an explicit permission handler must now pass
PermissionHandler.APPROVE_ALL:envValueMode: "direct"is also now sent unconditionally (previously skipped for null config).New:
PermissionHandler.APPROVE_ALLConvenience constant on the
PermissionHandlerinterface that approves every request. Use in dev/test or non-security-sensitive contexts.New:
clientNameon session configsIdentifies the calling application in the User-Agent header. Available on both
SessionConfigandResumeSessionConfig.clientNameis forwarded inCreateSessionRequest/ResumeSessionRequestand preserved throughclone().New tests
testShouldDenyToolOperationsByDefaultWhenNoHandlerIsProvided— verifiestool.execution_completecarries aPermission deniederror when no handler is set.testShouldDenyToolOperationsByDefaultWhenNoHandlerIsProvidedAfterResume— same, on a resumed session.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkstyle.org/opt/hostedtoolcache/CodeQL/2.24.0/x64/codeql/tools/linux64/java/bin/java /opt/hostedtoolcache/CodeQL/2.24.0/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.24.0/x64/codeql/xml/tools/xml-extractor.jar --fileList=/home/REDACTED/work/copilot-sdk-java/.codeql-scratch/dbs/java/working/files-to-index12954213091878310284.list --sourceArchiveDir=/home/REDACTED/work/copilot-sdk-java/.codeql-scratch/dbs/java/src --outputDir=/home/REDACTED/work/copilot-sdk-java/.codeql-scratch/dbs/java/trap/java which /home/REDACTED/.cargo/bin/which git bash ache/Java_Temurif4d1f2e6bb96ed95b7bab0e84b919e86950f9621:src/main/java/com/github/copilot/sdk/json/ResumeSessionConfig.java which git ess/node_modules/@github/copilot-linux-x64/copilot which /home/REDACTED/.local/bin/which rgo/bin/which ess/node_modulesshow .0.18-8/x64/bin/f4d1f2e6bb96ed95b7bab0e84b919e86950f9621:src/test/java/com/github/copilot/sdk/ToolsTest.java which(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.