Skip to content

Show A2A Agent Configuration dialog when auto-connect fails - #259

Merged
jgindin merged 2 commits into
a2ui-project:mainfrom
dustinwhuang:open-config-panel
Oct 9, 2026
Merged

jgindin merged 2 commits into
a2ui-project:mainfrom
dustinwhuang:open-config-panel

Conversation

@dustinwhuang

Copy link
Copy Markdown
Contributor

Description

  • When a stored A2A agent URL fails to connect or is invalid during startup, connectToAgent() previously recorded connectionError while leaving isConfigPanelOpen set to false, leaving the header showing "Endpoint not configured" with no configuration modal or visible error message. Set isConfigPanelOpen to true on invalid URL early returns and connection errors in connectToAgent().

Pre-launch Checklist

  • I signed the [CLA].
  • I read the [Contributors Guide].
  • I read the [Style Guide].
  • I have added updates to the [CHANGELOG].
  • I updated/added relevant documentation.
  • My code changes (if any) have tests.
  • If my branch is on fork, I have verified that scripts/e2e_test.sh passes.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request ensures that the configuration panel in A2aChatView is opened when connection attempts fail or when invalid URLs are provided, and adds a corresponding unit test. The feedback suggests separating the isConnecting() guard clause from the invalid URL checks to prevent the configuration panel from opening unexpectedly when a connection is already in progress.

@dustinwhuang
dustinwhuang marked this pull request as ready for review October 7, 2026 23:43
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

⚡ A2UI Composer PR Preview

Your automated preview is successfully live (commit 8a888b8):
👉 Launch PR Preview

Note: This environment will be wiped automatically when the PR is merged or closed.

@jgindin
jgindin merged commit 3fee246 into a2ui-project:main Oct 9, 2026
13 checks passed
@dustinwhuang
dustinwhuang deleted the open-config-panel branch October 9, 2026 19:58
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.

2 participants