MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / resetAppState

Function resetAppState

app/src/modules/hub.js:541–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

539}
540
541export 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
563export function showConnectScreen() {
564 hideHubConnectOverlay();

Callers 2

deleteServerFromDialogFunction · 0.70
initHubFunction · 0.70

Calls 4

clearForegroundProbeFunction · 0.90
clearConversationUiFunction · 0.90
$Function · 0.90
updateHeaderInfoFunction · 0.90

Tested by

no test coverage detected