发布

  • [OPIK-5968] [FE] fix: disable Run button and show tooltip when required sandbox inputs are empty (#6484)

    frostbyte_neo 发布于 2026-04-27 10:50:31 +00:00

    • [OPIK-5968] [FE] fix: disable Run button and show tooltip when required sandbox inputs are empty

    Tracks form validity in AgentRunnerInputForm and propagates it up to
    AgentRunnerContent. The Run button is disabled and shows a tooltip
    ("Some required parameters are missing") until all required fields
    are filled in.

    Implements OPIK-5968: [FE] No error message or disabled run button when sandbox inputs are empty

    • refactor(agent-runner): replace watch-based validity with Zod schema + formState.isValid

    Single source of truth for required-field validation: one Zod schema
    drives both submit validation and the Run-button disabled state via
    formState.isValid (mode: onChange), removing the duplicated watch/
    useEffect validity check. Also fixes the initial useState(true) that
    briefly enabled the Run button before the form reported its first state.

    • fix(agent-runner): prettier formatting in AgentRunnerInputForm

    • refactor(agent-runner): unify type normalization across schema, coercion, and render

    下载附件