Repository navigation
Say in vibe status when desktop tracking is broken, and repair the install on every command - #150
Merged
Merged
Conversation
…stall there too An app config that no longer parses, or a vibe hook pinned to a Node or CLI that is gone, turns desktop tracking off with no sign anywhere. vibe status now runs the install repair first and then names what is still broken and the one thing to do about it.
…nto iamnotstatic/hook-health
…nto iamnotstatic/hook-health
One definition of a vibe hook for the installers and the check, so a user's own command containing __hook is never reported as ours. The test points VIBE_API at a dead local port rather than the real API.
…nstalled vibe vibe log, share and leaderboard now run the install repair like status and bare vibe. A repair run by an installed vibe also takes over hooks pinned to a git checkout or an npx cache, which die with the worktree or the cache even while they still run. A checkout or npx copy never takes hooks, and two installed copies (one per Node under nvm) leave each other's alone.
Merged
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.
Reopened from #148. #148 was merged into its base branch
iamnotstatic/safe-hook-writes14 seconds after that branch had already gone into main, so none of it reachedmain. This is the same branch withmainmerged in. It has to land before 0.16.0 is published, because the #149 release notes already describe it.Merged with main, the full suite passes 228/228. The real
~/.claude,~/.codex,~/.cursorand~/.zcodeconfigs and~/.zshrcwere byte-identical before and after. The server typecheck is clean (no server changes).Desktop tracking can break with no sign anywhere, because the editor runs the hook and keeps its output. On the maintainer's machine, Codex tracking was off for 8 days because
~/.codex/hooks.jsonno longer parsed, and nothing said so.What changes
vibe statusnow repairs the install first. The repair used to run only at session start and in the terminal wrapper. A desktop-only user whose pinned Node was removed by an nvm upgrade never gets a working session-start hook, so the repair never reached them.vibe status(and barevibe) is a command they do run.Then it reports what the repair couldn't fix, one line per app, in the same style as the existing notices:
New
src/hook-health.tschecks each app's config (Claude Code, Codex, Cursor, ZCode):cli.jsthat no longer exists. The repair normally fixes this, so this line only shows when the repair couldn't.What it doesn't report:
vibe uninstall.The strings live in
render.ts. Each app's config path is now exported so the check reads the same files the installers write.Verified
vibe statusagainst a fake home seeded with what the maintainer's machine had: a torn Claude settings file and Codex hooks pinned to/old/nvm/node. The Codex hooks were repointed silently, and the Claude file was reported with the line above.test/hook-health.test.mjs:vibe statusrepairs Codex and reports Claude. This test fails against Write hook configs atomically, keep tests out of the real home, refresh stale Claude hooks #147'scli.tsand passes here.npm test: 206/206, and the real~/.claude,~/.codex,~/.cursor,~/.zcodeconfigs and~/.zshrcwere byte-identical before and after. Server typecheck clean.Not covered
ZCode hooks that are installed but switched off in ZCode's settings. ZCode leaves new hooks off until the user turns them on, and tracking is then off just as silently. Reporting it fairly means first knowing that the person actually uses ZCode, so it's left out here.
Also: repair on every command, and off checkouts
vibe log,vibe shareandvibe leaderboardnow run the install repair too, likevibe statusand barevibe.node_modules/vibetime-cli/in it and isn't under_npx/. That covers npm (nvm, Homebrew node, Windows), pnpm, yarn, bun and volta.test/repair-commands.test.mjsruns real CLI commands from copies of the build laid out the way npm installs them. The three behaviour tests (an installed vibe takes over from a checkout; an installed vibe takes back from npx; log and leaderboard repair) fail without the change. The two guards (a checkout never takes hooks; two installed copies leave each other alone) pass both ways. End to end on the combined release: hooks pinned to a live checkout, then barevibefrom an installed copy. All 19 pinned paths across the four apps moved, with no warnings, and the Codex hook kept its slot. Combined suite with #146, #147 and #149: 228/228.