fix(coding-agent): fixed completion notification to only send when interactive mode is in foreground
- Fixed completion notification to only send when interactive mode is in foreground. - Improved completion notification message to include session title when available.
This commit is contained in:
@@ -1484,11 +1484,14 @@ export class InteractiveMode {
|
||||
}
|
||||
|
||||
private sendCompletionNotification(): void {
|
||||
if (this.isBackgrounded === false) return;
|
||||
if (isNotificationSuppressed()) return;
|
||||
const method = this.settingsManager.getNotificationOnComplete();
|
||||
if (method === "off") return;
|
||||
const protocol = method === "auto" ? detectNotificationProtocol() : method;
|
||||
sendNotification(protocol, "Agent complete");
|
||||
const title = this.sessionManager.getSessionTitle();
|
||||
const message = title ? `${title}: Complete` : "Complete";
|
||||
sendNotification(protocol, message);
|
||||
}
|
||||
|
||||
/** Extract text content from a user message */
|
||||
|
||||
Reference in New Issue
Block a user