From 656e855e4ad2bb149841dc4ca9626a3f902eb0d6 Mon Sep 17 00:00:00 2001 From: basedcorp99 Date: Tue, 2 Jun 2026 11:52:19 +0200 Subject: [PATCH] Add CMUX_SURFACE_ID to docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to CMUX_SURFACE_ID env var support — document it alongside KITTY_WINDOW_ID, TMUX_PANE, etc. in environment-variables.md and session-switching-and-recent-listing.md. --- docs/environment-variables.md | 2 +- docs/session-switching-and-recent-listing.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/environment-variables.md b/docs/environment-variables.md index e63a14a00..55b530b27 100644 --- a/docs/environment-variables.md +++ b/docs/environment-variables.md @@ -372,7 +372,7 @@ These are read as runtime signals; they are usually set by the terminal/OS rathe | `COLORFGBG` | Terminal background light/dark auto-detection | | `TERM_PROGRAM`, `TERM_PROGRAM_VERSION`, `TERMINAL_EMULATOR` | Terminal identity in system prompt/context | | `KDE_FULL_SESSION`, `XDG_CURRENT_DESKTOP`, `DESKTOP_SESSION`, `XDG_SESSION_DESKTOP`, `GDMSESSION`, `WINDOWMANAGER` | Desktop/window-manager detection in system prompt/context | -| `KITTY_WINDOW_ID`, `TMUX_PANE`, `TERM_SESSION_ID`, `WT_SESSION` | Stable per-terminal session breadcrumb IDs | +| `KITTY_WINDOW_ID`, `TMUX_PANE`, `TERM_SESSION_ID`, `WT_SESSION`, `CMUX_SURFACE_ID` | Stable per-terminal session breadcrumb IDs | | `SHELL`, `ComSpec`, `TERM_PROGRAM`, `TERM` | System info diagnostics | | `APPDATA`, `XDG_CONFIG_HOME` | lspmux config path resolution | | `HOME` | Path shortening in MCP command UI | diff --git a/docs/session-switching-and-recent-listing.md b/docs/session-switching-and-recent-listing.md index faa2f2eac..1e8d0371f 100644 --- a/docs/session-switching-and-recent-listing.md +++ b/docs/session-switching-and-recent-listing.md @@ -67,7 +67,7 @@ For `SessionInfo` list entries: 3. If breadcrumb is invalid/missing, fall back to newest file by mtime in the session dir (`findMostRecentSession`) 4. If none found, create a new session -Terminal ID derivation prefers TTY path and falls back to env-based identifiers (`KITTY_WINDOW_ID`, `TMUX_PANE`, `TERM_SESSION_ID`, `WT_SESSION`). +Terminal ID derivation prefers TTY path and falls back to env-based identifiers (`KITTY_WINDOW_ID`, `TMUX_PANE`, `TERM_SESSION_ID`, `WT_SESSION`, `CMUX_SURFACE_ID`). Breadcrumb writes are best-effort and non-fatal.