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:
parent
7cbaaed014
commit
4be78447fa
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue