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
1
main.go
1
main.go
|
|
@ -120,6 +120,7 @@ func (m *SessionManager) CreateSession(cwd, backendName, modelName, agentName st
|
||||||
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