GeezerVison is showing github.com — fix(tui): prevent duplicate renderable IDs (#32110) · rodboev/opencode@fff0ec2
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -202,7 +202,6 @@ function match<T extends PanelEntry>(query: string, entries: T[]) { | 202 | 202 | } | 203 | 203 |
| 204 | 204 | function PanelShell(props: { | 205 | | - id: string | 206 | 205 | title: string | 207 | 206 | countVisible?: boolean | 208 | 207 | query: string | @@ -279,7 +278,7 @@ function PanelShell(props: { | 279 | 278 | </> | 280 | 279 | ) | 281 | 280 | 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}> | 283 | 282 | {minimal() ? ( | 284 | 283 | <box width="100%" flexDirection="column" border={false} backgroundColor="transparent" flexShrink={0}> | 285 | 284 | {content} | @@ -299,7 +298,6 @@ function PanelShell(props: { | 299 | 298 | )} | 300 | 299 | {minimal() ? ( | 301 | 300 | <box | 302 | | - id={`${props.id}-bottom`} | 303 | 301 | width="100%" | 304 | 302 | height={1} | 305 | 303 | border={false} | @@ -317,7 +315,6 @@ function PanelShell(props: { | 317 | 315 | </box> | 318 | 316 | ) : ( | 319 | 317 | <box | 320 | | - id={`${props.id}-bottom`} | 321 | 318 | width="100%" | 322 | 319 | height={1} | 323 | 320 | border={["left"]} | @@ -549,7 +546,6 @@ export function RunCommandMenuBody(props: { | 549 | 546 |
| 550 | 547 | return ( | 551 | 548 | <PanelShell | 552 | | - id="run-direct-footer-command-panel" | 553 | 549 | title="Commands" | 554 | 550 | countVisible={false} | 555 | 551 | query={query()} | @@ -565,7 +561,6 @@ export function RunCommandMenuBody(props: { | 565 | 561 | chrome="minimal" | 566 | 562 | > | 567 | 563 | <RunFooterMenu | 568 | | - id="run-direct-footer-command-list" | 569 | 564 | theme={props.theme} | 570 | 565 | items={items} | 571 | 566 | selected={menu.selected} | @@ -649,7 +644,6 @@ export function RunSubagentSelectBody(props: { | 649 | 644 |
| 650 | 645 | return ( | 651 | 646 | <PanelShell | 652 | | - id="run-direct-footer-subagent-panel" | 653 | 647 | title="Select subagent" | 654 | 648 | query={query()} | 655 | 649 | count={items().length} | @@ -664,7 +658,6 @@ export function RunSubagentSelectBody(props: { | 664 | 658 | chrome="minimal" | 665 | 659 | > | 666 | 660 | <RunFooterMenu | 667 | | - id="run-direct-footer-subagent-list" | 668 | 661 | theme={props.theme} | 669 | 662 | items={items} | 670 | 663 | selected={menu.selected} | @@ -748,7 +741,6 @@ export function RunQueuedPromptSelectBody(props: { | 748 | 741 |
| 749 | 742 | return ( | 750 | 743 | <PanelShell | 751 | | - id="run-direct-footer-queued-panel" | 752 | 744 | title="Queued prompts" | 753 | 745 | query={query()} | 754 | 746 | count={items().length} | @@ -763,7 +755,6 @@ export function RunQueuedPromptSelectBody(props: { | 763 | 755 | chrome="minimal" | 764 | 756 | > | 765 | 757 | <RunFooterMenu | 766 | | - id="run-direct-footer-queued-list" | 767 | 758 | theme={props.theme} | 768 | 759 | items={items} | 769 | 760 | selected={menu.selected} | @@ -827,7 +818,6 @@ export function RunSkillSelectBody(props: { | 827 | 818 |
| 828 | 819 | return ( | 829 | 820 | <PanelShell | 830 | | - id="run-direct-footer-skill-panel" | 831 | 821 | title="Skills" | 832 | 822 | query={query()} | 833 | 823 | count={items().length} | @@ -842,7 +832,6 @@ export function RunSkillSelectBody(props: { | 842 | 832 | chrome="minimal" | 843 | 833 | > | 844 | 834 | <RunFooterMenu | 845 | | - id="run-direct-footer-skill-list" | 846 | 835 | theme={props.theme} | 847 | 836 | items={items} | 848 | 837 | selected={menu.selected} | @@ -927,7 +916,6 @@ export function RunVariantSelectBody(props: { | 927 | 916 |
| 928 | 917 | return ( | 929 | 918 | <PanelShell | 930 | | - id="run-direct-footer-variant-panel" | 931 | 919 | title="Select variant" | 932 | 920 | query={query()} | 933 | 921 | count={items().length} | @@ -942,7 +930,6 @@ export function RunVariantSelectBody(props: { | 942 | 930 | chrome="minimal" | 943 | 931 | > | 944 | 932 | <RunFooterMenu | 945 | | - id="run-direct-footer-variant-list" | 946 | 933 | theme={props.theme} | 947 | 934 | items={items} | 948 | 935 | selected={menu.selected} | @@ -1050,7 +1037,6 @@ export function RunModelSelectBody(props: { | 1050 | 1037 |
| 1051 | 1038 | return ( | 1052 | 1039 | <PanelShell | 1053 | | - id="run-direct-footer-model-panel" | 1054 | 1040 | title="Select model" | 1055 | 1041 | query={query()} | 1056 | 1042 | count={items().length} | @@ -1065,7 +1051,6 @@ export function RunModelSelectBody(props: { | 1065 | 1051 | chrome="minimal" | 1066 | 1052 | > | 1067 | 1053 | <RunFooterMenu | 1068 | | - id="run-direct-footer-model-list" | 1069 | 1054 | theme={props.theme} | 1070 | 1055 | items={items} | 1071 | 1056 | selected={menu.selected} | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -115,7 +115,6 @@ export function createFooterMenuState(input: { count: Accessor<number>; limit?: | 115 | 115 | } | 116 | 116 |
| 117 | 117 | export function RunFooterMenu(props: { | 118 | | - id?: string | 119 | 118 | theme: Accessor<RunFooterTheme> | 120 | 119 | items: Accessor<RunFooterMenuItem[]> | 121 | 120 | selected: Accessor<number> | @@ -226,7 +225,6 @@ export function RunFooterMenu(props: { | 226 | 225 | } | 227 | 226 | return ( | 228 | 227 | <box | 229 | | - id={props.id ?? "run-direct-footer-menu"} | 230 | 228 | width="100%" | 231 | 229 | height={props.rows()} | 232 | 230 | backgroundColor={props.background ? props.theme().shade : transparent} | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -96,7 +96,6 @@ export function RejectField(props: { | 96 | 96 |
| 97 | 97 | return ( | 98 | 98 | <textarea | 99 | | - id="run-direct-footer-permission-reject" | 100 | 99 | width="100%" | 101 | 100 | minHeight={1} | 102 | 101 | maxHeight={3} | @@ -259,14 +258,12 @@ export function RunPermissionBody(props: { | 259 | 258 |
| 260 | 259 | return ( | 261 | 260 | <box | 262 | | - id="run-direct-footer-permission-body" | 263 | 261 | width="100%" | 264 | 262 | height="100%" | 265 | 263 | flexDirection="column" | 266 | 264 | backgroundColor={props.theme.surface} | 267 | 265 | > | 268 | 266 | <box | 269 | | - id="run-direct-footer-permission-head" | 270 | 267 | flexDirection="column" | 271 | 268 | gap={1} | 272 | 269 | paddingLeft={1} | @@ -303,7 +300,6 @@ export function RunPermissionBody(props: { | 303 | 300 | fallback={ | 304 | 301 | <box width="100%" flexGrow={1} flexShrink={1} justifyContent="flex-end"> | 305 | 302 | <box | 306 | | - id="run-direct-footer-permission-reject-bar" | 307 | 303 | flexDirection={narrow() ? "column" : "row"} | 308 | 304 | flexShrink={0} | 309 | 305 | backgroundColor={props.theme.line} | @@ -433,7 +429,6 @@ export function RunPermissionBody(props: { | 433 | 429 | </box> | 434 | 430 |
| 435 | 431 | <box | 436 | | - id="run-direct-footer-permission-actions" | 437 | 432 | flexDirection={narrow() ? "column" : "row"} | 438 | 433 | flexShrink={0} | 439 | 434 | backgroundColor={props.theme.pane} | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -250,10 +250,9 @@ export function RunPromptBody(props: { | 250 | 250 | }) | 251 | 251 |
| 252 | 252 | 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}> | 255 | 255 | <textarea | 256 | | - id="run-direct-footer-composer" | 257 | 256 | width="100%" | 258 | 257 | minHeight={TEXTAREA_MIN_ROWS} | 259 | 258 | maxHeight={TEXTAREA_MAX_ROWS} | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -268,9 +268,8 @@ export function RunQuestionBody(props: { | 268 | 268 | }) | 269 | 269 |
| 270 | 270 | return ( | 271 | | - <box id="run-direct-footer-question-body" width="100%" height="100%" flexDirection="column"> | | 271 | + <box width="100%" height="100%" flexDirection="column"> | 272 | 272 | <box | 273 | | - id="run-direct-footer-question-panel" | 274 | 273 | flexDirection="column" | 275 | 274 | gap={1} | 276 | 275 | paddingLeft={1} | @@ -281,14 +280,13 @@ export function RunQuestionBody(props: { | 281 | 280 | backgroundColor={props.theme.surface} | 282 | 281 | > | 283 | 282 | <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}> | 285 | 284 | <For each={props.request.questions}> | 286 | 285 | {(item, index) => { | 287 | 286 | const active = () => state().tab === index() | 288 | 287 | const answered = () => (state().answers[index()]?.length ?? 0) > 0 | 289 | 288 | return ( | 290 | 289 | <box | 291 | | - id={`run-direct-footer-question-tab-${index()}`} | 292 | 290 | paddingLeft={1} | 293 | 291 | paddingRight={1} | 294 | 292 | backgroundColor={active() ? props.theme.highlight : props.theme.surface} | @@ -304,7 +302,6 @@ export function RunQuestionBody(props: { | 304 | 302 | }} | 305 | 303 | </For> | 306 | 304 | <box | 307 | | - id="run-direct-footer-question-tab-confirm" | 308 | 305 | paddingLeft={1} | 309 | 306 | paddingRight={1} | 310 | 307 | backgroundColor={confirm() ? props.theme.highlight : props.theme.surface} | @@ -382,7 +379,6 @@ export function RunQuestionBody(props: { | 382 | 379 | const hit = () => state().answers[state().tab]?.includes(item.label) ?? false | 383 | 380 | return ( | 384 | 381 | <box | 385 | | - id={`run-direct-footer-question-option-${index()}`} | 386 | 382 | flexDirection="column" | 387 | 383 | gap={0} | 388 | 384 | onMouseOver={() => { | @@ -428,7 +424,6 @@ export function RunQuestionBody(props: { | 428 | 424 |
| 429 | 425 | <Show when={questionCustom(props.request, state())}> | 430 | 426 | <box | 431 | | - id="run-direct-footer-question-option-custom" | 432 | 427 | flexDirection="column" | 433 | 428 | gap={0} | 434 | 429 | onMouseOver={() => { | @@ -480,7 +475,6 @@ export function RunQuestionBody(props: { | 480 | 475 | > | 481 | 476 | <box paddingLeft={3}> | 482 | 477 | <textarea | 483 | | - id="run-direct-footer-question-custom" | 484 | 478 | width="100%" | 485 | 479 | minHeight={1} | 486 | 480 | maxHeight={4} | @@ -518,7 +512,6 @@ export function RunQuestionBody(props: { | 518 | 512 | </box> | 519 | 513 |
| 520 | 514 | <box | 521 | | - id="run-direct-footer-question-actions" | 522 | 515 | flexDirection={narrow() ? "column" : "row"} | 523 | 516 | flexShrink={0} | 524 | 517 | gap={1} | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -120,7 +120,6 @@ export function RunFooterSubagentBody(props: { | 120 | 120 |
| 121 | 121 | return ( | 122 | 122 | <box | 123 | | - id="run-direct-footer-subagent" | 124 | 123 | width="100%" | 125 | 124 | height="100%" | 126 | 125 | flexDirection="column" | |
|