gui: restart agent streams on session resume

When resuming the active session, restart chat stream so user
can continue working without switching agents.
This commit is contained in:
Levi Neely 2026-10-06 15:20:50 +02:00
parent 7cbaaed014
commit 4be78447fa
1 changed files with 4 additions and 0 deletions

View File

@ -516,6 +516,10 @@ bool Ollie9pClient::resumeSession(const QString &sessionId)
QString path = "session/" + sessionId + "/ctl";
if (m_9p->write(path, "resume")) {
refreshSessions();
// Restart streams if this is the active session
if (sessionId == m_activeSessionId && !m_agentId.isEmpty()) {
startActiveAgentStreams();
}
return true;
}
return false;