Skip to content

feat(web): show the session's machine and branch under the composer - #181

Closed
sanchitrk wants to merge 1 commit into
claude/machines-selector-home-composer-fe11ecfrom
claude/session-machine-row
Closed

sanchitrk wants to merge 1 commit into
claude/machines-selector-home-composer-fe11ecfrom
claude/session-machine-row

Conversation

@sanchitrk

@sanchitrk sanchitrk commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #180. The session composer now names where the session runs, in a quiet row under the prompt box: the machine with its status dot, then the branch.

  • Machine: name and a green dot when reachable. When it isn't, a grey dot and the start page's wording ("Offline · 46m ago", "Not Running", "Pair Again"), reused from components/machine.tsx by exporting availabilityOf and useReason.
  • Branch: from the same git status the Git Changes frame reads, cut in the middle so the distinguishing end stays. A worktree session gets a fork icon instead of the branch icon. A folder without git shows no branch.
  • The row is always laid out, so the composer keeps its height while the machine and branch load.
  • No new requests for the machine or worktree check: they come from the server list and the sidebar's projects, which the app already holds. The branch adds the Git Changes status subscription per open session, shared with that frame.

Surfaces: desktop only. The CLI and RPC server are unchanged.

Known gap, left for later: the branch is as of the last turn or mount, since the git daemon doesn't watch the folder, so a git checkout in your own terminal shows once something runs.

Testing

  • vp check apps/web/src/widgets/session apps/web/src/components/machine.tsx and vp run --filter @codeworksh/web typecheck pass on a clean checkout of this commit.
  • In the dev Electron app against real machines: cw-b ● main on a workspace machine, vps-ln4e ● main on a paired VPS, MacBook Aurora ● alone on demo-app, which has no git.
  • Not seen in the app: a worktree session and an offline machine. Those were only checked with stand-in data in a prototype before this change.

Done by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The session composer gains a quiet row naming where the session runs: the
machine with its status dot (the start page's wording when it cannot be
reached), then the branch, with a fork icon for a worktree. A folder without
git shows no branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sanchitrk

Copy link
Copy Markdown
Contributor Author

Included in #180 (commit dac624c), together with a tooltip fix, so this has nothing left of its own.

@sanchitrk sanchitrk closed this Nov 26, 2026
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