diff --git a/gui/ollie9pclient.cpp b/gui/ollie9pclient.cpp index 00f4256..f12b22a 100644 --- a/gui/ollie9pclient.cpp +++ b/gui/ollie9pclient.cpp @@ -444,14 +444,11 @@ void Ollie9pClient::startStateStream() qDebug() << "startStateStream active session" << m_activeSessionId << "active agent" << m_agentId; if (m_stateProc) return; - // Check if session still exists before starting + // Only explicit session+agent selection may start this stream. + // Do NOT preflight by listing session//agent; that was causing + // repeated agent-directory churn on every reopen. if (m_activeSessionId.isEmpty() || m_agentId.isEmpty()) return; - // The active agent must be explicitly selected. Do not re-resolve - // or auto-fallback here; just stop if the selection is no longer valid. - QStringList agents = getAgents(m_activeSessionId); - if (agents.isEmpty() || !agents.contains(m_agentId)) return; - m_stateProc = new QProcess(this); connect(m_stateProc, &QProcess::readyReadStandardOutput, this, &Ollie9pClient::onStateReadyRead); connect(m_stateProc, QOverload::of(&QProcess::finished),