()
| 539 | } |
| 540 | |
| 541 | export function resetAppState() { |
| 542 | clearForegroundProbe('reset_app_state'); |
| 543 | S.ws = null; |
| 544 | S.authenticated = false; |
| 545 | S.sessionId = ''; |
| 546 | S.resumeRequestedFor = ''; |
| 547 | S.lastMessageAt = 0; |
| 548 | S.sessionSyncToken = 0; |
| 549 | S.turnStateVersion = 0; |
| 550 | S.pendingTurnState = null; |
| 551 | S.pendingPlanContent = ''; |
| 552 | S.cwd = ''; |
| 553 | S.model = ''; |
| 554 | S.pendingPerms = []; |
| 555 | S.replaying = true; |
| 556 | S.intentionalDisconnect = false; |
| 557 | clearConversationUi(); |
| 558 | $('input').value = ''; |
| 559 | updateHeaderInfo(); |
| 560 | $('perm-overlay').classList.remove('visible'); |
| 561 | } |
| 562 | |
| 563 | export function showConnectScreen() { |
| 564 | hideHubConnectOverlay(); |
no test coverage detected