Repository navigation
fix: adapt to copilot-sdk/go v0.2.2 breaking change - #1453
Merged
Merged
Conversation
copilot-sdk v0.2.2 changed SessionEvent.Data from a concrete struct to a SessionEventData interface. Access the assistant response content via type assertion (*copilot.AssistantMessageData) instead of direct field access.
Contributor
BenchmarkManyRunbooks-4
Metadata
BenchmarkOpenAPI3-4
Metadata
BenchmarkSingleRunbook-4
Metadata
Reported by octocov |
There was a problem hiding this comment.
Pull request overview
This PR updates the Copilot agent integration to build against github.com/github/copilot-sdk/go v0.2.2 after a breaking API change where SessionEvent.Data became an interface, requiring type assertions to access assistant message content.
Changes:
- Bump
github.com/github/copilot-sdk/gofrom v0.2.0 to v0.2.2. - Update Copilot agent response extraction to type-assert
event.Datato*copilot.AssistantMessageData. - Update module checksums accordingly.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
agent_copilot.go |
Adapts response parsing to the new SessionEvent.Data interface by type asserting assistant message data. |
go.mod |
Updates the direct dependency version to copilot-sdk/go v0.2.2. |
go.sum |
Adds checksums for copilot-sdk/go v0.2.2. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Code Metrics Report
Details | | main (1fd050c) | #1453 (f975758) | +/- |
|---------------------|----------------|-----------------|-------|
- | Coverage | 59.8% | 59.8% | -0.1% |
| Files | 85 | 85 | 0 |
| Lines | 9831 | 9832 | +1 |
- | Covered | 5886 | 5885 | -1 |
- | Code to Test Ratio | 1:0.8 | 1:0.8 | -0.1 |
| Code | 18451 | 18453 | +2 |
| Test | 15351 | 15351 | 0 |
- | Test Execution Time | 7m33s | 8m22s | +49s |Code coverage of files in pull request scope (55.3% → 54.5%)
Reported by octocov |
Merged
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.
Summary
copilot-sdk/gov0.2.2 breaking change whereSessionEvent.Datachanged from a concreteDatastruct to aSessionEventDatainterface*copilot.AssistantMessageData) to access the assistant response contentcopilot-sdk/gofrom v0.2.0 to v0.2.2Fixes CI failure: https://github.com/k1LoW/runn/actions/runs/24268124563/job/70867423992