Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: scaryrawr/copilot-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: github/copilot-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 69 files changed
  • 6 contributors

Commits on Sep 1, 2026

  1. Make Rust CLI ownership crash-safe on Windows (github#2458)

    * Fix CLI process tree lifecycle
    
    Contain SDK-spawned CLI descendants in Unix process groups and Windows Job Objects, and terminate the complete owned tree during shutdown and failure cleanup.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * Disarm process tree before root reap
    
    Consume process-tree ownership during termination to prevent a second Unix signal after PID reuse, and make the Windows failed-start fixture execute through a PowerShell script.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * Add real-CLI E2E coverage for descendant and host-crash scenarios
    
    - Add stop_terminates_real_cli_wrapper_descendants: a Unix E2E test that
      launches the real bundled CLI through a shell wrapper (via
      ClientOptions::prefix_args) that backgrounds a descendant process, and
      verifies Client::stop() kills that inherited descendant.
    - Add abrupt_host_termination_still_kills_cli_via_job_object: a Windows
      E2E test representing the actual github/app#2303 scenario -- an
      SDK-embedding host process being killed/crashing abruptly, so none of
      its own cleanup code (Client::stop/force_stop/Drop) ever runs. It
      spawns a new copilot-host-crash-fixture helper binary that starts a
      real CLI client and then never calls any SDK teardown code, terminates
      that helper abruptly, and asserts the CLI still dies via the Job
      Object's kill-on-close semantics.
    
    Manually reproducing the same abrupt-kill scenario on Linux showed the
    CLI already exits on its own within ~200ms once the OS closes the dead
    host's end of the stdio pipe, with none of this crate's code involved --
    a pre-existing, code-free safety net specific to stdio-piped processes
    on Unix. That's further evidence Unix process-group containment isn't
    needed to address github#2303's failure mode, which is Windows-only.
    
    Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
    
    * fix(rust): narrow process ownership to Windows crash safety
    
    Use a kill-on-close Job Object only on Windows and test that abruptly terminating the SDK host tears down its owned CLI process. Preserve direct-child behavior on other platforms.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * test(rust): focus process ownership coverage on Windows
    
    Keep the real-CLI abrupt-host E2E and remove unsupported Unix descendant coverage and the redundant synthetic crash test.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
    3 people authored Sep 1, 2026
    Configuration menu
    Copy the full SHA
    76f6b6d View commit details
    Browse the repository at this point in the history
  2. Add Auto routing tier options across all SDKs (github#2437)

    * Add Auto routing tier options across SDKs
    
    Expose typed capi.autoTier options for create and resume across all six SDKs, including Python wire conversion. Cover canonical values and omission, and document runtime-owned persistence and resume semantics.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    Copilot-Session: 2417f184-d8c9-4f2a-a27b-e15e4baea808
    
    * Update CLI to 1.0.82-1 and regenerate Auto tier types
    
    Refresh CLI dependencies and generated RPC/session-event types across all SDKs. Reuse shared AutoTier definitions where applicable and cover typed lifecycle-event decoding, canonical values, and omission.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    Copilot-Session: 2417f184-d8c9-4f2a-a27b-e15e4baea808
    
    * Strengthen CAPI forwarding coverage and remove manual Copy
    
    Use distinct create/resume WebSocket options, including alongside an unchanged Auto tier, so payload reuse cannot pass the forwarding regression test. Leave AutoTier traits owned by the Rust generator and explicitly clone the reused test value.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    Copilot-Session: 2417f184-d8c9-4f2a-a27b-e15e4baea808
    
    * Fix Java auto tier README sample
    
    Add the required permission handler to the Java SessionConfig documentation sample so the doc-sample guard passes.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
    
    * Rerun PR checks
    
    Trigger a clean CI run after unrelated Windows E2E flakes.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
    Copilot-Session: 2417f184-d8c9-4f2a-a27b-e15e4baea808
    3 people authored Sep 1, 2026
    Configuration menu
    Copy the full SHA
    edf1103 View commit details
    Browse the repository at this point in the history
  3. Update @github/copilot to 1.0.83-1 (github#2467)

    * Update @github/copilot to 1.0.83-1
    
    - Updated nodejs and test harness dependencies
    - Re-ran code generators
    - Formatted generated code
    
    * Fix compatibility tests for Copilot schema update
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Stephen Toub <stoub@microsoft.com>
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    3 people authored Sep 1, 2026
    Configuration menu
    Copy the full SHA
    2980c78 View commit details
    Browse the repository at this point in the history
Loading