Skip to content

fix: use the actual script path in the reply address - #32

Merged
abruption merged 1 commit into
mainfrom
fix/26-reply-path-hardcoded
Sep 8, 2026
Merged

abruption merged 1 commit into
mainfrom
fix/26-reply-path-hardcoded

Conversation

@abruption

Copy link
Copy Markdown
Owner

Problem

reply_line() hardcodes ~/.claude/skills/cc-peer/cc_peer.py as 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 via python3 - (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 line
  • test_falls_back_for_stdin: verifies the constant fallback when __file__ is <stdin>

Closes #26

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
@abruption
abruption merged commit c8c569d into main Sep 8, 2026
6 checks passed
@abruption
abruption deleted the fix/26-reply-path-hardcoded branch September 8, 2026 00:46
@abruption abruption mentioned this pull request Sep 8, 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.

The reply address hardcodes an install path the README says you don't need

1 participant