Skip to content

fix(frontend): unfreeze the agent panel on first open - #9579

Open
bobbai00 wants to merge 1 commit into
apache:mainfrom
bobbai00:fix/agent-panel-freeze
Open

bobbai00 wants to merge 1 commit into
apache:mainfrom
bobbai00:fix/agent-panel-freeze

Conversation

@bobbai00

@bobbai00 bobbai00 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

The "+ Agent" form in the AI Agents panel did not respond when the page loaded with the panel minimized. Clicking a model card did nothing, so no agent could be created. While minimized, the panel's body is hidden. ng-zorro 21 hides an inactive tab pane only when its fade-out transition ends, and no transition runs in a hidden element. Each listed agent's chat pane stayed, invisible, over the form and took its clicks. The agent tabs no longer animate, so an inactive pane is hidden at once.

On "Iris species report", which already has the agent "Iris helper", the page loads with the panel minimized. Before, clicking the model card does nothing, and "Create Agent" stays grey:

Before: clicking the model card does nothing, and Create Agent stays grey

After, the card is selected, and "Create Agent" opens the new agent's chat:

After: the model card is selected, and Create Agent opens the new agent's chat

Any related issues, documentation, discussions?

Part of #9575: this fixes the model card that does not respond, and #9604 fixes the chats that cannot be reopened.

How was this PR tested?

A new spec renders the panel with animations on, as the app runs, and fails without the fix; the existing specs run with animations off. Also run in headless Chromium against a local stack with a real model. On main every click over the form lands on the invisible pane; with this change an agent is created and answers.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Fable 5.2, Claude Opus 5.5)

With pane animations on, ng-zorro hides an inactive tab pane only when its
fade-out transition ends. The agent panel loads minimized, with its body
hidden, and no transition ends in a hidden subtree. The panes of the agents
listed meanwhile stayed, invisible, over the registration tab and took every
click, so a user could not select a model or create an agent.

The agent tabs no longer animate, so an inactive pane is hidden at once.
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @aglinxinyuan
    You can notify them by mentioning @aglinxinyuan in a comment.

@Yicong-Huang Yicong-Huang added the release/v1.3 back porting to release/v1.3 label Nov 20, 2026
@github-actions github-actions Bot added fix frontend Changes related to the frontend GUI and removed release/v1.3 back porting to release/v1.3 labels Nov 20, 2026
@Yicong-Huang Yicong-Huang added the release/v1.2 back porting to release/v1.2 label Nov 20, 2026
@github-actions
github-actions Bot requested review from mengw15 and xuang7 November 20, 2026 22:19
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Backport auto-label report

This fix: PR was checked against each actively-supported release branch. A release/* label nominates a backport target; the branch's release manager approving this PR is what sends the fix there. The required Backport Approvals check stays red until every label below is approved, so each manager either approves or removes their own label — which is why the labels left on a merged PR are exactly the branches it reached.

Release branch Analysis
🚫 release/v1.3 Label was removed earlier (opt-out); not re-added. Re-add it by hand if this fix should be backported here after all — the branch's release manager then has to approve before this PR can merge.
🚫 release/v1.2 Label was removed earlier (opt-out); not re-added. Re-add it by hand if this fix should be backported here after all — the branch's release manager then has to approve before this PR can merge.

Auto-label run.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.57%. Comparing base (7f9bdf3) to head (9310e4e).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9579   +/-   ##
=========================================
  Coverage     91.57%   91.57%           
  Complexity     5158     5158           
=========================================
  Files          1300     1300           
  Lines         58092    58092           
  Branches       7615     7615           
=========================================
+ Hits          53195    53196    +1     
+ Misses         2959     2958    -1     
  Partials       1938     1938           
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø) Carriedforward from 7f9bdf3
agent-service 99.56% <ø> (ø) Carriedforward from 7f9bdf3
amber 85.43% <ø> (ø) Carriedforward from 7f9bdf3
computing-unit-managing-service 63.88% <ø> (ø) Carriedforward from 7f9bdf3
config-service 87.50% <ø> (ø) Carriedforward from 7f9bdf3
file-service 82.16% <ø> (ø) Carriedforward from 7f9bdf3
frontend 96.45% <100.00%> (+<0.01%) ⬆️
notebook-migration-service 83.77% <ø> (ø) Carriedforward from 7f9bdf3
pyamber 98.38% <ø> (ø) Carriedforward from 7f9bdf3
result-service 85.71% <ø> (ø) Carriedforward from 7f9bdf3
workflow-compiling-service 78.30% <ø> (ø) Carriedforward from 7f9bdf3

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bobbai00 bobbai00 changed the title fix(frontend): unfreeze the agent panel on first open fix(frontend): unfreeze the agent panel and its locked tabs Nov 20, 2026
@bobbai00
bobbai00 force-pushed the fix/agent-panel-freeze branch from c22b6a8 to 481de4c Compare November 21, 2026 07:40
@bobbai00 bobbai00 changed the title fix(frontend): unfreeze the agent panel and its locked tabs fix(frontend): unfreeze the agent panel on first open Nov 21, 2026
@bobbai00
bobbai00 marked this pull request as ready for review November 21, 2026 07:46
@xuang7

xuang7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Removing release/v1.2: not a regression, and expanding the panel and reloading the page works around it.

@xuang7 xuang7 removed the release/v1.2 back porting to release/v1.2 label Nov 23, 2026
@bobbai00
bobbai00 requested review from kunwp1 and removed request for mengw15 and xuang7 November 23, 2026 17:53
@bobbai00

Copy link
Copy Markdown
Contributor Author

@sshiv012 Can you check this PR ?

@kunwp1 kunwp1 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.

LGTM!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants