Skip to content

Desktop Hive › Machines becomes a Computers view: how each machine is reached, agents vs shells, filter, Add a computer (#192608) - #477

Open
mayoalexander wants to merge 2 commits into
iris/1.18.23from
wt/192608-hive-computers-view
Open

mayoalexander wants to merge 2 commits into
iris/1.18.23from
wt/192608-hive-computers-view

Conversation

@mayoalexander

Copy link
Copy Markdown

Ticket #192608, from EVAL #192604 (MXterm). This extends Hive › Machines rather than adding a second view, and the Home "Machines" tile now opens it.

What it shows

  • Each machine: online or offline, and how it's reached: This computer, Tailscale (with the address and its age), This network, Other, or Unknown. The connection type comes only from what machines report, never a guess.
  • Agent sessions and shells per machine, plus totals. A machine that can't be counted says so: "never reported", "couldn't check", or "not counted, and why". Nothing is shown as 0 unless it really is 0.
    • Shells are counted only on this computer and only for Hive-started panes, and the label says so. No machine reports its panes to IRIS today.
  • Filter: All / Agents only / Shells only. It's remembered between visits, and machines that couldn't be counted are listed in a note rather than dropped.
  • Add a computer: the three hive-secure-mesh steps, each with a Copy button.
  • Phone-width layout (390px).
  • New sidecar route GET /iris/hive/here: which machine this is, whether it's on a tailnet, and the Hive-started shells here. Counts only, no workspace names.

Tests on iris-hive-001 (Node 22.12, bun 1.3.14)

base iris/1.18.23 branch
typecheck app / opencode / tui 0/0/0 0/0/0
machines model 7 14
machines rendered 3 7
app unit suite 1640 pass / 4 fail 1647 pass / same 4 fail
opencode iris + server 581 / 5 fail 587 / 3 fail (all also fail on base)

Preview with real data

A compiled build served on the tailnet behind a password.

  • Agent counts match iris hive sessions on every machine: 8, 4, 50 and 50, total 112.
  • Shells match iris hive panes at the same moment.
  • qb-host-vanguard is shown as "never reported", not 0.

Screenshots were taken at 1100px and 390px.

Not built

  • Shells on other computers: the daemon would need to report its panes in its heartbeat.
  • "This network" from a real LAN address: no machine reports one, so it falls back to a shared internet address.
  • Not clicked through in the real app: the session-link route crashes on this branch already (an existing bug). The evidence is the rendered tests plus screenshots.

🤖 Generated with Claude Code

Alex Mayo and others added 2 commits November 5, 2026 07:07
…ts vs shells, filter, Add a computer (#192608)

Every computer shows online/offline, how this computer reaches it (This computer / Tailscale /
This network / Other / Unknown, derived from the node's advertised tailnet address, the address
IRIS saw it connect from, and whether this computer is itself on a tailnet), its agent sessions
(the rows iris hive sessions lists, stale hidden) and the shell panes Hive started (counted on
this computer only, via the daemon bridge - never shown as zero elsewhere), with totals and an
All / Agents only / Shells only filter. Add a computer walks the hive-secure-mesh playbook steps.
Phone width collapses to one column. Home's Machines tile opens it.

Sidecar: GET /iris/hive/here (this computer's node id from the daemon, its tailnet, its
Hive-started panes); /iris/hive nodes now carry tailscaleIpAt and lastIp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… card without one (#192608)

Co-Authored-By: Claude Opus 5.5 <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.

1 participant