Skip to content

feat: store named device slots independently - #764

Merged
janicduplessis merged 1 commit into
mainfrom
feat/device-slot-registry
Sep 13, 2026
Merged

janicduplessis merged 1 commit into
mainfrom
feat/device-slot-registry

Conversation

@janicduplessis

Copy link
Copy Markdown
Collaborator

Description

A workspace currently has one owned device record per platform. Multi-device support needs independently addressable assignments before launch commands can accept the approved --slot selector.

Solution

Add named-slot registry storage and slot-aware assignment, removal, and Android console-port reservation. Existing platforms records remain the default slot, so existing device claims need no rewrite. Slot names are validated before writes, and removing the last device in a named slot removes the empty slot.

This is the storage layer of the multi-device stack. Launch commands do not expose named slots yet; lifecycle enumeration and runtime integration follow in dependent PRs.

Fixes #761.

Test plan

Registry tests exercise 20 same-model assignments, independent slot removal and port release, preservation of default devices, and rejection of unsafe names without changing the registry. These state transitions are the validation for this internal layer; no native tool invocation changes.

@janicduplessis
janicduplessis force-pushed the feat/device-slot-registry branch from 6088d0d to 6d0f68c Compare September 12, 2026 16:55
@janicduplessis
janicduplessis marked this pull request as ready for review September 13, 2026 01:08
@janicduplessis
janicduplessis merged commit d5325d9 into main Sep 13, 2026
5 checks passed
@janicduplessis
janicduplessis deleted the feat/device-slot-registry branch September 13, 2026 01:09
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.

Support named device slots in the ownership registry

1 participant