| 190 | } |
| 191 | |
| 192 | void resetClientState(ClientProtocol protocol) { |
| 193 | withClientLock([&]() { |
| 194 | closeSessionLogUnlocked(); |
| 195 | activeProtocol = protocol; |
| 196 | queuedCommand = ""; |
| 197 | queuedOutput = ""; |
| 198 | queuedPromptPrefix = "> "; |
| 199 | queuedPromptContext = ""; |
| 200 | pendingTerminalLine = ""; |
| 201 | terminalLiveInput = ""; |
| 202 | pendingEchoSuppression = ""; |
| 203 | sessionStatus = ""; |
| 204 | sessionReady = false; |
| 205 | sessionActive = false; |
| 206 | sessionClosed = false; |
| 207 | sessionFailed = false; |
| 208 | sessionConnecting = false; |
| 209 | stopSessionRequested = false; |
| 210 | previousOutputWasCR = false; |
| 211 | awaitingTabDebugResponse = false; |
| 212 | }); |
| 213 | } |
| 214 | |
| 215 | void markSessionConnecting() { |
| 216 | withClientLock([&]() { |
no test coverage detected