Skip to content

add InteractionModelRevision to im_status_response and im_write_request#11

Merged
tom-code merged 1 commit into
tom-code:mainfrom
jr42:im-revision-status-write
Jun 21, 2026
Merged

add InteractionModelRevision to im_status_response and im_write_request#11
tom-code merged 1 commit into
tom-code:mainfrom
jr42:im-revision-status-write

Conversation

@jr42

@jr42 jr42 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Every Interaction Model action message must carry the mandatory InteractionModelRevision field (tag 0xFF). It is already written by im_invoke_request, im_read_request, im_subscribe_request_attr/event, im_timed_request and im_unsubscribe_all, but was missing on im_status_response and im_write_request.

Strict IM publishers (e.g. matter.js / Matterbridge) reject messages without it with INVALID_ACTION (0x80). For a StatusResponse sent in reply to a subscription ReportData this tears the subscription down, so no ongoing reports flow; lenient devices accept it, which is why it went unnoticed.

Adds a unit test pinning that both builders emit tag 0xFF.

Every Interaction Model action message must carry the InteractionModelRevision
field (tag 0xFF). It is already written by im_invoke_request, im_read_request,
im_subscribe_request_attr/event, im_timed_request and im_unsubscribe_all, but
was missing on im_status_response and im_write_request.

Strict IM publishers (e.g. matter.js / Matterbridge) reject messages without it
with INVALID_ACTION (0x80). For a StatusResponse sent in reply to a
subscription ReportData this tears the subscription down, so no ongoing reports
flow; lenient devices accept it, which is why it went unnoticed.
@jr42 jr42 marked this pull request as draft June 21, 2026 10:31
@jr42 jr42 force-pushed the im-revision-status-write branch from f6d58c9 to db9d311 Compare June 21, 2026 10:31
@jr42 jr42 marked this pull request as ready for review June 21, 2026 11:23
@jr42 jr42 force-pushed the im-revision-status-write branch from db9d311 to f6d58c9 Compare June 21, 2026 11:31
@jr42 jr42 marked this pull request as draft June 21, 2026 11:56
@jr42 jr42 marked this pull request as ready for review June 21, 2026 11:57
@tom-code

Copy link
Copy Markdown
Owner

it looks ok. thank you for sharing fix

@tom-code tom-code merged commit 68af261 into tom-code:main Jun 21, 2026
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