fix nil pointer dereference on /agent command
NewDispatcher was not passed to AgentCoreConfig in the dbus session manager, causing a nil function call when switching agents via /agent.
This commit is contained in:
parent
93ba8ffd29
commit
5afe7b69ac
15
main.go
15
main.go
|
|
@ -113,13 +113,14 @@ func (m *SessionManager) CreateSession(cwd, backendName, modelName, agentName st
|
||||||
|
|
||||||
// Create the agent core
|
// Create the agent core
|
||||||
core := agent.NewAgentCore(agent.AgentCoreConfig{
|
core := agent.NewAgentCore(agent.AgentCoreConfig{
|
||||||
Backend: be,
|
Backend: be,
|
||||||
AgentName: agentName,
|
AgentName: agentName,
|
||||||
AgentsDir: agentsDir,
|
AgentsDir: agentsDir,
|
||||||
SessionsDir: sessionsDir,
|
SessionsDir: sessionsDir,
|
||||||
SessionID: sessID,
|
SessionID: sessID,
|
||||||
CWD: cwd,
|
CWD: cwd,
|
||||||
Runtime: rt,
|
Runtime: rt,
|
||||||
|
NewDispatcher: newDisp,
|
||||||
})
|
})
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
|
|
|
||||||
Reference in New Issue