Browse Source

Revert "feat: add version to session header and /status dialog (#8802)"

This reverts commit ac54535486f3345009157a35ff1867196a3b132d.
Dax Raad 2 weeks ago
parent
commit
63cd763418

+ 0 - 2
packages/opencode/src/cli/cmd/tui/component/dialog-status.tsx

@@ -4,7 +4,6 @@ import { useTheme } from "../context/theme"
 import { useDialog } from "@tui/ui/dialog"
 import { useSync } from "@tui/context/sync"
 import { For, Match, Switch, Show, createMemo } from "solid-js"
-import { Installation } from "@/installation"
 
 export type DialogStatusProps = {}
 
@@ -50,7 +49,6 @@ export function DialogStatus() {
           esc
         </text>
       </box>
-      <text fg={theme.textMuted}>OpenCode v{Installation.VERSION}</text>
       <Show when={Object.keys(sync.data.mcp).length > 0} fallback={<text fg={theme.text}>No MCP Servers</text>}>
         <box>
           <text fg={theme.text}>{Object.keys(sync.data.mcp).length} MCP Servers</text>

+ 2 - 9
packages/opencode/src/cli/cmd/tui/routes/session/header.tsx

@@ -7,7 +7,6 @@ import { SplitBorder } from "@tui/component/border"
 import type { AssistantMessage, Session } from "@opencode-ai/sdk/v2"
 import { useCommandDialog } from "@tui/component/dialog-command"
 import { useKeybind } from "../../context/keybind"
-import { Installation } from "@/installation"
 import { useTerminalDimensions } from "@opentui/solid"
 
 const Title = (props: { session: Accessor<Session> }) => {
@@ -87,10 +86,7 @@ export function Header() {
                 <text fg={theme.text}>
                   <b>Subagent session</b>
                 </text>
-                <box flexDirection="row" gap={1} flexShrink={0}>
-                  <ContextInfo context={context} cost={cost} />
-                  <text fg={theme.textMuted}>v{Installation.VERSION}</text>
-                </box>
+                <ContextInfo context={context} cost={cost} />
               </box>
               <box flexDirection="row" gap={2}>
                 <box
@@ -129,10 +125,7 @@ export function Header() {
           <Match when={true}>
             <box flexDirection={narrow() ? "column" : "row"} justifyContent="space-between" gap={1}>
               <Title session={session} />
-              <box flexDirection="row" gap={1} flexShrink={0}>
-                <ContextInfo context={context} cost={cost} />
-                <text fg={theme.textMuted}>v{Installation.VERSION}</text>
-              </box>
+              <ContextInfo context={context} cost={cost} />
             </box>
           </Match>
         </Switch>