Skip to content

Fix request cancellation wire method - #116

Merged
Ololoshechkin merged 1 commit into
masterfrom
aefimov/fix/JUNIE-4146
Aug 11, 2026
Merged

Fix request cancellation wire method#116
Ololoshechkin merged 1 commit into
masterfrom
aefimov/fix/JUNIE-4146

Conversation

@wayfarer-rus

Copy link
Copy Markdown
Collaborator

Why

ACP defines request cancellation as $/cancel_request, but the SDK used the obsolete draft spelling $/cancelRequest. This prevented wire-compatible cancellation with implementations following the current specification.

What changed

  • Update AcpMethod.MetaMethods.CancelRequest to use $/cancel_request.
  • Add a common model regression test for the exact wire method name.

Tests

  • ./gradlew :acp-model:jvmTest
  • ./gradlew :acp-ktor-test:jvmTest
  • ./gradlew check was attempted locally; iOS linking requires full Xcode, which is not installed on this machine.

@Ololoshechkin
Ololoshechkin merged commit d384fe4 into master Aug 11, 2026
1 check passed
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.

2 participants