MCPcopy Index your code
hub / github.com/anomalyco/opencode / armExitTimer

Method armExitTimer

packages/opencode/src/cli/cmd/run/footer.ts:952–962  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

950 }
951
952 private armExitTimer(): void {
953 this.clearExitTimer()
954 this.exitTimeout = setTimeout(() => {
955 this.exitTimeout = undefined
956 if (this.isGone || this.isClosed) {
957 return
958 }
959
960 this.patch({ exit: 0 })
961 }, 5000)
962 }
963
964 // Two-press interrupt: first press shows a hint ("esc again to interrupt"),
965 // second press within 5 seconds fires onInterrupt. The timer resets the

Callers 1

RunFooterClass · 0.95

Calls 2

clearExitTimerMethod · 0.95
patchMethod · 0.95

Tested by

no test coverage detected