Skip to content

fix(mod): tell a session's own label apart with lich whoami - #64

Merged
omartelo merged 1 commit into
mainfrom
fix/self-command-whoami
Oct 9, 2026
Merged

omartelo merged 1 commit into
mainfrom
fix/self-command-whoami

Conversation

@omartelo

@omartelo omartelo commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #62. The self-command mod took lich's control_session refusal as "this is the session itself" by matching its words, which have no contract. lich#700 adds lich whoami --json and accepts a session id wherever a session is named; the mod now asks whoami (only on a refused command) and compares the target to its id, label or name, case-insensitively. When whoami fails (lich before it), only the LICH_SESSION_ID counts.

Docs name lich 0.64 as the first with whoami: to confirm against the actual release before merging.

node --test: 380 pass; claude plugin validate passes; claude plugin test: 31 pass.

@omartelo
omartelo merged commit 56bcbac into main Oct 9, 2026
3 checks passed
@omartelo
omartelo deleted the fix/self-command-whoami branch October 9, 2026 18:48
@omartelo omartelo mentioned this pull request Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant