From b24a53dc0645e19c7b5862e3667df03f6015ba99 Mon Sep 17 00:00:00 2001 From: Achieve Date: Wed, 25 Mar 2026 11:26:50 +0800 Subject: [PATCH] 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) * 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) --------- Co-authored-by: Claude Opus 4.6 (1M context) --- Resources/bin/claude | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/bin/claude b/Resources/bin/claude index a30a0dea..8d4a650a 100755 --- a/Resources/bin/claude +++ b/Resources/bin/claude @@ -69,7 +69,7 @@ unset CLAUDECODE SKIP_SESSION_ID=false for arg in "$@"; do case "$arg" in - --resume|--resume=*|--session-id|--session-id=*|--continue|-c) + --resume|--resume=*|-r|--session-id|--session-id=*|--continue|-c) SKIP_SESSION_ID=true break ;;