MCPcopy Create free account
hub / github.com/anomalyco/opencode / installUpdate

Function installUpdate

packages/app/src/pages/error.tsx:252–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 }
251
252 async function installUpdate() {
253 await platform.updater
254 ?.install()
255 .then(() => setStore("actionError", undefined))
256 .catch((err) => {
257 setStore("actionError", formatError(err, language.t))
258 })
259 }
260
261 const updateVersion = () => {
262 const state = platform.updater?.state()

Callers

nothing calls this directly

Calls 2

setStoreFunction · 0.85
formatErrorFunction · 0.70

Tested by

no test coverage detected