Skip to content

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

Merged
bobbai00 merged 1 commit into
apache:mainfrom
bobbai00:fix/agent-panel-freeze
Nov 24, 2026
Merged

bobbai00 merged 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)

@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

codecov-commenter commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.68%. Comparing base (a1b5aad) to head (1abe389).
✅ All tests successful. No failed tests found.

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     
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø) Carriedforward from a1b5aad
agent-service 99.56% <ø> (ø) Carriedforward from a1b5aad
amber 85.79% <ø> (ø) Carriedforward from a1b5aad
computing-unit-managing-service 63.83% <ø> (ø) Carriedforward from a1b5aad
config-service 87.50% <ø> (ø) Carriedforward from a1b5aad
file-service 82.16% <ø> (ø) Carriedforward from a1b5aad
frontend 96.44% <ø> (+<0.01%) ⬆️
notebook-migration-service 83.77% <ø> (ø) Carriedforward from a1b5aad
pyamber 98.32% <ø> (ø) Carriedforward from a1b5aad
result-service 86.48% <ø> (ø) Carriedforward from a1b5aad
workflow-compiling-service 80.90% <ø> (ø) Carriedforward from a1b5aad

*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!

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.
@bobbai00
bobbai00 force-pushed the fix/agent-panel-freeze branch from 481de4c to 1abe389 Compare November 24, 2026 06:56
@bobbai00
bobbai00 added this pull request to the merge queue Nov 24, 2026
Merged via the queue into apache:main with commit 41e25f4 Nov 24, 2026
23 checks passed
@bobbai00
bobbai00 deleted the fix/agent-panel-freeze branch November 24, 2026 22:26
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Nov 24, 2026
### 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)
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