Repository navigation
fix: use the actual script path in the reply address - #32
Merged
Merged
Conversation
reply_line() hardcoded ~/.claude/skills/cc-peer/cc_peer.py, which breaks for anyone who installed to a different location. Use Path(__file__).resolve() instead, falling back to the old constant only when running via python3 - (remote dispatch, where __file__ is '<stdin>'). Closes #26
Merged
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.
Problem
reply_line()hardcodes~/.claude/skills/cc-peer/cc_peer.pyas the script path in the reply address. Users who installed to a different location get a reply command that points to a non-existent file.Fix
Use
Path(__file__).resolve()to derive the actual path at runtime. When running viapython3 -(remote dispatch),__file__is<stdin>which isn't a real file, so we fall back to the old constant — which is correct since the remote copy lives at the canonical install path.Tests
test_uses_actual_file_path: verifies the actual script path appears in the reply linetest_falls_back_for_stdin: verifies the constant fallback when__file__is<stdin>Closes #26