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
@@ -63,6 +63,12 @@ else
export HERDR_SESSION_NAME
fi
if [ -n "$HERDR_WORKSPACE_OPT" ]; then
export MAM_WS_LABEL="$HERDR_WORKSPACE_OPT"
else
export MAM_WS_LABEL="$(resolve_herdr_workspace "$SESSION_NAME" "$WORKSPACE")"
fi
# 2. If herdr is alive, print warning or attach.
if herdr has-session -t "$SESSION_NAME" 2>/dev/null; then
if [ "${DRY_RUN:-0}" = "1" ]; then