fix: add cline agent support to resolve_session_id.sh and resume documentation

This commit is contained in:
2026-06-28 10:58:43 +09:00
parent 21a4e96052
commit 2b9bb39d6f
2 changed files with 6 additions and 2 deletions
@@ -104,6 +104,10 @@ case "$AGENT" in
tmux new-session -d -s "$SESSION_NAME" -x 140 -y 40 -c "$WORKSPACE" \
"hermes --resume $UUID"
;;
cline)
tmux new-session -d -s "$SESSION_NAME" -x 140 -y 40 -c "$WORKSPACE" \
"cline -i --id $UUID"
;;
esac
# 4. Update agent-sessions.yaml: status running, last_visible_status
@@ -33,8 +33,8 @@ done
[ -n "$WORKSPACE" ] || { echo "ERROR: --workspace required" >&2; exit 2; }
[ -n "$AGENT" ] || { echo "ERROR: --agent required" >&2; exit 2; }
case "$AGENT" in
claude|agy|hermes) ;;
*) echo "ERROR: --agent must be claude or agy or hermes" >&2; exit 2 ;;
claude|agy|hermes|cline) ;;
*) echo "ERROR: --agent must be claude or agy or hermes or cline" >&2; exit 2 ;;
esac
find_workspace_uuid "$WORKSPACE" "$AGENT"