Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.203 Home All releases olderv2.1.202 v2.1.204newer

Tmux Option Probes Now Cached

The tmux option queries (mouse mode and focus-events state) are now performed once and cached per session. Previously each check that needed the tmux mouse or focus-events status spawned a new tmux show subprocess. The cached results are shared across all callers within the session.

Details
  • Two queries are cached: tmux show -Av mouse (detects mouse support) and tmux show -gv focus-events (detects focus-event state); each subprocess runs with a 2-second timeout
  • Cache keys tmuxMouseOptionProbe and tmuxFocusOptionProbe live on the session-scoped probe-state object; each is initialized to undefined and populated lazily on first access via a stored Promise using ??= assignment, so concurrent callers share the same in-flight subprocess
  • Both probes are eagerly pre-warmed at startup via an early call when $TMUX is set and iTerm.app control-mode is not active, so the results are already resolved by the time hint-display checks run
  • Mouse hint fires when the probe returns anything other than "on": "tmux detected · scroll with PgUp/PgDn · or add 'set -g mouse on' to ~/.tmux.conf for wheel scroll"; only shown once per session via a checkedTmuxMouseHint boolean flag
  • Focus-events hint fires when the probe returns anything other than "on": "tmux focus-events off · add 'set -g focus-events on' to ~/.tmux.conf and reattach for focus tracking"; similarly gated by checkedTmuxFocusHint
  • A null result from either probe (tmux binary not found, spawn failure, or non-zero exit code) suppresses that hint silently
Evidence

Tmux probe cache (search for "tmuxMouseOptionProbe" and "tmuxFocusOptionProbe")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.203 →