MCPcopy Create free account
hub / github.com/tiann/hapi / resetCurrentTurnState

Method resetCurrentTurnState

cli/src/codex/codexRemoteLauncher.ts:2649–2658  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2647 };
2648
2649 const resetCurrentTurnState = () => {
2650 turnInFlight = false;
2651 allowAnonymousTerminalEvent = false;
2652 this.currentTurnId = null;
2653 permissionHandler.reset();
2654 reasoningProcessor.abort();
2655 diffProcessor.reset();
2656 appServerEventConverter.reset();
2657 session.onThinkingChange(false);
2658 };
2659
2660 const interruptActiveTurn = async () => {
2661 suppressReadyForInterruptedTurn(this.currentTurnId);

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
abortMethod · 0.45

Tested by

no test coverage detected