Skip to content

Fix configure clearing invocation args before log_invocation can write them#58

Merged
pixelate merged 1 commit into
mainfrom
claude/log-command-invocations-Cys6J
Apr 25, 2026
Merged

Fix configure clearing invocation args before log_invocation can write them#58
pixelate merged 1 commit into
mainfrom
claude/log-command-invocations-Cys6J

Conversation

@pixelate
Copy link
Copy Markdown
Owner

Logger.configure was resetting @invocation_args to nil, which meant the
invocation captured by CLI.start was lost before parse_options could log it.
The args are already cleared by log_invocation after use, so configure only
needs to set the log path.

Logger.configure was resetting @invocation_args to nil, so the invocation
captured by CLI.start was lost before parse_options could write it to the
log. configure now only clears @invocation_args when called with nil (the
reset path), leaving pending args intact when called with a real library path.

Adds unit tests covering the configure-then-log sequence, and end-to-end
tests that run sync and analyze through CLI.start against an empty library
and assert the invocation appears in the log file.
@pixelate pixelate force-pushed the claude/log-command-invocations-Cys6J branch from 75fd5ae to 4317849 Compare April 25, 2026 09:44
@pixelate pixelate merged commit 9270c35 into main Apr 25, 2026
3 checks passed
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.

2 participants