Skip to content

Conversation

@syedazeez337
Copy link
Contributor

Agent deletion was failing to soft-delete database records because handleAgentDeletion used raw namespace/name format while upsertAgent stored agents with the Python-converted format (namespace__NS__name).

Fixes #1175

Agent deletion was failing to soft-delete database records because
handleAgentDeletion used raw namespace/name format while upsertAgent
stored agents with the Python-converted format (namespace__NS__name).

Fixes kagent-dev#1175

Signed-off-by: Azeez Syed <syedazeez337@gmail.com>
Copy link
Contributor

@EItanya EItanya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thanks for the contribution!

@syedazeez337
Copy link
Contributor Author

I will check the failing tests and get back

@EItanya
Copy link
Contributor

EItanya commented Dec 29, 2025

I will check the failing tests and get back

I'm 99% sure that failure is either a flake or something unrelated to your change. Once the rest of the tests finish I will try to run it again.

@EItanya EItanya merged commit acd7a55 into kagent-dev:main Dec 29, 2025
16 of 17 checks passed
@EItanya
Copy link
Contributor

EItanya commented Dec 29, 2025

Merged this because the CI issue was fixed in #1182

@syedazeez337
Copy link
Contributor Author

Thank you

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Agent deletion leaves orphaned database records

2 participants