Repository navigation
In review
Labels
area: tmux-versionstmux version support, feature gates, new tmux tokensbehavior-changeFixes a bug by changing observable or documented behaviour; needs a minor releaseenhancement
Milestone
Description
Summary
Emit a FutureWarning when lenient Server reads (Server.sessions, Server.attached_sessions, Server.windows, Server.panes, Server.clients, and Server.is_alive()) talk to a connected tmux daemon below 3.3a, while returning QueryList([]) or False for one release cycle before propagating VersionTooLow (#777).
Motivation
0.65.0(tmux(feat[minimum]): Require tmux 3.3a #888) raisedTMUX_MIN_VERSIONto"3.3a", and Verify connectedtmuxdaemon meets the3.3aminimum before dispatch #777 checks the connected daemon's#{version}before command dispatch rather than trusting thetmuxexecutable onPATH.- Downstream tools such as tmuxp and libtmux-mcp read
server.sessionsandserver.is_alive()as non-throwing probes. On hosts where thetmuxpackage was upgraded while an older< 3.3adaemon stayed running in memory, propagatingVersionTooLowfrom those read accessors without a warning window breaks status checks and shell completions without warning. - The executable-only helpers in
libtmux.common(get_version,has_gte_version, and siblings) also lack a reference table entry inMIGRATION.
Proposal
- Stage Verify connected
tmuxdaemon meets the3.3aminimum before dispatch #777 across two stacked pull requests:- Deprecation PR (
0.72.0): enforce the hook-free connected-daemon3.3acheck andif-shell -Freplacement fence on commands andServer.raise_if_dead(), deprecate the executable-only helpers inlibtmux.commonwithDeprecationWarning, and haveServer.sessions,Server.attached_sessions,Server.windows,Server.panes,Server.clients, andServer.is_alive()catchVersionTooLow, emit aFutureWarningnaming the accessor and reported daemon version, and returnQueryList([])orFalse. Record both deprecation families inMIGRATIONreference tables and runnable migration examples. - Enforcement PR (
0.73.0, stacked on the deprecation PR): letVersionTooLowpropagate fromServer.sessions,Server.attached_sessions,Server.windows,Server.panes,Server.clients, andServer.is_alive(), and move theMIGRATIONtable entry fromFutureWarningto enforced behavior.
- Deprecation PR (
Alternatives
- Propagating
VersionTooLowfromserver.sessionsandserver.is_alive()in one step without a warning release: rejected because lenient read accessors are documented not to raise on ordinary probes (0.57.0reverted an unannounced list-accessor raise), and callers need a release window to restart older daemons or handleVersionTooLow.
References
- Connected-daemon version check and roadmap: Verify connected
tmuxdaemon meets the3.3aminimum before dispatch #777, Support(feat): Verify connected tmux daemon meets the 3.3a minimum #779, 0.63.x and beyond Roadmap #907 v0.70.0touchpoints:src/libtmux/server.pyL847-L860,src/libtmux/server.pyL3344-L3440,MIGRATION
Metadata
Metadata
Assignees
Labels
area: tmux-versionstmux version support, feature gates, new tmux tokensbehavior-changeFixes a bug by changing observable or documented behaviour; needs a minor releaseenhancement
Type
Projects
- StatusShow more project fieldsNo status
Activity
Server(feat[versions]): Warn on < 3.3a lenient daemon reads
CHANGES(docs) Note < 3.3a daemon read warning (#958)
Server(feat[versions]): Raise VersionTooLow on < 3.3a reads
Server(feat[versions]): Raise VersionTooLow on < 3.3a reads
Server(feat[versions]): Warn on < 3.3a lenient daemon reads
CHANGES(docs): Warn on <3.3a daemon reads
Server(feat[versions]): Raise VersionTooLow on < 3.3a reads
Server(feat[versions]): Warn on < 3.3a lenient daemon reads
CHANGES(docs): Warn on <3.3a daemon reads
Server(feat[versions]): Raise VersionTooLow on < 3.3a reads
Server(feat[versions]): Warn on < 3.3a lenient daemon reads
CHANGES(docs): Warn on <3.3a daemon reads
Server(feat[versions]): Raise VersionTooLow on < 3.3a reads
Server(feat[versions]): Warn on < 3.3a lenient daemon reads
CHANGES(docs): Warn on <3.3a daemon reads
Server(feat[versions]): Raise VersionTooLow on < 3.3a reads