fix: auto upgrade toast message (#4625)

Co-authored-by: Dax Raad <d@ironbay.co>
Co-authored-by: opencode <opencode@sst.dev>
This commit is contained in:
Ravi Kumar
2025-11-23 03:56:46 +05:30
committed by GitHub
parent 1b692ec7eb
commit b92e8510f9
6 changed files with 45 additions and 4 deletions

View File

@@ -426,6 +426,15 @@ function App() {
})
})
event.on(Installation.Event.UpdateAvailable.type, (evt) => {
toast.show({
variant: "info",
title: "Update Available",
message: `OpenCode v${evt.properties.version} is available. Run 'opencode upgrade' to update manually.`,
duration: 10000,
})
})
return (
<box
width={dimensions().width}