webui chat: lock to main agent, remove session picker, load full persisted history

This commit is contained in:
DBT
2026-02-26 02:04:54 +00:00
parent 6b6c0e9ef3
commit 2f5cf6338f
4 changed files with 113 additions and 88 deletions

View File

@@ -437,6 +437,10 @@ func (al *AgentLoop) ProcessDirect(ctx context.Context, content, sessionKey stri
return al.processMessage(ctx, msg)
}
func (al *AgentLoop) GetSessionHistory(sessionKey string) []providers.Message {
return al.sessions.GetHistory(sessionKey)
}
func (al *AgentLoop) processMessage(ctx context.Context, msg bus.InboundMessage) (string, error) {
unlock := al.lockSessionRun(msg.SessionKey)
defer unlock()