🐛 Bugfix: Support viewing whether the agent version has been published as an A2A agent#2863
Merged
🐛 Bugfix: Support viewing whether the agent version has been published as an A2A agent#2863
Conversation
…as an A2A agent (cherry picked from commit aa13c65)
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an is_a2a flag to agent version metadata so the system can track (and surface in the UI) whether a published version was released as an A2A Server agent.
Changes:
- Add
is_a2acolumn toag_tenant_agent_version_t(init SQL + incremental migration). - Persist
is_a2aon publish in the backend and expose it via backend models. - Plumb
is_a2athrough frontend types and prefill it in the version edit modal.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| k8s/helm/nexent/charts/nexent-common/files/init.sql | Adds is_a2a column + comment to initial schema. |
| docker/init.sql | Adds is_a2a column + comment to Docker initial schema. |
| docker/sql/v2.0.2_0425_add_is_a2a_to_ag_tenant_agent_version_t.sql | Adds incremental migration for existing DBs. |
| backend/database/db_models.py | Adds is_a2a field to SQLAlchemy AgentVersion model. |
| backend/services/agent_version_service.py | Writes is_a2a when publishing a version. |
| backend/consts/model.py | Adds is_a2a to version list/detail response models. |
| frontend/services/agentVersionService.ts | Extends AgentVersion TS type with is_a2a. |
| frontend/app/[locale]/agents/versions/AgentVersionPubulishModal.tsx | Prefills and displays A2A flag in the publish/edit modal via component state. |
| frontend/app/[locale]/agents/AgentVersionCard.tsx | Passes is_a2a into modal initial values when editing. |
Comments suppressed due to low confidence (1)
frontend/app/[locale]/agents/versions/AgentVersionPubulishModal.tsx:243
- The A2A switch is still interactive in edit mode, but the update flow ignores it (handleUpdate only sends version_name/release_note). This makes the UI misleading because toggling the switch won’t persist. Either disable/read-only the switch when
isEditis true, or extend the update request/API to accept and save this flag (if you intend it to be editable).
<Form.Item
label={t("agent.version.publishAsA2AAgent")}
valuePropName="checked"
>
<Switch
checked={isA2AAgent}
onChange={(checked) => setIsA2AAgent(checked)}
/>
</Form.Item>
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
WMC001
approved these changes
Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当用户点击编辑,可以看到这个版本是否发布为符合A2A协议的Agent

