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.
This commit is contained in:
Levi Neely 2026-07-27 11:41:42 +02:00
parent 666acceb0b
commit cafe38292f
1 changed files with 3 additions and 15 deletions

View File

@ -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