From e500d88232ff6d9c0d038b352b835053a831b974 Mon Sep 17 00:00:00 2001 From: Stanley Shen Date: Thu, 15 Oct 2026 21:57:36 -0700 Subject: [PATCH] Tidy wording and comments Co-Authored-By: Claude Opus 4.8 --- skilljail/hooks/claude_code.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skilljail/hooks/claude_code.py b/skilljail/hooks/claude_code.py index abe69c8..c96f8e2 100644 --- a/skilljail/hooks/claude_code.py +++ b/skilljail/hooks/claude_code.py @@ -236,7 +236,8 @@ def _wrap_bash(session_id, cwd, cur: sessmod.ActiveSkill, mode: str, command: st def _is_own_wrap(session_id, cwd, cur: sessmod.ActiveSkill, mode: str, command: str) -> bool: - # only an exact rewrite for this session, skill and mode may pass through; anything else could run outside the jail + # pass a command through only if it exactly matches the wrapper we would generate for this + # session, skill and mode; any other command could run outside the jail try: inner = shlex.split(command)[-1] except (ValueError, IndexError):