Skip to content

fix(assign): send matching_capabilities as CSV; add --template flag to deploy#16

Open
Bradymck wants to merge 1 commit into
mainfrom
fix/assign-and-template-deploy
Open

fix(assign): send matching_capabilities as CSV; add --template flag to deploy#16
Bradymck wants to merge 1 commit into
mainfrom
fix/assign-and-template-deploy

Conversation

@Bradymck
Copy link
Copy Markdown
Collaborator

Summary

Fixes two bugs reported in #14 by @realdecimalist.

  • openhome assign wipes all but last capabilityassignCapabilities() was sending one matching_capabilities form field per ID; the server keeps only the last. Changed to a single CSV field: capabilityIds.join(",").
  • --template <id> flag on openhome deploy — workaround for the cloud router ignoring CLI-deployed abilities (template: null). Users can now pass a known template ID to match portal-created behaviour until the server-side router fix lands. See openhome-cli deploy creates abilities that the cloud router silently ignores (template:null) #14 for background.

Test plan

  • openhome assign --agent <id> --capabilities A,B,C — verify all three IDs land in the server's capability list (not just C)
  • openhome deploy ./ability.zip --template 92 --name test ... — verify deployed ability has template: 92 and fires on voice trigger
  • openhome deploy without --template — verify existing behaviour unchanged (template field omitted from form)
  • npm run build — clean ✅

Closes #14 (assign bug). The template: null router issue requires a server-side fix; the flag is a client-side escape hatch.

🤖 Generated with Claude Code

Server drops all but the last value when multiple form fields with the
same name are sent. Fixes openhome assign wiping all but one capability.

Also adds --template <id> flag to openhome deploy as a workaround for
the cloud router ignoring CLI-deployed abilities (template: null issue).
See #14 for context and the proper server-side fix.

Fixes #14 (assign bug). References #14 (template workaround).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

openhome-cli deploy creates abilities that the cloud router silently ignores (template:null)

1 participant