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

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