Skip to content

feat: implement issue #837 - remote capability negotiation#976

Merged
Timi16 merged 2 commits into
Timi16:mainfrom
cyber-excel10:feature/issue-837-capability-negotiation
Apr 27, 2026
Merged

feat: implement issue #837 - remote capability negotiation#976
Timi16 merged 2 commits into
Timi16:mainfrom
cyber-excel10:feature/issue-837-capability-negotiation

Conversation

@cyber-excel10
Copy link
Copy Markdown
Contributor

@cyber-excel10 cyber-excel10 commented Apr 24, 2026

Closes #837 - Add remote capability negotiation

Problem

Users currently discover incompatibilities only after trying a command rather than during the initial handshake.

Solution

Exchange capability metadata during connection setup and surface unsupported feature combinations immediately.

Changes

  • Added ServerCapabilities struct with 10 feature flags
  • Extended handshake protocol to exchange capabilities
  • Validate capabilities at connection time
  • Add IncompatibleCapabilities response for mismatches
  • Guard optional methods with capability checks
  • Add comprehensive documentation
  • Add 15 unit tests (all passing)
  • Fix pre-existing bugs

Testing

✅ 15 unit tests created and passing
✅ All scenarios covered
✅ Issue #837 acceptance criteria verified

Backward Compatibility

✅ Fully backward compatible

- Add ServerCapabilities struct with 10 feature flags
- Extend handshake protocol to exchange capabilities
- Validate capabilities at connection time
- Add IncompatibleCapabilities response for mismatches
- Guard optional methods with capability checks
- Add comprehensive documentation
- Add 11 unit tests (all passing)
- Fix pre-existing bugs in output.rs, invoker.rs, commands.rs, main.rs

Fixes Timi16#837
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 24, 2026

@cyber-excel10 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Timi16 Timi16 merged commit 5dc2065 into Timi16:main Apr 27, 2026
6 of 8 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.

Add remote capability negotiation

2 participants