Repository navigation
fix(frontend): unfreeze the agent panel on first open - #9579
Conversation
Automated Reviewer SuggestionsBased on the
|
Backport auto-label reportThis
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9579 +/- ##
=========================================
Coverage 91.68% 91.68%
Complexity 5125 5125
=========================================
Files 1305 1305
Lines 58211 58211
Branches 7594 7594
=========================================
+ Hits 53371 53372 +1
Misses 2933 2933
+ Partials 1907 1906 -1
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
c22b6a8 to
481de4c
Compare
|
Removing |
|
@sshiv012 Can you check this PR ? |
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.
481de4c to
1abe389
Compare
### What changes were proposed in this PR? Two ways an agent's chat could not be reopened: - **An agent on another workflow:** its tab was disabled behind a lock. It can now be selected, and shows the agent's workflow with a link to it in place of the chat. The agent stays inactive there, since an active agent loads its workflow into the canvas. The link is a plain one, as on the admin executions page: the workspace reads the workflow id only when it is created. - **Your own agent on this workflow:** a prompt sent right after its tab opened could arrive before the page fetched the workflow, carrying the content alone. The reload dropped the workflow's id and name, blanking the title and locking the tab. For an agent bound to the open workflow, the reload now keeps them. An agent bound to no workflow reloads as before. **An agent on another workflow.** On "Iris species report", the chat of an agent working on "Q4 sales by region". Before, its tab does not respond: <img width="1080" height="680" alt="Before: clicking the locked tab of an agent on another workflow does nothing" src="https://github.com/user-attachments/assets/20673e20-034c-4e6a-80de-00f2a3b488d5" /> After, it names that workflow and links to it, where the chat is: <img width="1080" height="680" alt="After: the tab names the agent's workflow, and its link opens that workflow with the chat" src="https://github.com/user-attachments/assets/833b007e-d46d-4d88-8126-46e505319627" /> **Your own agent on this workflow.** A prompt sent the moment the agent's tab opens. Before, the title and the workflow id disappear, and both tabs lock: <img width="1080" height="680" alt="Before: after a quick prompt the workflow title and id disappear and the agent tabs lock" src="https://github.com/user-attachments/assets/ea75e501-f4ca-4188-b272-acbc5c061024" /> After, they stay: <img width="1080" height="680" alt="After: after a quick prompt the workflow title and id stay and the tabs stay open" src="https://github.com/user-attachments/assets/871c6df9-c9c2-4d0b-a847-54eababa7019" /> ### Any related issues, documentation, discussions? Part of apache#9575: this fixes the chats that cannot be reopened, and apache#9579 fixes the model card that does not respond. ### How was this PR tested? New specs cover the selectable tab, the link and the kept workflow id; each fails without its change. Also run in headless Chromium against a local stack with a real model, alone and merged with apache#9579. The link opens the agent's workflow, where the chat answers, and a prompt sent at once keeps the title. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Fable 5.2, Claude Opus 5.5)
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:
After, the 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
mainevery 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)