@@ -33,8 +33,7 @@ import { createStore, produce, reconcile } from "solid-js/store"
3333import { DragDropProvider , DragDropSensors , DragOverlay , SortableProvider , closestCenter } from "@thisbeyond/solid-dnd"
3434import type { DragEvent } from "@thisbeyond/solid-dnd"
3535import { useProviders } from "@/hooks/use-providers"
36- import { toaster } from "@opencode-ai/ui/toast"
37- import { setV2Toast , showToast , ToastRegion } from "@/utils/toast"
36+ import { dismissToast , setV2Toast , showToast , ToastRegion } from "@/utils/toast"
3837import { useServerSDK } from "@/context/server-sdk"
3938import { normalizeProjectInfo } from "@/context/global-sync/utils"
4039import { clearWorkspaceTerminals } from "@/context/terminal"
@@ -384,7 +383,7 @@ export default function LegacyLayout(props: ParentProps) {
384383 const dismissSessionAlert = ( sessionKey : string ) => {
385384 const toastId = toastBySession . get ( sessionKey )
386385 if ( toastId === undefined ) return
387- toaster . dismiss ( toastId )
386+ dismissToast ( toastId )
388387 toastBySession . delete ( sessionKey )
389388 alertedAtBySession . delete ( sessionKey )
390389 }
@@ -1459,7 +1458,7 @@ export default function LegacyLayout(props: ParentProps) {
14591458 title : language . t ( "workspace.resetting.title" ) ,
14601459 description : language . t ( "workspace.resetting.description" ) ,
14611460 } )
1462- const dismiss = ( ) => toaster . dismiss ( progress )
1461+ const dismiss = ( ) => dismissToast ( progress )
14631462
14641463 const sessions = await listAllSessions ( serverSDK ( ) . api . session , { directory, order : "desc" } ) . catch ( ( ) => [ ] )
14651464
@@ -2450,7 +2449,7 @@ function UpdateAvailableToast(props: {
24502449
24512450 onCleanup ( ( ) => {
24522451 if ( toastId === undefined ) return
2453- toaster . dismiss ( toastId )
2452+ dismissToast ( toastId )
24542453 } )
24552454
24562455 return null
0 commit comments