feat: desktop notification when goose finishes a task (#8647)

Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
This commit is contained in:
Abhijay Jain
2026-04-22 23:26:49 +05:30
committed by GitHub
parent 15cfd127ca
commit ee46794b18
6 changed files with 112 additions and 33 deletions
+2
View File
@@ -147,6 +147,7 @@ type ElectronAPI = {
setSpellcheck: (enable: boolean) => Promise<boolean>;
getSpellcheckState: () => Promise<boolean>;
openNotificationsSettings: () => Promise<boolean>;
isAnyWindowFocused: () => Promise<boolean>;
onMouseBackButtonClicked: (callback: () => void) => void;
offMouseBackButtonClicked: (callback: () => void) => void;
on: (
@@ -267,6 +268,7 @@ const electronAPI: ElectronAPI = {
setSpellcheck: (enable: boolean) => ipcRenderer.invoke('set-spellcheck', enable),
getSpellcheckState: () => ipcRenderer.invoke('get-spellcheck-state'),
openNotificationsSettings: () => ipcRenderer.invoke('open-notifications-settings'),
isAnyWindowFocused: () => ipcRenderer.invoke('is-any-window-focused'),
onMouseBackButtonClicked: (callback: () => void) => {
// Wrapper that ignores the event parameter.
const wrappedCallback = (_event: Electron.IpcRendererEvent) => callback();