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