From 550571955a00becd413197b1bd7b95df1f6fa9ff Mon Sep 17 00:00:00 2001 From: Lawrence Chen Date: Mon, 6 Apr 2026 16:35:02 -0700 Subject: [PATCH] Write last tag to /tmp for Claude Code statusline reload.sh now writes the tag to /tmp/cmux-last-tag (global) and /tmp/cmux-last-tag-$CLAUDE_SESSION_ID (per-session) so each Claude Code instance can display its own latest build tag in the status line. --- scripts/reload.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/reload.sh b/scripts/reload.sh index 136c676b1..50a11dfb3 100755 --- a/scripts/reload.sh +++ b/scripts/reload.sh @@ -405,6 +405,10 @@ if [[ -n "$TAG" && "$APP_NAME" != "$SEARCH_APP_NAME" ]]; then CMUX_DEBUG_LOG="/tmp/cmux-debug-${TAG_SLUG}.log" write_last_socket_path "$CMUX_SOCKET" echo "$CMUX_DEBUG_LOG" > /tmp/cmux-last-debug-log-path || true + echo "$TAG" > /tmp/cmux-last-tag || true + if [[ -n "${CLAUDE_SESSION_ID:-}" ]]; then + echo "$TAG" > "/tmp/cmux-last-tag-${CLAUDE_SESSION_ID}" || true + fi /usr/libexec/PlistBuddy -c "Add :LSEnvironment dict" "$INFO_PLIST" 2>/dev/null || true /usr/libexec/PlistBuddy -c "Set :LSEnvironment:CMUXD_UNIX_PATH \"${CMUXD_SOCKET}\"" "$INFO_PLIST" 2>/dev/null \ || /usr/libexec/PlistBuddy -c "Add :LSEnvironment:CMUXD_UNIX_PATH string \"${CMUXD_SOCKET}\"" "$INFO_PLIST"