Skip to content

fix(ui): A2A tab shows "Choose…" right after exposure is switched on (#3702) - #3704

Merged
dolho merged 1 commit into
devfrom
fix/3702-a2a-choose-after-expose
Oct 14, 2026
Merged

dolho merged 1 commit into
devfrom
fix/3702-a2a-choose-after-expose

Conversation

@dolho

@dolho dolho commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

On an agent's A2A tab, the Choose… control that picks which skills the Agent Card advertises (ent#180) stayed hidden when exposure was switched on from that same tab, until a reload.

The cause: load() fetches the template capabilities only for an agent already exposed at mount, and onToggle(true) loaded the card skills but never the capabilities. Choose… and the "Advertising all N capabilities" line are both v-if on capabilities.length. Exposing from the tab now loads both.

A one-line behaviour change in A2aPanel.vue::onToggle.

Fixes #3702

Test plan

  • New tests/unit/a2aPanelChooseAfterExpose.spec.js: mounts on an unexposed agent, switches exposure on, and asserts Choose… and the default line render. It failed before the fix and passes after. A second case covers an agent already exposed at mount.
  • npm run test:unit: 365/365 files, 5900 tests.
  • Live, local instance on dev f6a998f69 with this frontend: open an unexposed agent's A2A tab and switch exposure on → Choose… visible with no reload. I hid trend-detection and saved; it is gone from the card and stays gone after a reload. Reset to all brings it back. No console errors. The agent was restored to its original state.
  • Live re-check after review, frontend from this branch on dev f6a998f69: Choose… appears in all four entry paths: switch exposure on in the page; off → on in the same page; reload while exposed; Overview → A2A.

Note: this touches the same file as #3701 (ent#898), in a different function (onToggle vs. the outbound section), so they should merge without conflict.

🤖 Generated with Claude Code

…3702)

load() fetched the template capabilities only for an agent already
exposed at mount, and onToggle(true) loaded the card skills but not the
capabilities. A panel opened on an unexposed agent and then exposed
from the tab never filled `capabilities`, so the Choose… control that
curates the advertised skills (ent#180) stayed hidden until a reload.
Exposing from the tab now loads both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dolho dolho added the ui PR touches the frontend UI — triggers Playwright e2e tests label Oct 14, 2026
@dolho
dolho requested a review from obasilakis October 14, 2026 10:03
@dolho
dolho enabled auto-merge October 14, 2026 10:16

@obasilakis obasilakis left a comment

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.

Reviewed and validated. The fix is at the root cause: onToggle(true) now loads capabilities, matching load(). Removing the fix turns the new spec red, so it guards the bug. Tier 1 CI is green.

Optional follow-up, not caused by this PR: switching exposure off leaves the skill editor open (skillsEditing) and the capability list populated.

#3701 edits the same file; rebase whichever lands second.

@dolho
dolho disabled auto-merge October 14, 2026 10:22
@dolho
dolho merged commit fa6c9df into dev Oct 14, 2026
25 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui PR touches the frontend UI — triggers Playwright e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants