Fix/daemon down ux#48
Merged
RonCodes88 merged 4 commits intomainfrom May 3, 2026
Merged
Conversation
… upgrades don't break harness hooks
… Application Support survive /bin/sh
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
Fixes the red
PreToolUse:hook error/Stop hook errorbanners that showed up across Claude Code, Codex, and Cursor when the OpenAgentLock daemon was off (or when the published CLItarball was missing the wrapper script). Adds a live
OpenAgentLock ✓ / ⚠ daemon offlineindicator under the Claude Code chat viastatusLine. Codex and Cursor get silent fail-openinstead of a chat-injected nudge — anything we put in those harness chat fields registered as a prompt-injection attempt.
What changed
<agentlockHome>/bin/agentlockwritten byagentlock install; hook entries reference it instead of the volatilenode_modulespath, so package upgrades can'tstrand the wired command.
commandstring (Claude / Codex / Cursor) so paths with spaces (Library/Application Support) survive/bin/sh -cparsing.statusLineconfig wired automatically by the installer to a tiny health-check script (<binDir>/agentlock-status); showsOpenAgentLock ✓when the daemon is up,OpenAgentLock ⚠ daemon offlinewhen it's not. Output is pure UI — never enters the model's input stream.additionalContext/agent_messagechat-injection paths.prepublishOnlyguard incli/package.jsonasserts the source-tree wrapper is in the tarball beforenpm publish— catches the kind of regression that produced 0.1.12.0.1.15.Checklist
CONTRIBUTING.md.envcontent committed