Joining a machine: personal vs team is invisible and can't be chosen at approval #100

Closed
opened 2026-10-03 06:38:02 +00:00 by jhgaylor · 2 comments
Owner

Joining a machine to yourself and joining it to a team look identical, and the person approving can't tell or choose.

  • CLI: the team is fixed by illogicald join URL --team ID. Nothing tells you the flag exists except the Teams panel. With --team it still prints "To add this machine ({name}) to your account" (crates/daemon/src/control.rs).
  • Approval page: the server returns team from GET /api/joins/{code} (crates/control/src/api.rs join_show), but showJoin (web/src/control.ts) types it away. JoinPrompt always says "{name} asks to join your account with code …".
  • Non-owner approving a team join gets the raw "only the team's owners add its machines" after pressing Approve.
  • Cancel just closes the modal. The daemon keeps polling for up to 15 minutes.
  • No way to move a personal machine into a team: set_daemon_team is only called from join_approve, and nothing says "leave, then join --team".
  • Nothing says what joining grants: your devices (or the team, by role) can reach this machine and drive its terminals; control relays but can't read.

Close it by

  1. Approval page: read team. Say "{name} asks to join the team {team} (its members reach it by their role)" or "…your account (only your devices reach it)". Disable Approve with the reason for non-owners. Add one sentence on what approving grants.
  2. Choose at approval time: a "Join to: Just me / {team}…" select (only teams you own), with join_approve taking the team. The CLI flag becomes a default rather than the only way.
  3. Cancel rejects: POST /api/joins/{code}/reject, so the daemon stops with "turned down on {device}".
  4. CLI: "…to your account" or "…to the team {name}". Mention --team. Print "Waiting for approval (the code lasts 15 minutes)…".
  5. Move between personal and team: at least document illogicald leave && illogicald join URL --team ID. Better, a Move to team… on a machine in Devices and machines (owner of both).

Done when e2e covers: a team join shows the team; a non-owner can't approve; Cancel stops the daemon; a machine approved as a team machine shows under "Team X" in the host menu.

Joining a machine to **yourself** and joining it to **a team** look identical, and the person approving can't tell or choose. - **CLI:** the team is fixed by `illogicald join URL --team ID`. Nothing tells you the flag exists except the Teams panel. With `--team` it still prints "To add this machine ({name}) to **your account**" (`crates/daemon/src/control.rs`). - **Approval page:** the server returns `team` from `GET /api/joins/{code}` (`crates/control/src/api.rs` `join_show`), but `showJoin` (`web/src/control.ts`) types it away. `JoinPrompt` always says "**{name}** asks to join your account with code …". - **Non-owner approving a team join** gets the raw "only the team's owners add its machines" after pressing Approve. - **Cancel** just closes the modal. The daemon keeps polling for up to 15 minutes. - **No way to move** a personal machine into a team: `set_daemon_team` is only called from `join_approve`, and nothing says "leave, then join --team". - **Nothing says what joining grants:** your devices (or the team, by role) can reach this machine and drive its terminals; control relays but can't read. **Close it by** 1. **Approval page:** read `team`. Say "**{name}** asks to join the team **{team}** (its members reach it by their role)" or "…your account (only your devices reach it)". Disable Approve with the reason for non-owners. Add one sentence on what approving grants. 2. **Choose at approval time:** a "Join to: Just me / {team}…" select (only teams you own), with `join_approve` taking the team. The CLI flag becomes a default rather than the only way. 3. **Cancel rejects:** `POST /api/joins/{code}/reject`, so the daemon stops with "turned down on {device}". 4. **CLI:** "…to your account" or "…to the team {name}". Mention `--team`. Print "Waiting for approval (the code lasts 15 minutes)…". 5. **Move between personal and team:** at least document `illogicald leave && illogicald join URL --team ID`. Better, a *Move to team…* on a machine in Devices and machines (owner of both). **Done when** e2e covers: a team join shows the team; a non-owner can't approve; Cancel stops the daemon; a machine approved as a team machine shows under "Team X" in the host menu.
Author
Owner

Shipped in v0.9.0 (main feb6241): Join to: Just me / a team you own at approval, preselected by --team, signed by the approving device so control can't pick the team; Cancel rejects; non-owners see why. Not built: the optional Move to team… button in Devices and machines. Moving is documented as illogicald leave + join (docs/teams.md, docs/control.md).

Shipped in v0.9.0 (main feb6241): *Join to: Just me / a team you own* at approval, preselected by `--team`, signed by the approving device so control can't pick the team; Cancel rejects; non-owners see why. Not built: the optional *Move to team…* button in Devices and machines. Moving is documented as `illogicald leave` + `join` (docs/teams.md, docs/control.md).
jhgaylor referenced this issue from a commit 2026-10-03 08:59:10 +00:00
Author
Owner

Move to… shipped in v0.9.1 (005ac18): on each machine in Devices and machines, into a team you own, between teams, or back to just you. The device signs illogical machine move v1 (daemon, team pin, time); control checks you own both sides; the daemon takes it only if its own account's device signed it and it's newer than the last move (no replays). Control deployed.

*Move to…* shipped in v0.9.1 (005ac18): on each machine in Devices and machines, into a team you own, between teams, or back to just you. The device signs `illogical machine move v1` (daemon, team pin, time); control checks you own both sides; the daemon takes it only if its own account's device signed it and it's newer than the last move (no replays). Control deployed.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#100
No description provided.