Working desk-pets: hover to reveal which session it is - #78
Open
rounakdatta wants to merge 1 commit into
Open
Conversation
The grey working bots were presence-only, with no way to tell which session each one is. Give them an enter/exit hover handler that pops a small dark pill to the bot's right naming the session — the tmux window name (+ pane index) and the ~-abbreviated cwd, e.g. "byoc (2) · ~/work/byoc" — middle-truncated so both the name and the cwd leaf survive. The hovered bot stops vibrating and holds still so the pill sits put and the small target doesn't slip from under the cursor; the pill follows the bot if the column re-centers and is torn down if the session ends mid-hover. One shared pill canvas, reused across bots (only one hovered at a time), sized to its text via the monospace advance. M.tipOwner guards a stale mouseExit from hiding a pill another bot just showed. No click behaviour added. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The grey working bots (left edge) were pure presence — no way to tell which session each one is. Now hovering a working bot pops a small pill to its right naming the session, and the bot holds still while you inspect it.
What it shows
The tmux window name (+ pane index when known) and the ~-abbreviated cwd, e.g.
byoc (2) · ~/work/byoc. Long labels are middle-truncated so both the name (start) and the cwd leaf (end) survive.Details
M.tipOwnerguards against a stale bot'smouseExithiding a pill another bot just showed.Verified
init.lua; the darwin system builds; NixOS still evaluates (the module no-ops on Linux).Apply
Auto-reloads on switch — hover a grey bot on the left edge.
🤖 Generated with Claude Code