Skip to content

[BUG] (UI) Clicking 'Add Tools & Agents' submits the agent form #1851

@kimsehwan96

Description

@kimsehwan96

📋 Prerequisites

  • I have searched the existing issues to avoid creating a duplicate
  • By submitting this issue, you agree to follow our Code of Conduct
  • I am using the latest version of the software
  • I have tried to clear cache/cookies or used incognito mode (if ui-related)
  • I can consistently reproduce this issue

🎯 Affected Service(s)

UI Service

🚦 Impact/Severity

Minor inconvenience

🐛 Bug Description

On the agent form page (/agents/new, used for both creating and editing an Agent via the ?edit=true query), clicking the "Add Tools & Agents" button — or the per-tool remove X button when a tool is already selected — submits the surrounding form instead of opening the tool selector. The submit handler runs (createNewAgent on new, updateAgent on edit) and the user is redirected to /agents.

🔄 Steps To Reproduce

  1. Open /agents/new.
  2. Enter an agent name
  3. Click "Add Tools & Agents"

or

  1. From the agent list, open an existing agent's edit page
  2. Click "Add Tools & Agents"

🤔 Expected Behavior

SelectToolsDialog opens. No navigation. No mutation to the Agent resource.

📱 Actual Behavior

  • SelectToolsDialog never opens.
  • The page navigates to /agents.

💻 Environment

  • Kubernetes Version: 1.33
  • Kubernetes Provider: AWS
  • Browser: 147.0.7727.117(ARM)
  • Application version: v0.9.2

🔧 CLI Bug Report

No response

🔍 Additional Context

No response

📋 Logs

📷 Screenshots

2026-05-12.4.45.36.mov

🙋 Are you willing to contribute?

  • I am willing to submit a PR to fix this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions