fix: library right rail reads live IPC + clean version string - #24
Merged
Conversation
While running the Library surface locally, two rough edges stood out:
1. The INSTALL / REINSTALL / HEALTH panels were hardcoded KV values
(1.0.42, ~/.hoist/harnesses/claude-code, claude, 3d ago, 12m ago)
and a fictional REINSTALL terminal code block. None of it reflected
the real install. The Library was the only surface whose right rail
was static.
2. The list row version read "2.1.211 (Claude Code)" because the
discover() output embeds the harness name in the version string.
The row label was cluttered.
Fixes:
- Lift library state to App (window.hoist.library.list) so the right
rail can read it.
- Add a cleanVersion() helper that strips the trailing "(<harness name>)"
suffix from the version string.
- Wire LibraryInspectionPanel to the selected entry's fields:
INSTALL heading now shows the entry name
version comes from entry.version
path from entry.exec
id from entry.id
status from entry.status
- Add an early-return when no entry is selected, so the rail doesn't
crash on empty state.
- DetailRail now takes library prop and passes library[0] into the
Library inspection panel.
Verified: npm run typecheck/lint/build green. The running app now
shows the real discovered install (Claude Code 2.1.211, path
/opt/homebrew/bin/claude) in both the list row and the right rail.
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.
Small fix to the Library surface from #23.
What I caught while running locally:
hardcoded KV values (1.0.42, ~/.hoist/harnesses/claude-code, claude,
3d ago, 12m ago) and a fictional REINSTALL terminal code block.
None of it reflected the real install. The Library was the only
surface whose right rail was static.
discover() embeds the harness name in the version string. Cluttered.
Fixes:
rail can read it.
Verified: typecheck/lint/build all green, the running app now shows
the real discovered install (Claude Code 2.1.211, path
/opt/homebrew/bin/claude) in both the list row and the right rail.