Skip to content

fix: update runtime to 1.0.15-2, re-enable postToolUse hook tests#978

Merged
SteveSandersonMS merged 1 commit intomainfrom
fix/update-runtime-unskip-hooks
Apr 1, 2026
Merged

fix: update runtime to 1.0.15-2, re-enable postToolUse hook tests#978
SteveSandersonMS merged 1 commit intomainfrom
fix/update-runtime-unskip-hooks

Conversation

@SteveSandersonMS
Copy link
Copy Markdown
Contributor

The postToolUse hook regression (#972) was fixed in the runtime. Updates @github/copilot to 1.0.15-2 and re-enables all skipped postToolUse hook tests across all 4 languages.

Closes #972

The postToolUse hook regression (issue #972) was fixed in runtime PR
copilot-agent-runtime#5629. Update @github/copilot to 1.0.15-2 and
re-enable all skipped postToolUse hook tests across all 4 languages.
Regenerate stale snapshots.
@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner April 1, 2026 15:10
Copilot AI review requested due to automatic review settings April 1, 2026 15:10
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

✅ Cross-SDK Consistency Review

This PR maintains excellent cross-SDK consistency. The changes are correctly applied across all four language implementations:

Verified Consistency

SDK Tests Re-enabled Skip Annotations Removed
Node.js ✅ 2 tests it.skipit
Python ✅ 2 tests @pytest.mark.skip removed
Go ✅ 2 tests t.Skip() removed
.NET ✅ 2 tests [Fact(Skip=...)][Fact]

All four SDKs had the same two postToolUse hook tests skipped due to the runtime regression (#972), and this PR consistently re-enables them after the runtime fix in version 1.0.15-2.

No additional changes needed — the PR properly maintains feature parity across all SDK implementations. 🎉

Generated by SDK Consistency Review Agent for issue #978 ·

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the embedded Copilot runtime dependency and re-enables E2E coverage for postToolUse session hooks across the SDKs, validating that the runtime regression reported in #972 is resolved.

Changes:

  • Bumped the Node SDK’s @github/copilot runtime dependency to ^1.0.15-2 (and updated the lockfile).
  • Re-enabled previously skipped postToolUse hook E2E tests in Node.js, Python, Go, and .NET.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
python/e2e/test_hooks.py Removes skip markers so postToolUse hook tests run again in Python E2E.
nodejs/test/e2e/hooks.test.ts Re-enables the two postToolUse E2E tests in the Node SDK.
nodejs/package.json Updates @github/copilot dependency to the runtime build that includes the fix.
nodejs/package-lock.json Locks the updated @github/copilot@1.0.15-2 (and platform packages).
go/internal/e2e/hooks_test.go Unskips the postToolUse Go E2E tests.
dotnet/test/HooksTests.cs Removes [Fact(Skip=...)] so postToolUse .NET tests run again.
Files not reviewed (1)
  • nodejs/package-lock.json: Language not supported

"license": "MIT",
"dependencies": {
"@github/copilot": "^1.0.15-1",
"@github/copilot": "^1.0.15-2",
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When bumping @github/copilot here, the repo’s dependency-update workflow also updates test/harness and refreshes nodejs/samples lockfile. Right now test/harness/package.json is still pinned to ^1.0.14-0 and nodejs/samples/package-lock.json still records an older @github/copilot range for the file:.. dependency; that can leave parts of the repo on different runtime/type versions and can make npm ci in those dirs fail due to lockfile drift. Please update test/harness (package.json + lock) and regenerate nodejs/samples/package-lock.json as part of this runtime bump.

Suggested change
"@github/copilot": "^1.0.15-2",
"@github/copilot": "^1.0.14-0",

Copilot uses AI. Check for mistakes.
Comment on lines +51 to 54
it("should invoke postToolUse hook after model runs a tool", async () => {
const postToolUseInputs: PostToolUseHookInput[] = [];

const session = await client.createSession({
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the re-enabled postToolUse test, the assertions later in the body only check toolResult !== undefined. Since PostToolUseHookInput.toolResult is required by the SDK types and other language tests assert non-null, consider tightening this test to fail if the runtime ever provides a null/empty toolResult (e.g., assert non-null and validate a key field like resultType/textResultForLlm). This will better catch regressions in the postToolUse payload.

Copilot uses AI. Check for mistakes.
@SteveSandersonMS SteveSandersonMS merged commit 8fb154e into main Apr 1, 2026
39 checks passed
@SteveSandersonMS SteveSandersonMS deleted the fix/update-runtime-unskip-hooks branch April 1, 2026 16:58
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.

postToolUse hooks not dispatched by runtime

2 participants