update for agent.Session → agent.History rename
This commit is contained in:
parent
0b9f345930
commit
731810ae28
|
|
@ -923,7 +923,7 @@ func (s *Manager) restoreSession(ps *agent.PersistedSession) error {
|
||||||
disp := newDisp()
|
disp := newDisp()
|
||||||
rt := agent.BuildRuntime(cfg, disp, cwd, env, sysPrompt, opModel, envBlock)
|
rt := agent.BuildRuntime(cfg, disp, cwd, env, sysPrompt, opModel, envBlock)
|
||||||
|
|
||||||
restoredSession := agent.RestoreSession(ps)
|
restoredSession := agent.RestoreHistory(ps)
|
||||||
|
|
||||||
var sessPtr *Session
|
var sessPtr *Session
|
||||||
core := agent.NewAgentCore(agent.AgentCoreConfig{
|
core := agent.NewAgentCore(agent.AgentCoreConfig{
|
||||||
|
|
@ -935,7 +935,7 @@ func (s *Manager) restoreSession(ps *agent.PersistedSession) error {
|
||||||
Uname: uname,
|
Uname: uname,
|
||||||
CWD: cwd,
|
CWD: cwd,
|
||||||
Remote: remoteTarget,
|
Remote: remoteTarget,
|
||||||
Session: restoredSession,
|
History: restoredSession,
|
||||||
Runtime: rt,
|
Runtime: rt,
|
||||||
NewDispatcher: newDisp,
|
NewDispatcher: newDisp,
|
||||||
PromptEnvExtra: promptEnv,
|
PromptEnvExtra: promptEnv,
|
||||||
|
|
|
||||||
Reference in New Issue