Expand description
What srv tells a UI about the machine it runs on: sent as the srvinfo
event on every WebSocket connect (server/websocket.rs). A UI shows these
names and builds paths from the home directory, and the paths have to be
srv’s, which is only the same machine as the UI’s when the UI is the
desktop app.
Structs§
- SrvInfo
- The
srvinfoevent: srv’s version, and the machine it runs on.
Functions§
- agentmux_
home - The account-wide AgentMux root captured at startup (
capture_home_dir). - agentmux_
root - The account-wide AgentMux root, for code that means
~/.agentmuxitself (archives/,channels/,shared/). Inside srv, after startup,agentmux_common::data_paths::agentmux_root()answers with this version’s data directory instead (see [HOME_DIR]); this answers with the root captured before that. Only when no capture ran (tests, tools that don’t run srv’smain) does it ask the resolver; a capture that ran and found no root staysNone, since asking now would get the data directory. - capture_
home_ dir - Record the AgentMux root. Call first thing in
main, before anything changes the environment. - srv_
info - The
dataof thesrvinfoevent.