Skip to content

Name the binary a session started, and the claude behind it - #29

Merged
tdwd merged 1 commit into
mainfrom
show-agent-binary
Nov 17, 2026
Merged

tdwd merged 1 commit into
mainfrom
show-agent-binary

Conversation

@tdwd

@tdwd tdwd commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

A session on a Linux box failed with a 404 for claude-opus-4-1-20250805 while claude typed by hand worked. Deck, under a tmux server started without nvm loaded, was running a stale system-wide claude 2.0.9 that the user's shell never reached.

Starting a session now says which file ran, and for claude and cathode which claude answers and its version, e.g. started /usr/local/bin/claude (2.0.9) in …. The version check runs off the UI goroutine and only replaces the notice if nothing newer has; a missing claude or a failed check is shown instead.

Checked: make race passes. Tests run fake claude/cathode programs on a PATH the test controls, so the machine's own install cannot answer. Each behaviour was removed in turn and a test went red.

Deck starts an agent by name, and the PATH it inherited is not always
the one a shell has. A tmux server started without nvm loaded ran a
stale system-wide claude that the user's own shell never reached, and
every session failed with a model the API no longer serves while the
same command typed by hand worked.

Starting a session now names in the footer the file the agent's name
resolved to. For claude, and for cathode, which starts claude by name
from the same PATH, it adds the claude that answers and its --version.
That check runs as a command off the UI's goroutine and replaces the
notice only if nothing newer has. A missing claude or a failed check is
said in its place.
@tdwd
tdwd merged commit f7efdf9 into main Nov 17, 2026
3 checks passed
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