Skip to content

[BUG] Artifact Toolkit - Test Settings: create_file tool fails when previously filled field is cleared #3632

@MarunNexit

Description

@MarunNexit

Description of Problem

When using the create_file tool in Test Settings section in Artifact Toolkit, if a user enters a value into a field and then clears it, the tool still includes that field in the outgoing request with an empty string ("").

This behavior exists across most tool fields, but it causes a critical issue in the create_file tool because it contains mutually exclusive fields: (These two fields cannot be sent together in the same request)

  • filedata
  • filepath

Steps to Reproduce

  1. Open Artifact Toolkit -> Test Settings section.
  2. Select the create_file tool.
  3. Enter file name.
  4. Enter a value in the filedata field.
  5. Clear the filedata field.
  6. Enter a value in the filepath field.
  7. Execute the tool.
  8. Inspect the outgoing request.

Expected Result

  • The tool should execute successfully without triggering mutually exclusive field validation errors.

Actual Result

  • Cleared fields are still included in the request as empty strings ("").
  • Both filedata and filepath are sent together (one as "").
  • The system returns an error indicating that both fields cannot be set simultaneously.

Additional Notes

  • The issue becomes critical specifically for tools with mutually exclusive fields like create_file.
  • Only reloading page/swithing tools help to clear the fields
Image

Metadata

Metadata

Assignees

Labels

eng:frontendFrontend engineering work (web UI/client).feat:artifactsArtifacts feature.feat:toolkitsToolkits feature: tool definitions, toolkit management, tool execution/runtime.

Type

Projects

Status

Bugs

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions