summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-12 20:04:19 -0600
committerAdam <[email protected]>2026-02-12 20:04:36 -0600
commitc9719dff7223aa1fc19540f3cd627c7f40e4bf36 (patch)
tree05032d15edce5b5c0d2cecd0e919b4365b531329 /packages/desktop
parent7f95cc64c57b439f58833d0300a1da93b3b893df (diff)
downloadopencode-c9719dff7223aa1fc19540f3cd627c7f40e4bf36.tar.gz
opencode-c9719dff7223aa1fc19540f3cd627c7f40e4bf36.zip
fix(app): notification should navigate to session
Diffstat (limited to 'packages/desktop')
-rw-r--r--packages/desktop/src/index.tsx14
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx
index 620914dd7..ff0a09376 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -1,7 +1,14 @@
// @refresh reload
import { webviewZoom } from "./webview-zoom"
import { render } from "solid-js/web"
-import { AppBaseProviders, AppInterface, PlatformProvider, Platform, useCommand } from "@opencode-ai/app"
+import {
+ AppBaseProviders,
+ AppInterface,
+ PlatformProvider,
+ Platform,
+ useCommand,
+ handleNotificationClick,
+} from "@opencode-ai/app"
import { open, save } from "@tauri-apps/plugin-dialog"
import { getCurrent, onOpenUrl } from "@tauri-apps/plugin-deep-link"
import { openPath as openerOpenPath } from "@tauri-apps/plugin-opener"
@@ -329,10 +336,7 @@ const createPlatform = (password: Accessor<string | null>): Platform => {
void win.show().catch(() => undefined)
void win.unminimize().catch(() => undefined)
void win.setFocus().catch(() => undefined)
- if (href) {
- window.history.pushState(null, "", href)
- window.dispatchEvent(new PopStateEvent("popstate"))
- }
+ handleNotificationClick(href)
notification.close()
}
})