fix(herdr-workspace): synchronize herdr runtime workspace label on spawn and resume

This commit is contained in:
2026-08-24 13:17:34 +09:00
parent d2cdc3f8cd
commit fc8ca88107
2 changed files with 11 additions and 1 deletions
+5 -1
View File
@@ -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