Skip to content

🐛 Kagenti UI does not refresh after deleting the last remaining agent or tool #551

Closed

Description

@cwiklik

Describe the bug

Description

The "Import New Agent" and "Import New Tool" pages fail to refresh the list after deleting an agent or tool when only a single item exists. The deleted item continues to appear in the list as if the deletion did not occur.

Additional Context

Works correctly when: More than one agent or tool is deployed. In this case, deleting an item refreshes the list as expected.
Fails when: Only a single agent or tool is deployed.

This suggests a potential edge case in the refresh logic when the list transitions from one item to zero items.
Affected Pages

  • Import New Agent
  • Import New Tool

Steps To Reproduce

  • Navigate to the "Import New Agent" (or "Import New Tool") page
  • Ensure there is exactly one agent (or tool) deployed
  • Delete the agent (or tool)
  • Observe the list

Expected Behavior

After deletion, the list should refresh and display an empty state (no agents/tools shown).

Additional Context

No response

Activity

  1. cwiklik commented on Jan 30, 2026

    @cwiklik
    ContributorAuthor

    This issue was fixed in PR #552

    Closing

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions