diff --git a/packages/tui/src/app.tsx b/packages/tui/src/app.tsx index 43136e017e..e469f84600 100644 --- a/packages/tui/src/app.tsx +++ b/packages/tui/src/app.tsx @@ -197,17 +197,6 @@ export const run = Effect.fn("Tui.run")(function* (input: TuiInput) { targetFps: 60, gatherStats: false, exitOnCtrlC: false, - exitSignals: [ - "SIGINT", - "SIGTERM", - "SIGQUIT", - "SIGABRT", - "SIGHUP", - // Interactive stdout cannot break as a pipe, but Wayland clipboard provider pipes can. - ...(process.stdout.isTTY ? [] : (["SIGPIPE"] as const)), - "SIGBREAK", - "SIGBUS", - ], useKittyKeyboard: {}, autoFocus: false, openConsoleOnError: false, diff --git a/packages/tui/test/app-lifecycle.test.tsx b/packages/tui/test/app-lifecycle.test.tsx index 98920dbdee..5279815665 100644 --- a/packages/tui/test/app-lifecycle.test.tsx +++ b/packages/tui/test/app-lifecycle.test.tsx @@ -30,7 +30,6 @@ async function mockOpenTuiClipboard( } = {}, ) { const calls = { - renderer: [] as Parameters[0][], host: [] as (HostClipboardOptions | undefined)[], adapter: [] as RendererClipboardBoundary[], service: [] as ClipboardOptions[], @@ -58,10 +57,7 @@ async function mockOpenTuiClipboard( mock.module("@opentui/core", () => ({ ...openTui, - createCliRenderer: async (input: Parameters[0]) => { - calls.renderer.push(input) - return renderer - }, + createCliRenderer: async () => renderer, createHostClipboard: (input?: HostClipboardOptions) => { if (options.constructionError) throw options.constructionError calls.host.push(input) @@ -165,8 +161,6 @@ test("SIGHUP clears title and disposes scoped resources once", async () => { ]) expect(clipboard.adapter).toEqual([setup.renderer]) expect(clipboard.service).toHaveLength(1) - expect(clipboard.renderer[0]?.exitSignals).toContain("SIGHUP") - expect(clipboard.renderer[0]?.exitSignals?.includes("SIGPIPE")).toBe(process.stdout.isTTY !== true) expect(clipboard.dispose).toBe(1) expect(clipboard.hostDispose).toBe(1) expect(process.listeners("SIGHUP").every((listener) => listeners.includes(listener))).toBe(true)