GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: prevent 1 from showing when preparing write · toastdriven/opencode@a50ab4b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/opencode/src/cli/cmd/tui/routes/session
    • index.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/cli/cmd/tui/routes/session/index.tsx‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
+14-10Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,20 +1423,24 @@ ToolRegistry.register<typeof WriteTool>({
14231423
return props.metadata.diagnostics?.[filePath] ?? []
14241424
})
14251425

1426+
const done = !!props.input.filePath
1427+
14261428
return (
14271429
<>
1428-
<ToolTitle icon="←" fallback="Preparing write..." when={props.input.filePath}>
1430+
<ToolTitle icon="←" fallback="Preparing write..." when={done}>
14291431
Wrote {props.input.filePath}
14301432
</ToolTitle>
1431-
<line_number fg={theme.textMuted} minWidth={3} paddingRight={1}>
1432-
<code
1433-
conceal={false}
1434-
fg={theme.text}
1435-
filetype={filetype(props.input.filePath!)}
1436-
syntaxStyle={syntax()}
1437-
content={code()}
1438-
/>
1439-
</line_number>
1433+
<Show when={done}>
1434+
<line_number fg={theme.textMuted} minWidth={3} paddingRight={1}>
1435+
<code
1436+
conceal={false}
1437+
fg={theme.text}
1438+
filetype={filetype(props.input.filePath!)}
1439+
syntaxStyle={syntax()}
1440+
content={code()}
1441+
/>
1442+
</line_number>
1443+
</Show>
14401444
<Show when={diagnostics().length}>
14411445
<For each={diagnostics()}>
14421446
{(diagnostic) => (

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.