Uh oh!
There was an error while loading. Please reload this page.
fix(#304): don't claim "verified on your PATH" when the current shell can't find tracebloc - #305
Conversation
… shell can't find tracebloc _cli_on_fresh_path spawns fresh shells to prove the CLI persists into new terminals. But the caller's current shell (the one running the installer) predates the rc PATH edit when the binary lands in ~/.local/bin — so the success branch printed "verified on your PATH" while the very next `tracebloc …` the user typed there failed with command-not-found (#304). Gate the clean "verified on your PATH" verdict on `has tracebloc` (current shell resolves it too). When it persists for new terminals but this shell can't see it yet, say so honestly and point to a new terminal / `source <rc>` instead of re-appending the line the rc already carries. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
LukasWodka
commented
Jul 6, 2026
👋 Heads-up — Code review queue is at 33 / 30 Above the WIP limit. The team convention is to review existing PRs before opening new work. Open PRs currently in Code review (oldest first):
Pull from review before opening new work. (This is a nudge from the kanban WIP check, not a block.) |
saadqbal
commented
Jul 6, 2026
Superseded-in-principle by the real R7 fix in tracebloc/cli#131 (PR tracebloc/cli#132): Keeping this as interim protection though — R7 only kicks in once the CLI release the installer pulls carries it (and dev/prod run a backend build with #893). Suggest: merge this now, then a small follow-up drops this pre-flight once the R7 CLI is released. The install-client-helm one-client guard stays either way as the backstop. |
saadqbal
commented
Jul 6, 2026
…age fix install-cli.sh changed; refresh the R8 signed-manifest checksum so gen-manifest.sh --check passes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Closes#304.
The post-install verify spawns fresh shells to prove the CLI persists into new terminals — but the shell that ran the installer predates the
~/.local/binPATH edit, so it printed "verified on your PATH" while the user's nexttracebloc …in that same shell failed with command-not-found.Now the clean "verified on your PATH" verdict is gated on
has tracebloc(this shell resolves it too). When it persists for new terminals but the current shell can't see it yet, it says so and points to a new terminal /source <rc>instead.Tests:
install-cli.bats9/9 (fixed the old test that encoded the buggy expectation; added one for the current-shell-lacks-it case).🤖 Generated with Claude Code
Note
Low Risk
Installer UX and messaging only; verification remains non-fatal and behavior for shells that already have the CLI on PATH is unchanged.
Overview
Fixes misleading post-install messaging when
traceblocis on PATH in new shells (via rc) but not in the shell running the installer (#304)._verify_tracebloc_clistill uses_cli_on_fresh_pathto confirm persistence, but "verified on your PATH" is shown only whenhas traceblocsucceeds in the current shell. If fresh shells resolve the binary but this one does not, the installer reports "verified for new terminals" and hints to open a new terminal orsourcethe shell rc (fish gets a shorter message), without re-appending PATH lines that are already in the rc.Bats coverage splits the old single fresh-shell test into the full PATH case (
hassucceeds) and the #304 case (hasfails), andscripts/manifest.sha256is updated forinstall-cli.sh.Reviewed by Cursor Bugbot for commit 1fd0696. Bugbot is set up for automated code reviews on this repo. Configure here.