PR 353: Implement AI Agent installation

Run 3, at 60a4ab58, process B, every point repeated on the running build. Nothing is posted.

Suggested verdict: Request changes

The three replies of the last round hold up. What still breaks for a user: 1 (an installed agent shown as missing after two clicks, and it can cost the chats) and 2 (no reply, and the settings page does it by itself). With those two done it is an approve; 6 and 7 would not hold it.

  1. After Extensions, an installed agent shows as not installed: blocker, new
  2. False "llm-secret has been removed": should fix, open thread
  3. Lost chats: addressed, resolve
  4. Announcements: addressed, resolve
  5. Pod that only waits: answered, resolve
  6. Panel moves in a low window: optional
  7. Agent without a Helm release: optional

See what the PR builds in the guide, or the comments in the guide. Log in as admin of mf-rancher-16.

Comments
1

An installed agent shows as not installed after a visit to Extensions

composable:180 · ui + code · new, from ce951a9, missed in rounds one and two
Blocker

Leaving Extensions makes the dashboard forget the Apps. The flag that they were loaded stays on, so the empty list reads as "no agent". The chat offers to install it and the settings say "not ready yet", until a reload. The agent is deployed and 1/1 the whole time.

Home, the chat works
Home, the chat works
Extensions, then Home: not installed
Extensions, then Home: not installed
Following the panel: no lost-messages line
Following the panel: no lost-messages line

In the guide: after Extensions, following the panel, live, during an install

To post: new inline comment

After a visit to the Extensions page, an installed agent shows as not installed: leaving that page makes the dashboard forget the Apps, so this reads an empty list. The chat then offers to install it and the settings say "not ready yet" until a reload, and when I followed the panel, Apply did not warn about lost messages and my chat was gone. During an install the same thing fails step 1 with "The Helm repository rancher-ai has been removed". I missed this one in my first reviews, sorry.
2

"llm-secret has been removed" when it was not

composable:723 · ui + test · thread 4680172805
Should fix

No reply yet, and none of the three commits touches it. The secret had the same uid every time.

Repositories, Create: step 2 fails
Repositories, Create: step 2 fails
Settings, Basic authentication: the form is gone
Settings, Basic authentication: the form is gone
The chat beside it
The chat beside it

In the guide: Repositories, Create, the settings page

To post: reply in the thread

This one is still there, and the settings page does it too: at step 3, adding an agent and choosing Basic authentication fails step 2, and the form is replaced by "The AI Assistant configuration is not ready yet", so what I typed is lost. Two tests of chat-ai-agent-install.spec also needed retries in this e2e run.
3

Lost chats: the warning shows now

Addressed

torchiaf said

Ah this is a code issue, this is a ref but it should be computed […] Fixed, thanks

2 of 2 whole installs: no warning during the install, and the warning on the same page after Start chatting, as after a reload.

Same settings page, after the install
Same settings page, after the install

In the guide: the dialog

To post: reply, then resolve

Confirmed, thanks: the warning shows on the same page once the install ends.
4

Announcements: each step is read

Addressed

torchiaf said

Ok, let's change strategy, I added a sr-only div that watchers the process

The region is in the panel and empty before the first step. Start, completed and failed are each put in it once, with the error text. Read from the page, not with a screen reader.

In the guide: live

To post: reply, then resolve

Works, thanks: each step is announced when it starts, completes or fails.
5

A pod that only waits: Retry Install

Answered

torchiaf said

Let's keep it simple […] I would simply rename the button to "Retry Install" when the step fails. We don't want to handle all possible errors from the install panel.

The panel still says "cannot be scheduled" 40 s after the agent is 1/1. Retry Install uninstalls and installs again and completes (1 of 1). At step 2 nothing is configured, so nothing is lost: a decision I can accept.

Step 2 failed while the agent runs
Step 2 failed while the agent runs

In the guide: the panel

To post: reply, then resolve

Fair, fine with me. Retry Install worked once the pod could be scheduled.
6

The panel moves up in a low window

InstallAgent.vue:266 · ui · new in 60a4ab58
Optional

With the hidden texts, Tab past Install moves the whole panel: 71 px at 960x470, 121 px at 1440x420, so the header and the close button leave the view. 0 at 1280x560, 1280x577 and 1440x900, and 0 at every size with those texts hidden another way. The other pass also got it at 1280x577 with a failed step 2.

960x470, after Tab
960x470, after Tab

In the guide: the picture

To post: optional inline comment

Small one: in a low window (960x470, or 200% zoom) tabbing past Install moves the whole panel up, and the Liz header and its close button go out of view. It does not happen without the hidden texts.
7

An agent without a Helm release

Chat.vue:189 · ui · new, rare
Optional

With the chart applied as plain manifests (simulated by deleting the release secret), an admin always gets the install panel. After all four steps, Start chatting brings it back (1 of 1). On main the chat looks at the deployment only.

After Start chatting
After Start chatting

In the guide: the picture

To post: optional inline comment

An agent that runs without a Helm release (applied as plain manifests, for example) always shows the install panel to admins, also after all four steps. On main it works with the deployment alone.
Review body to post
The lost chats warning and the announcements work now, and I am fine with Retry Install. Two things left: the false "llm-secret has been removed", and an installed agent that shows as not installed after a visit to Extensions, which I missed before.
What changed since round two
Checked and fine
Not checked
Environment