gui: never auto-restart statewait/chat streams on finish

onStateFinished and onChatFinished no longer restart their
streams. Streams are only started when the user explicitly
selects an agent (setActiveSessionId for single-agent,
switchAgent for multi-agent). This prevents tight restart
loops when pointing to a nonexistent directory.
This commit is contained in:
Levi Neely 2026-08-01 20:55:41 +02:00
parent ef03cdc7f3
commit 608127e4ac
1 changed files with 9 additions and 6 deletions

View File

@ -518,16 +518,19 @@ void Ollie9pClient::onStateReadyRead()
void Ollie9pClient::onChatFinished(int, QProcess::ExitStatus)
{
m_chatProc->deleteLater();
m_chatProc = nullptr;
emit streamingDone();
m_chatProc->deleteLater();
m_chatProc = nullptr;
emit streamingDone();
// Do NOT restart — chat stream is only started when the user
// explicitly selects an agent.
}
void Ollie9pClient::onStateFinished(int, QProcess::ExitStatus)
{
m_stateProc->deleteLater();
m_stateProc = nullptr;
startStateStream();
m_stateProc->deleteLater();
m_stateProc = nullptr;
// Do NOT restart — statewait is only started when the user
// explicitly selects an agent via setActiveSessionId or switchAgent.
}
void Ollie9pClient::startEventStream()