fix(herdr-workspace): synchronize herdr runtime workspace label on spawn and resume
This commit is contained in:
@@ -463,7 +463,7 @@ except Exception:
|
||||
fi
|
||||
|
||||
if [ -z "$existing_ws" ] || [ -z "$target_pane" ]; then
|
||||
ws_json=$(_real_herdr workspace create --cwd "${ws:-.}" $env_flags --no-focus 2>/dev/null || echo "")
|
||||
ws_json=$(_real_herdr workspace create --cwd "${ws:-.}" ${MAM_WS_LABEL:+--label "$MAM_WS_LABEL"} $env_flags --no-focus 2>/dev/null || echo "")
|
||||
target_pane=$(echo "$ws_json" | python3 -c "
|
||||
import sys, json
|
||||
try:
|
||||
@@ -474,6 +474,10 @@ try:
|
||||
except Exception:
|
||||
pass
|
||||
" 2>/dev/null || echo "")
|
||||
else
|
||||
if [ -n "$MAM_WS_LABEL" ]; then
|
||||
_real_herdr workspace rename "$existing_ws" "$MAM_WS_LABEL" >/dev/null 2>&1 || true
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$target_pane" ]; then
|
||||
|
||||
Reference in New Issue
Block a user