Repository navigation
relay: a Mac answers a command it cannot run instead of dropping it (D-195) - #154
Merged
Merged
Conversation
…D-195) A host link now replies unsupported_capability (reason unknown_method) to a command whose method its build does not know, so a newer phone gets a reason at once instead of waiting out the hub's reply timeout. Other unreadable frames are still skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
blove
enabled auto-merge
November 9, 2026 22:26
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.
Found while reassessing D-180 (phone project edits): production's hub (
hub-v0.5.1) forwardsproject.create|update|delete, but the owner's installed prod and Beta Mac apps are Nov 4 builds that don't know those methods.RelayLinkskipped any frame it couldn't decode, a command included, so the phone waited out the hub's 15 s reply wait and showed "Not confirmed".Change (D-195).
RelayFrame.decodetells acommandwith a stringidapart from other unreadable frames (HubLinkError.unknownCommand(id:method:)).RelayLinkreplies at once withunsupported_capability: "Your Mac's Agent Workspace can't do “” yet. Update it on the Mac, then try again.",details: { reason: "unknown_method", method }. A client link ignores it; every other unreadable frame is still skipped and the link stays up.Hub/API.mddocuments it.This helps Mac builds from now on only. The installed prod and Beta Mac apps still need repackaging from main for D-180 (and D-184) to work end to end.
Tests.
RelayLinkTests.aMacAnswersACommandItCannotRunAtOnce,aPhoneIgnoresACommandItCannotRead;RelayWireTests.aCommandWithAnUnknownMethodIsNamedNotJustSkipped.swift test: 1471 tests in 183 suites pass;swift format lint --strictanddocs-index --checkclean.🤖 Generated with Claude Code