From 6b69d0f6fdfc38bb6986fd64b53a323cb43f28fe Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Tue, 15 Sep 2026 14:31:51 +0530 Subject: [PATCH] fix(cli): /bg completion rings through _ring_bell like every other bell site The side-worker (/bg, /btw, /login) hand-rolled its bell with a bare sys.stdout '\a' and so never emitted the OSC 9 / OSC 777 desktop notification the other end-of-work sites get. Route it through _ring_bell, which also owns the bell_on_complete gate and the app-loop serialization. --- hermes_cli/cli_commands_mixin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hermes_cli/cli_commands_mixin.py b/hermes_cli/cli_commands_mixin.py index bca45fcf51..d0e050471d 100644 --- a/hermes_cli/cli_commands_mixin.py +++ b/hermes_cli/cli_commands_mixin.py @@ -1999,9 +1999,8 @@ class CLICommandsMixin: _print_side_result_panel(self, header_lines=header_lines, body=body, title_suffix=title_suffix, empty_note=empty_note, console=console) - if bell and self.bell_on_complete: - sys.stdout.write("\a") - sys.stdout.flush() + if bell: + self._ring_bell(context=f"{fail_label} complete") except Exception as e: _refresh_tui_before_print(self) line = f" ❌ {fail_label} failed: {e}"