fix: prevent a stray audio_recap/ in the cwd from shadowing the installed plugin - #16
Draft
leonidb wants to merge 1 commit into
Draft
fix: prevent a stray audio_recap/ in the cwd from shadowing the installed plugin#16leonidb wants to merge 1 commit into
leonidb wants to merge 1 commit into
Conversation
…lled plugin The Stop hook and slash commands run `python3 -m audio_recap`, which puts the process working directory first on sys.path. A working directory containing its own `audio_recap/` (a checkout of this repo, or a git worktree) therefore shadowed the installed plugin and ran stale code. run.sh now cd's to the plugin root before exec so the installed package always wins; production never derives its working directory from the process anyway (the Stop hook reads cwd from its stdin payload and the slash commands pass `--cwd`).
leonidb
force-pushed
the
fix/run-sh-cwd-isolation
branch
from
June 18, 2026 13:02
8724ad3 to
a5d0726
Compare
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.
Running Audio Recap from a directory that contains its own
audio_recap/folder (for example a checkout of this repo, or a git worktree) could shadow the installed plugin onsys.pathand run stale code. The entry script now runs the plugin from its own directory so the installed version is always used, regardless of where the session is working.