From cafe38292f16f6f3a77cb1eda27f4a6943730aef Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Mon, 27 Jul 2026 11:41:42 +0200 Subject: [PATCH] session: remove auto-mount on session creation Agents now use the 9p client binary directly instead of FUSE mounts. Remove startMount() calls and OLLIE= env var from session env. Mounts remain available for human use but are no longer auto-started. --- session/session.go | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/session/session.go b/session/session.go index 3a8f96f..05aae4e 100644 --- a/session/session.go +++ b/session/session.go @@ -867,7 +867,7 @@ func (s *Manager) restoreSession(ps *agent.PersistedSession) error { promptEnv = agent.PromptEnv(cwd) } - env := []string{"OLLIE_SESSION_ID=" + sessID, "OLLIE_UNAME=" + uname, "OLLIE=" + MountPathFor(uname)} + env := []string{"OLLIE_SESSION_ID=" + sessID, "OLLIE_UNAME=" + uname} env = append(env, promptEnv...) // Compute base layers (same as new-session path). @@ -935,12 +935,7 @@ func (s *Manager) restoreSession(ps *agent.PersistedSession) error { sess.uname = uname sess.remote = remoteTarget - // Start mount for remote sessions (not managed by local execute.Server). - if remoteTarget != "" && !s.cfg.NoMount { - ms := &mountState{envExtra: make(map[string]string)} - startMount(ms, uname) - sess.mount = ms - } + // Replay tail of persisted messages into the chat log so the GUI // and `chat` file show recent history on restore. @@ -1194,7 +1189,7 @@ func (s *Manager) CreateSession(args []string) (string, error) { } else { promptEnv = agent.PromptEnv(cwd) } - env := []string{"OLLIE_SESSION_ID=" + sessID, "OLLIE_UNAME=" + uname, "OLLIE=" + MountPathFor(uname)} + env := []string{"OLLIE_SESSION_ID=" + sessID, "OLLIE_UNAME=" + uname} env = append(env, promptEnv...) // Compose base layers: system prompt + operational model + environment. @@ -1264,13 +1259,6 @@ func (s *Manager) CreateSession(args []string) (string, error) { // For remote sessions, the mount isn't managed by a local execute.Server // (which doesn't exist). Start it directly so $OLLIE is available for - // local prompt resolution. - if remoteTarget != "" && !s.cfg.NoMount { - ms := &mountState{envExtra: make(map[string]string)} - startMount(ms, uname) - sess.mount = ms - } - s.mu.Lock() sess.uname = uname s.sessions[sessID] = sess