Skip to content

Commit 994d951

Browse files
fix: update session directory path for existing Copilot CLI session detection
1 parent 868b0a6 commit 994d951

File tree

1 file changed

+2
-2
lines changed
  • registry/coder-labs/modules/copilot-cli/scripts

1 file changed

+2
-2
lines changed

registry/coder-labs/modules/copilot-cli/scripts/start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ Task: $ARG_AI_PROMPT"
6666
check_existing_session() {
6767
if [ "$ARG_RESUME_SESSION" = "true" ]; then
6868
if copilot --help > /dev/null 2>&1; then
69-
local session_dir="$HOME/.copilot/sessions"
70-
if [ -d "$session_dir" ] && [ "$(ls -A "$session_dir" 2> /dev/null)" ]; then
69+
local session_dir="$HOME/.copilot/history-session-state"
70+
if [ -d "$session_dir" ] && [ -n "$(ls "$session_dir"/session_*_*.json 2> /dev/null)" ]; then
7171
echo "Found existing Copilot CLI sessions. Resume mode enabled."
7272
return 0
7373
fi

0 commit comments

Comments
 (0)