Skip to content

v1.3.2: stop reading session-id environment variables - #13

Merged
Rmasood1122 merged 1 commit into
mainfrom
fix/drop-session-env-reads
Oct 21, 2026
Merged

Rmasood1122 merged 1 commit into
mainfrom
fix/drop-session-env-reads

Conversation

@Rmasood1122

Copy link
Copy Markdown
Owner

The directory still holds the plugin under MCP_FORWARDS_CREDENTIAL_ENV.
1.3.1 only moved URLs away from the CLAUDE_*_SESSION_ID reads; the reads
themselves are what the rule treats as a credential. They were a fallback:
the PostToolUse hook payload already carries session_id, and Claude Code
writes a Claude-Session trailer. So drop the reads instead of rearranging
them.

  • core/receipt.py: no CLAUDE_CODE_SESSION_ID / CLAUDE_SESSION_ID reads;
    session id from the hook payload or the Claude-Session trailer only.
  • tests: env session ids are ignored, trailer still recorded, and no
    shipped file (core/, hooks/, action.yml) names a SESSION_ID variable.
  • README disclosure, badge.py note, CHANGELOG, version 1.3.2.
  • 125 tests pass.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01BphvC1wMrXK1TseCjhappZ

The directory still holds the plugin under MCP_FORWARDS_CREDENTIAL_ENV.
1.3.1 only moved URLs away from the CLAUDE_*_SESSION_ID reads; the reads
themselves are what the rule treats as a credential. They were a fallback:
the PostToolUse hook payload already carries session_id, and Claude Code
writes a Claude-Session trailer. So drop the reads instead of rearranging
them.

- core/receipt.py: no CLAUDE_CODE_SESSION_ID / CLAUDE_SESSION_ID reads;
  session id from the hook payload or the Claude-Session trailer only.
- tests: env session ids are ignored, trailer still recorded, and no
  shipped file (core/, hooks/, action.yml) names a SESSION_ID variable.
- README disclosure, badge.py note, CHANGELOG, version 1.3.2.
- 125 tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BphvC1wMrXK1TseCjhappZ
@Rmasood1122
Rmasood1122 merged commit 6a9df85 into main Oct 21, 2026
4 checks passed
@Rmasood1122
Rmasood1122 deleted the fix/drop-session-env-reads branch October 21, 2026 23:56
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