Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Guard OpenCode bell plugin in ACP mode (#60507)

Eli Starkbc990753733d
diff --git a/docs/src/ai/terminal-threads.md b/docs/src/ai/terminal-threads.md
index dd4d454b706..a44759a2385 100644
--- a/docs/src/ai/terminal-threads.md
+++ b/docs/src/ai/terminal-threads.md
@@ -116,6 +116,8 @@ Create `.opencode/plugins/zed-bell.js` in your project, or `~/.config/opencode/p
export const ZedBell = async () => {
return {
event: async ({ event }) => {
+ if (process.env.OPENCODE_CLIENT === "acp") return;
+
if (event.type === "session.idle" || event.type === "permission.asked") {
process.stdout.write("\x07");
}