diff --git a/session/session.go b/session/session.go index 457ccfb..f1ceb92 100644 --- a/session/session.go +++ b/session/session.go @@ -923,7 +923,7 @@ func (s *Manager) restoreSession(ps *agent.PersistedSession) error { disp := newDisp() rt := agent.BuildRuntime(cfg, disp, cwd, env, sysPrompt, opModel, envBlock) - restoredSession := agent.RestoreSession(ps) + restoredSession := agent.RestoreHistory(ps) var sessPtr *Session core := agent.NewAgentCore(agent.AgentCoreConfig{ @@ -935,7 +935,7 @@ func (s *Manager) restoreSession(ps *agent.PersistedSession) error { Uname: uname, CWD: cwd, Remote: remoteTarget, - Session: restoredSession, + History: restoredSession, Runtime: rt, NewDispatcher: newDisp, PromptEnvExtra: promptEnv,