Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion skilljail/hooks/claude_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading