Suppress toast notifications for automated executions

Automated executions (started_by gandalf: or scheduler:) no longer
trigger success/failure toast alerts for connected browser users.
Server now includes is_automated flag in command_result broadcasts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 16:26:18 -05:00
parent 937bddbe2f
commit 0fee118d1d
2 changed files with 12 additions and 7 deletions

View File

@@ -2818,11 +2818,13 @@
console.log(`Error: ${data.stderr}`);
}
// Show terminal notification
if (data.success) {
showTerminalNotification('Command completed successfully', 'success');
} else {
showTerminalNotification('Command execution failed', 'error');
// Show terminal notification only for manual executions
if (!data.is_automated) {
if (data.success) {
showTerminalNotification('Command completed successfully', 'success');
} else {
showTerminalNotification('Command execution failed', 'error');
}
}
// If viewing execution details, refresh that specific execution