Skip to content

fix: prevent a stray audio_recap/ in the cwd from shadowing the installed plugin - #16

Draft
leonidb wants to merge 1 commit into
mainfrom
fix/run-sh-cwd-isolation
Draft

fix: prevent a stray audio_recap/ in the cwd from shadowing the installed plugin#16
leonidb wants to merge 1 commit into
mainfrom
fix/run-sh-cwd-isolation

Conversation

@leonidb

@leonidb leonidb commented Jun 18, 2026

Copy link
Copy Markdown
Owner

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 on sys.path and 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.

…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
leonidb force-pushed the fix/run-sh-cwd-isolation branch from 8724ad3 to a5d0726 Compare June 18, 2026 13:02
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