Skip to content

fix(copilot): preserve refusal with SDK v1.0.35 - #1135

Draft
intel352 wants to merge 1 commit into
mainfrom
fix/copilot-sdk-permission-refusal-20261130
Draft

intel352 wants to merge 1 commit into
mainfrom
fix/copilot-sdk-permission-refusal-20261130

Conversation

@intel352

@intel352 intel352 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

The SDK update in #1132 removes ClientOptions.CLIPath and changes absent-handler
sessions from an immediate pre-connect refusal to pending permission requests.
This separate draft combines the dependency update with the StdioConnection
adaptation, canonical example metadata and restoration of the legacy refusal.
The Dependabot branch and PR remain untouched.

The real wrapper rejects nil configuration or missing OnPermissionRequest
before SDK connection. No permission handler is installed and no action is
approved. Optional construction/registration remain lazy. Real generation
remains unavailable without a separately designed permission policy.

Locally qualified tree: c17aff413971484d7c2f58642c596a563dccddfe, based on main
8353510. Official Go1.27.4 Darwin/arm64,
GOTOOLCHAIN=local, GOWORK=off, GOPROXY=off and CGO0:

  • go test -mod=readonly -json ./ai/copilot -count=1 -timeout=60s:42 top-level
    tests and23 subcases passed, no failures/skips.
  • All9 new refusal subcases fail with only the guard removed; exact restoration
    passes. Baseline nil receiver enters SDK library code before any Start call;
    guarded cases return before SDK entry. No Copilot runtime was executed.
  • Scoped go vet passed. Example readonly package loading:1444 entries, zero
    errors/incomplete. Both checks ran before two test wording fixes; production,
    module and documentation blobs remained unchanged, and final tests reran.
  • Independent exact-source review:SHIP-IT, no Critical/Important findings; two
    Minor test wording findings resolved. gofmt and diff checks passed.

Exact-head native CI, Benchmark, CodeQL and Code Quality passed. GCP cross-plugin passed on attempt 2 without a source change after the first attempt failed fetching dependencies.

Read-only Go 1.27.4 inventories on the exact base and candidate identified five changed module selections. In the official Go vulnerability database index checked November 30 (database modified November 24), no indexed advisory range matched those candidate versions. This is a limited version-range comparison, not a reachability result or full security clearance. Hosted OSV remained neutral and logged 15 incomplete Go analysis contexts per side. Nonnil-policy sessions, live vendor behavior, and complete scanner/security qualification remain unverified. No release or deployment is requested.

Doc-reconciliation: clean.

This draft requests ordinary exact-head CI qualification. It does not request
runtime activation, release or deployment.

Adapt executable selection to StdioConnection, synchronize example module metadata, and retain the legacy missing-handler refusal before SDK connection.

No permission handler or runtime activation is introduced.
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.

1 participant