Skip to content

Conversation

@maxious
Copy link
Contributor

@maxious maxious commented Jan 22, 2026

Summary

Fixes #9941

  • Rename setSessionModelunstable_setSessionModel to match ACP SDK v0.12.0+ interface
  • Add unit test to catch future SDK interface changes at compile time

Root Cause

The ACP TypeScript SDK v0.12.0 renamed this method in commit 7072d3f. The SDK's router checks if (!agent.unstable_setSessionModel) and throws "Method not found" when missing.

References

The ACP SDK v0.12.0 renamed this method, causing 'Method not found'
errors when JetBrains/IntelliJ clients called session/set_model.

SDK commit that renamed the method:
agentclientprotocol/typescript-sdk@7072d3f

Same fix applied by Qwen Code:
QwenLM/qwen-code#1521

Added unit test to catch future SDK interface changes at compile time.
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node rekram1-node merged commit fc0210c into anomalyco:dev Jan 22, 2026
6 checks 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.

ACP: session/set_model returns 'Method not found' error in JetBrains/IntelliJ

2 participants