Skip to content

fix(scripts): drop unused HOOK_KEY constant from install_cc_hook.py - #173

Closed
Coding-Dev-Tools wants to merge 1 commit into
ship/pr1-core-and-integrationfrom
ship/pr1-hookkey-fix
Closed

fix(scripts): drop unused HOOK_KEY constant from install_cc_hook.py#173
Coding-Dev-Tools wants to merge 1 commit into
ship/pr1-core-and-integrationfrom
ship/pr1-hookkey-fix

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner

Follow-up to #171. Review pass 2 found one dead identifier in the freshly
added scripts/install_cc_hook.py: the HOOK_KEY = "cc-engraphis-session-start"
constant declared at the top of the module is never referenced anywhere.
The idempotency check in install() / uninstall() matches on the
command string instead. This PR drops the dead identifier so a
reviewer of #171 doesn't have to flag it.

One file, one line removed, all 131 PR1 + hook installer + smart-gateway
tests still pass (tests/test_session_start_hook.py,
tests/test_smart_mcp_gateway.py, tests/test_mcp_server.py).

Reviewer suggestion source: PR #171 review pass 2 (commit 725bb6e on top
of 4ec6291).

The constant was declared but never referenced; the idempotency check in
install()/uninstall() matches on the `command` string instead. Drop the
dead identifier so a reviewer doesn't flag it.

Follow-up to #171 (review pass 2).
@Coding-Dev-Tools

Copy link
Copy Markdown
Owner Author

Superseded by 6cdfc57 (owner's review-response commit on PR1) which rewrote install_cc_hook.py and dropped HOOK_KEY as part of the idempotency refactor. The dead-constant fix is already in the main PR1 history.

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