We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 868b0a6 commit 994d951Copy full SHA for 994d951
registry/coder-labs/modules/copilot-cli/scripts/start.sh
@@ -66,8 +66,8 @@ Task: $ARG_AI_PROMPT"
66
check_existing_session() {
67
if [ "$ARG_RESUME_SESSION" = "true" ]; then
68
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
+ local session_dir="$HOME/.copilot/history-session-state"
+ if [ -d "$session_dir" ] && [ -n "$(ls "$session_dir"/session_*_*.json 2> /dev/null)" ]; then
71
echo "Found existing Copilot CLI sessions. Resume mode enabled."
72
return 0
73
fi
0 commit comments