Repository navigation
feat(memory): wire the Claude Code status line on install — PAL becomes visible - #183
Merged
Merged
Conversation
…es visible
PAL's "blocked-on-you" count only reached the AGENT (via the memory hook); the
human never saw it in the terminal unless they hand-edited settings.json. So
`kit memory install` now also wires `statusLine` → `kit statusline`, making the
setup score + open-PAL ⚠ count visible in the Claude Code status bar.
- installStatusline / uninstallStatusline in memory/install.ts: idempotent,
uses the same absolute kit invocation as the hooks. NEVER clobbers a user's
existing custom statusLine — reports "foreign" and leaves it; uninstall
removes only kit's own.
- memInstall wires it (skip with --no-statusline); memUninstall removes it.
Help updated.
Pairs with the device-coupled PAL count (#182), so the bar shows THIS device's
real blocked-on-you, not an ephemeral session's. 3 new install tests
(added/idempotent, never-clobber-foreign, uninstall-only-ours). Smoke: install
writes statusLine = "<abs>/kit statusline". 1972 tests pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
|
✅ Docker image built successfully
|
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.
Description
Closes the "why don't I see PAL in the terminal?" gap. PAL's "blocked-on-you" count only reached the agent (via the memory hook injection); the human never saw it unless they hand-edited
~/.claude/settings.json.kit statusline(which renders the setup score +⚠NPAL count) was never wired anywhere. Sokit memory installnow wires it.Type of Change
Changes Made
installStatusline/uninstallStatuslineinmemory/install.ts:settings.statusLine = { type: "command", command: "<abs kit> statusline" }(same absolute/wrapper invocation as the hooks, so it resolves in the hook shell).foreignand leaves it untouched;uninstallremoves only kit's own.kit memory installwires it (skip with--no-statusline);kit memory uninstallremoves it. Help text updated.Pairs with the device-coupled PAL count (#182): the bar shows this device's real blocked-on-you, never an ephemeral session's.
Testing
Test Coverage
npm test) — 1972 pass, 0 failManual Testing
KIT_CLAUDE_SETTINGS=… kit memory install→ writesstatusLine.command = "/…/kit statusline"and prints✓ wired status line; a pre-existing custom statusLine is reported and left as-is.🤖 Generated with Claude Code
https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
Generated by Claude Code