Skip to content

🐛 Bugfix: Support viewing whether the agent version has been published as an A2A agent#2863

Merged
WMC001 merged 1 commit intodevelopfrom
xyq/bugfix
Apr 25, 2026
Merged

🐛 Bugfix: Support viewing whether the agent version has been published as an A2A agent#2863
WMC001 merged 1 commit intodevelopfrom
xyq/bugfix

Conversation

@xuyaqist
Copy link
Copy Markdown
Contributor

当用户点击编辑,可以看到这个版本是否发布为符合A2A协议的Agent
image
image

Copilot AI review requested due to automatic review settings April 25, 2026 08:57
@xuyaqist xuyaqist changed the title Xyq/bugfix Bugfix: Support viewing whether the agent version has been published as an A2A agent Apr 25, 2026
@xuyaqist xuyaqist changed the title Bugfix: Support viewing whether the agent version has been published as an A2A agent 🐛 Bugfix: Support viewing whether the agent version has been published as an A2A agent Apr 25, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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_a2a column to ag_tenant_agent_version_t (init SQL + incremental migration).
  • Persist is_a2a on publish in the backend and expose it via backend models.
  • Plumb is_a2a through 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 isEdit is 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.

Comment thread frontend/services/agentVersionService.ts
Comment thread docker/sql/v2.0.2_0425_add_is_a2a_to_ag_tenant_agent_version_t.sql
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@WMC001 WMC001 merged commit fde5dca into develop Apr 25, 2026
15 of 16 checks passed
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.

3 participants