MCPcopy Create free account
hub / github.com/Noumena-Network/code / withInteractive

Function withInteractive

src/utils/fullscreen.tmux.test.ts:56–64  ·  view source on GitHub ↗
(fn: () => Promise<T> | T)

Source from the content-addressed store, hash-verified

54}
55
56async function withInteractive<T>(fn: () => Promise<T> | T): Promise<T> {
57 const previous = getIsInteractive()
58 setIsInteractive(true)
59 try {
60 return await fn()
61 } finally {
62 setIsInteractive(previous)
63 }
64}
65
66describe('fullscreen tmux policy', () => {
67 it('auto-disables fullscreen in tmux control-mode heuristic environments', async () => {

Callers 1

Calls 2

getIsInteractiveFunction · 0.85
setIsInteractiveFunction · 0.85

Tested by

no test coverage detected