tui: fix focus management and dialog interactions

This commit is contained in:
Dax Raad
2025-11-02 19:07:22 -05:00
parent f68374ad22
commit f42e1c6375
7 changed files with 12 additions and 44 deletions

View File

@@ -20,6 +20,7 @@ const CHANNEL =
(await $`git branch --show-current`.text().then((x) => x.trim()))
const IS_PREVIEW = CHANNEL !== "latest"
const VERSION = await (async () => {
if (process.env["OPENCODE_VERSION"]) return process.env["OPENCODE_VERSION"]
if (IS_PREVIEW)
return `0.0.0-${CHANNEL}-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
const version = await fetch("https://registry.npmjs.org/opencode-ai/latest")