Skip to content

Commit 5cd7ef6

Browse files
committed
add chat settings to disable terminal notifications
1 parent 0942b01 commit 5cd7ef6

File tree

1 file changed

+4
-1
lines changed
  • crates/q_cli/src/cli/chat

1 file changed

+4
-1
lines changed

crates/q_cli/src/cli/chat/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,10 @@ where
16901690

16911691
if self.interactive {
16921692
// Play notification bell when response is complete
1693-
play_notification_bell();
1693+
// Use the chat context's settings to determine if notifications are enabled
1694+
if self.settings.get_bool_or("chat.enableNotifications", true) {
1695+
play_notification_bell();
1696+
}
16941697
queue!(self.output, style::ResetColor, style::SetAttribute(Attribute::Reset))?;
16951698
execute!(self.output, style::Print("\n"))?;
16961699

0 commit comments

Comments
 (0)