feat(create/monitor): implement automatic UUID materialization, auto-pinning, and drift-C2 resolution (13/13 PASS)
This commit is contained in:
@@ -80,9 +80,23 @@ if [ "$(uname)" = "Darwin" ] && [ -f "$RESOLVED_BIN" ]; then
|
||||
xattr -d com.apple.quarantine "$RESOLVED_BIN" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
CLAUDE_ID_FLAG="-r"
|
||||
if [ "$AGENT" = "claude" ]; then
|
||||
_ws_key="$(mam_workspace_key "$WORKSPACE")"
|
||||
_iso_root="$(mam_session_iso_root "$SESSION_NAME" 2>/dev/null || true)"
|
||||
if [ -n "$_iso_root" ]; then
|
||||
_proj_dir="$_iso_root/projects"
|
||||
else
|
||||
_proj_dir="${CLAUDE_PROJECT_DIR:-$HOME/.claude/projects}"
|
||||
fi
|
||||
if [ ! -f "${_proj_dir}/${_ws_key}/${UUID}.jsonl" ]; then
|
||||
CLAUDE_ID_FLAG="--session-id"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Determine CMD_FULL
|
||||
case "$AGENT" in
|
||||
claude) CMD_FULL="${RESOLVED_BIN} --dangerously-skip-permissions -r $UUID" ;;
|
||||
claude) CMD_FULL="${RESOLVED_BIN} --dangerously-skip-permissions $CLAUDE_ID_FLAG $UUID" ;;
|
||||
agy) CMD_FULL="${RESOLVED_BIN} --dangerously-skip-permissions --conversation $UUID" ;;
|
||||
hermes) CMD_FULL="${RESOLVED_BIN} --resume $UUID" ;;
|
||||
cline) CMD_FULL="${RESOLVED_BIN} -i --id $UUID" ;;
|
||||
|
||||
Reference in New Issue
Block a user