Skip to content

Commit b24a53d

Browse files
anthhubclaude
andauthored
Add -r shorthand to SKIP_SESSION_ID check in claude wrapper (#1992)
* Add -r shorthand to SKIP_SESSION_ID check in claude wrapper The wrapper checked for --resume but not its -r shorthand, causing claude -r to fail with a --session-id conflict error because the wrapper injected its own --session-id alongside the implicit --resume. Fixes #1987 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Remove invalid -r=* pattern from SKIP_SESSION_ID check Short options don't use the = form, so -r=* would never match a real CLI invocation. Keep only -r as the shorthand for --resume. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7ffa447 commit b24a53d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Resources/bin/claude

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ unset CLAUDECODE
6969
SKIP_SESSION_ID=false
7070
for arg in "$@"; do
7171
case "$arg" in
72-
--resume|--resume=*|--session-id|--session-id=*|--continue|-c)
72+
--resume|--resume=*|-r|--session-id|--session-id=*|--continue|-c)
7373
SKIP_SESSION_ID=true
7474
break
7575
;;

0 commit comments

Comments
 (0)