Skip to content

Remove deleted agent provision configs during component updates#3473

Merged
noise64 merged 5 commits into
mainfrom
fix-agent-delete-provision-config-handling
May 19, 2026
Merged

Remove deleted agent provision configs during component updates#3473
noise64 merged 5 commits into
mainfrom
fix-agent-delete-provision-config-handling

Conversation

@noise64
Copy link
Copy Markdown
Contributor

@noise64 noise64 commented May 19, 2026

Resolves #3446 + adds invariant checks before saving metadata

@noise64 noise64 marked this pull request as ready for review May 19, 2026 13:50
#[error("Multiple agent types with the same name: {0}")]
DuplicateAgentTypeName(AgentTypeName),
#[error(
"Agent type '{0}' is referenced in provision config but not declared in the component's agent types"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The reason why this error was so confusing, I think, is that the term "provision config" is never shown to the user anywhere else (or is it)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agree, it should be an internal name only. On the other hand, this is a "should not happen" error, meaning either CLI or server side bug, not fixable by the user.

@noise64 noise64 enabled auto-merge (squash) May 19, 2026 16:05
@noise64 noise64 merged commit cce2e5d into main May 19, 2026
51 checks passed
@noise64 noise64 deleted the fix-agent-delete-provision-config-handling branch May 19, 2026 18:59
@github-actions github-actions Bot locked and limited conversation to collaborators May 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy failure when deploying then changing the initial template and deploying again

3 participants