Skip to content

TUI: dialog-skill.tsx calls dialog.setSize during render #56138

Closed as not planned

Description

@Addin

Summary

dialog-skill.tsx calls dialog.setSize("large") during the render body.

Root cause

packages/tui/src/component/dialog-skill.tsx:19:

export function DialogSkill(props: DialogSkillProps) {
  const dialog = useDialog()
  ...
  dialog.setSize("large")  // <-- side effect during render

Suggested fix

Move to onMount.

Activity

  1. opencode-agent commented on Oct 16, 2026

    @opencode-agent
    Contributor

    Thanks for the report! You're right that DialogSkill calls dialog.setSize("large") straight from the component body (packages/tui/src/component/dialog-skill.tsx:19). Several other dialogs make the same call inside onMount, so moving it there would make the code consistent.

    setSize only writes to the dialog store, and Solid runs component bodies untracked, so this shouldn't cause any visible problem today. That's why we're treating it as a cleanup/improvement rather than a bug. If you've actually seen something go wrong because of it (wrong dialog size, flicker, a warning), please describe it here.

    Related reports of the same pattern in other files:

    Maintainers will consider this, probably as one cleanup together with the related issues above.

  2. neriousy commented on Oct 20, 2026

    @neriousy
    Member

    Thanks for reviewing the code. This report proposes moving the skill dialog's size setup but doesn't show a concrete failure or user-facing impact, so we're closing it. If you've observed a problem, please share the steps and impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions