Skip to content

feat(web): show machine label in session list#266

Draft
webwww123 wants to merge 1 commit intotiann:mainfrom
webwww123:feat/session-list-machine-label
Draft

feat(web): show machine label in session list#266
webwww123 wants to merge 1 commit intotiann:mainfrom
webwww123:feat/session-list-machine-label

Conversation

@webwww123
Copy link

Summary

Fixes #265.

When multiple machines are connected to the same hub, the session list is currently grouped only by directory, which makes sessions from different machines hard to distinguish.

This PR makes the web session list more multi-machine friendly by:

  • grouping sidebar project sections by machine + directory
  • showing a small machine badge on each group header
  • showing a small machine label on each session row
  • using displayName -> host -> short machineId as the label fallback chain

Scope

Web-only change.

No hub, CLI, protocol, or database changes.

Why

A common real-world case is:

  • local machine session in /root
  • remote VPS session in /root

Without machine identity in the session list, those sessions are difficult to tell apart quickly.

Validation

Validated in an isolated Docker-based dev environment only.

Commands run:

cd web
bunx vitest run src/components/SessionList.test.ts
bun run typecheck

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.

Show machine identity in session list when multiple machines are connected

1 participant