From c626678d9a28b59bfee0447da7655729ad15c1ab Mon Sep 17 00:00:00 2001 From: Alex Alecu Date: Wed, 18 Mar 2026 14:12:58 +0200 Subject: [PATCH] feat(cli): add bell() utility for terminal attention requests Write ASCII BEL character to stdout when running in a TTY. Causes dock bounce on macOS, taskbar flash on Windows, and urgency hint on Linux. --- packages/opencode/src/kilocode/bell.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 packages/opencode/src/kilocode/bell.ts diff --git a/packages/opencode/src/kilocode/bell.ts b/packages/opencode/src/kilocode/bell.ts new file mode 100644 index 00000000000..d7ae08a78ec --- /dev/null +++ b/packages/opencode/src/kilocode/bell.ts @@ -0,0 +1,6 @@ +// kilocode_change - new file +export function bell() { + if (process.stdout.isTTY) { + process.stdout.write("\x07") + } +}