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(tui): prevent duplicate renderable IDs (#32110) · rodboev/opencode@fff0ec2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • opencode
      • src/cli/cmd/run
        • footer.command.tsx
        • footer.menu.tsx
        • footer.permission.tsx
        • footer.prompt.tsx
        • footer.question.tsx
        • footer.subagent.tsx
        • footer.view.tsx
        • scrollback.surface.ts
        • scrollback.writer.tsx
        • splash.ts
      • test/cli/run
        • footer.view.test.tsx
    • tui
      • src
        • feature-plugins/system
          • diff-viewer.tsx
        • routes/session
          • index.tsx
        • ui
          • dialog-select.tsx
      • test/cli/tui
        • diff-viewer.test.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/cli/cmd/run/footer.command.tsx‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/run/footer.command.tsx
+1-16Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ function match<T extends PanelEntry>(query: string, entries: T[]) {
202202
}
203203

204204
function PanelShell(props: {
205-
id: string
206205
title: string
207206
countVisible?: boolean
208207
query: string
@@ -279,7 +278,7 @@ function PanelShell(props: {
279278
</>
280279
)
281280
return (
282-
<box id={props.id} width="100%" flexDirection="column" border={false} backgroundColor="transparent" flexShrink={0}>
281+
<box width="100%" flexDirection="column" border={false} backgroundColor="transparent" flexShrink={0}>
283282
{minimal() ? (
284283
<box width="100%" flexDirection="column" border={false} backgroundColor="transparent" flexShrink={0}>
285284
{content}
@@ -299,7 +298,6 @@ function PanelShell(props: {
299298
)}
300299
{minimal() ? (
301300
<box
302-
id={`${props.id}-bottom`}
303301
width="100%"
304302
height={1}
305303
border={false}
@@ -317,7 +315,6 @@ function PanelShell(props: {
317315
</box>
318316
) : (
319317
<box
320-
id={`${props.id}-bottom`}
321318
width="100%"
322319
height={1}
323320
border={["left"]}
@@ -549,7 +546,6 @@ export function RunCommandMenuBody(props: {
549546

550547
return (
551548
<PanelShell
552-
id="run-direct-footer-command-panel"
553549
title="Commands"
554550
countVisible={false}
555551
query={query()}
@@ -565,7 +561,6 @@ export function RunCommandMenuBody(props: {
565561
chrome="minimal"
566562
>
567563
<RunFooterMenu
568-
id="run-direct-footer-command-list"
569564
theme={props.theme}
570565
items={items}
571566
selected={menu.selected}
@@ -649,7 +644,6 @@ export function RunSubagentSelectBody(props: {
649644

650645
return (
651646
<PanelShell
652-
id="run-direct-footer-subagent-panel"
653647
title="Select subagent"
654648
query={query()}
655649
count={items().length}
@@ -664,7 +658,6 @@ export function RunSubagentSelectBody(props: {
664658
chrome="minimal"
665659
>
666660
<RunFooterMenu
667-
id="run-direct-footer-subagent-list"
668661
theme={props.theme}
669662
items={items}
670663
selected={menu.selected}
@@ -748,7 +741,6 @@ export function RunQueuedPromptSelectBody(props: {
748741

749742
return (
750743
<PanelShell
751-
id="run-direct-footer-queued-panel"
752744
title="Queued prompts"
753745
query={query()}
754746
count={items().length}
@@ -763,7 +755,6 @@ export function RunQueuedPromptSelectBody(props: {
763755
chrome="minimal"
764756
>
765757
<RunFooterMenu
766-
id="run-direct-footer-queued-list"
767758
theme={props.theme}
768759
items={items}
769760
selected={menu.selected}
@@ -827,7 +818,6 @@ export function RunSkillSelectBody(props: {
827818

828819
return (
829820
<PanelShell
830-
id="run-direct-footer-skill-panel"
831821
title="Skills"
832822
query={query()}
833823
count={items().length}
@@ -842,7 +832,6 @@ export function RunSkillSelectBody(props: {
842832
chrome="minimal"
843833
>
844834
<RunFooterMenu
845-
id="run-direct-footer-skill-list"
846835
theme={props.theme}
847836
items={items}
848837
selected={menu.selected}
@@ -927,7 +916,6 @@ export function RunVariantSelectBody(props: {
927916

928917
return (
929918
<PanelShell
930-
id="run-direct-footer-variant-panel"
931919
title="Select variant"
932920
query={query()}
933921
count={items().length}
@@ -942,7 +930,6 @@ export function RunVariantSelectBody(props: {
942930
chrome="minimal"
943931
>
944932
<RunFooterMenu
945-
id="run-direct-footer-variant-list"
946933
theme={props.theme}
947934
items={items}
948935
selected={menu.selected}
@@ -1050,7 +1037,6 @@ export function RunModelSelectBody(props: {
10501037

10511038
return (
10521039
<PanelShell
1053-
id="run-direct-footer-model-panel"
10541040
title="Select model"
10551041
query={query()}
10561042
count={items().length}
@@ -1065,7 +1051,6 @@ export function RunModelSelectBody(props: {
10651051
chrome="minimal"
10661052
>
10671053
<RunFooterMenu
1068-
id="run-direct-footer-model-list"
10691054
theme={props.theme}
10701055
items={items}
10711056
selected={menu.selected}
Collapse file

‎packages/opencode/src/cli/cmd/run/footer.menu.tsx‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/run/footer.menu.tsx
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export function createFooterMenuState(input: { count: Accessor<number>; limit?:
115115
}
116116

117117
export function RunFooterMenu(props: {
118-
id?: string
119118
theme: Accessor<RunFooterTheme>
120119
items: Accessor<RunFooterMenuItem[]>
121120
selected: Accessor<number>
@@ -226,7 +225,6 @@ export function RunFooterMenu(props: {
226225
}
227226
return (
228227
<box
229-
id={props.id ?? "run-direct-footer-menu"}
230228
width="100%"
231229
height={props.rows()}
232230
backgroundColor={props.background ? props.theme().shade : transparent}
Collapse file

‎packages/opencode/src/cli/cmd/run/footer.permission.tsx‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/run/footer.permission.tsx
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export function RejectField(props: {
9696

9797
return (
9898
<textarea
99-
id="run-direct-footer-permission-reject"
10099
width="100%"
101100
minHeight={1}
102101
maxHeight={3}
@@ -259,14 +258,12 @@ export function RunPermissionBody(props: {
259258

260259
return (
261260
<box
262-
id="run-direct-footer-permission-body"
263261
width="100%"
264262
height="100%"
265263
flexDirection="column"
266264
backgroundColor={props.theme.surface}
267265
>
268266
<box
269-
id="run-direct-footer-permission-head"
270267
flexDirection="column"
271268
gap={1}
272269
paddingLeft={1}
@@ -303,7 +300,6 @@ export function RunPermissionBody(props: {
303300
fallback={
304301
<box width="100%" flexGrow={1} flexShrink={1} justifyContent="flex-end">
305302
<box
306-
id="run-direct-footer-permission-reject-bar"
307303
flexDirection={narrow() ? "column" : "row"}
308304
flexShrink={0}
309305
backgroundColor={props.theme.line}
@@ -433,7 +429,6 @@ export function RunPermissionBody(props: {
433429
</box>
434430

435431
<box
436-
id="run-direct-footer-permission-actions"
437432
flexDirection={narrow() ? "column" : "row"}
438433
flexShrink={0}
439434
backgroundColor={props.theme.pane}
Collapse file

‎packages/opencode/src/cli/cmd/run/footer.prompt.tsx‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/run/footer.prompt.tsx
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,9 @@ export function RunPromptBody(props: {
250250
})
251251

252252
return (
253-
<box id="run-direct-footer-prompt" width="100%">
254-
<box id="run-direct-footer-input-shell" paddingTop={1} paddingBottom={1} paddingRight={2}>
253+
<box width="100%">
254+
<box paddingTop={1} paddingBottom={1} paddingRight={2}>
255255
<textarea
256-
id="run-direct-footer-composer"
257256
width="100%"
258257
minHeight={TEXTAREA_MIN_ROWS}
259258
maxHeight={TEXTAREA_MAX_ROWS}
Collapse file

‎packages/opencode/src/cli/cmd/run/footer.question.tsx‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/run/footer.question.tsx
+2-9Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,8 @@ export function RunQuestionBody(props: {
268268
})
269269

270270
return (
271-
<box id="run-direct-footer-question-body" width="100%" height="100%" flexDirection="column">
271+
<box width="100%" height="100%" flexDirection="column">
272272
<box
273-
id="run-direct-footer-question-panel"
274273
flexDirection="column"
275274
gap={1}
276275
paddingLeft={1}
@@ -281,14 +280,13 @@ export function RunQuestionBody(props: {
281280
backgroundColor={props.theme.surface}
282281
>
283282
<Show when={!single()}>
284-
<box id="run-direct-footer-question-tabs" flexDirection="row" gap={1} paddingLeft={1} flexShrink={0}>
283+
<box flexDirection="row" gap={1} paddingLeft={1} flexShrink={0}>
285284
<For each={props.request.questions}>
286285
{(item, index) => {
287286
const active = () => state().tab === index()
288287
const answered = () => (state().answers[index()]?.length ?? 0) > 0
289288
return (
290289
<box
291-
id={`run-direct-footer-question-tab-${index()}`}
292290
paddingLeft={1}
293291
paddingRight={1}
294292
backgroundColor={active() ? props.theme.highlight : props.theme.surface}
@@ -304,7 +302,6 @@ export function RunQuestionBody(props: {
304302
}}
305303
</For>
306304
<box
307-
id="run-direct-footer-question-tab-confirm"
308305
paddingLeft={1}
309306
paddingRight={1}
310307
backgroundColor={confirm() ? props.theme.highlight : props.theme.surface}
@@ -382,7 +379,6 @@ export function RunQuestionBody(props: {
382379
const hit = () => state().answers[state().tab]?.includes(item.label) ?? false
383380
return (
384381
<box
385-
id={`run-direct-footer-question-option-${index()}`}
386382
flexDirection="column"
387383
gap={0}
388384
onMouseOver={() => {
@@ -428,7 +424,6 @@ export function RunQuestionBody(props: {
428424

429425
<Show when={questionCustom(props.request, state())}>
430426
<box
431-
id="run-direct-footer-question-option-custom"
432427
flexDirection="column"
433428
gap={0}
434429
onMouseOver={() => {
@@ -480,7 +475,6 @@ export function RunQuestionBody(props: {
480475
>
481476
<box paddingLeft={3}>
482477
<textarea
483-
id="run-direct-footer-question-custom"
484478
width="100%"
485479
minHeight={1}
486480
maxHeight={4}
@@ -518,7 +512,6 @@ export function RunQuestionBody(props: {
518512
</box>
519513

520514
<box
521-
id="run-direct-footer-question-actions"
522515
flexDirection={narrow() ? "column" : "row"}
523516
flexShrink={0}
524517
gap={1}
Collapse file

‎packages/opencode/src/cli/cmd/run/footer.subagent.tsx‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/run/footer.subagent.tsx
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ export function RunFooterSubagentBody(props: {
120120

121121
return (
122122
<box
123-
id="run-direct-footer-subagent"
124123
width="100%"
125124
height="100%"
126125
flexDirection="column"

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.