rancher/rancher-ai-ui, torchiaf. Cut at 7bff0f30 (your last full review), 8 commits, head 88cd74c9. Two passes: Cody's my-pr-review-new-commits (A, in session) and ours (B, fresh agent that had not seen A). 2026-11-24.
Preview: https://rancheraipr319r.mf-created-dashboard.ui.rancher.space/dashboard/ - built from 88cd74c9, backend rancher.13.48.147.135.sslip.io
plan.enabled: false and planApproval.enabled: false.| Thread | State | Checked on the preview |
|---|---|---|
Notifications on every </message> | Addressed, with one rare leftover | Errors send one notification, running steps none, a question or confirmation one each. An error is still followed by "Response complete" when the same turn also recommends an agent (point 4). |
clearBeforeUnload name | Addressed | Renamed. A few comments that repeat the code remain in channel/index.ts. |
| Permission message coming back | Addressed | Hidden after reopening the chat, prompt granted or dismissed. |
| Links not reachable by keyboard | Addressed | Tab reaches both links and Enter works; same for the RequiredAction link. |
| Escaped apostrophe in the accessible name | Addressed | The menu item's name reads "browser's site settings". |
First step fails with approval off: <message>, plan in_progress, text, plan failed, </message>. No notification, no dot. Same when a retry fails again (approval on or off), and a retry of the last step that succeeds loses "Plan completed". The same failure in step 2 sends "Plan failed" and shows the dot.
The planning message is not complete yet, so it is skipped, and the plan is still marked as notified, so </message> is skipped too. At 7bff0f30 </message> always notified (code read). The tests miss it because the mocked planning message is already completed and every plan e2e starts with an approval in its own message.
<error> mid-plan, or the socket drops mid-plan: later plain replies are silent.The leftover plan state is on main already; what is new is that notifications depend on it. What the agent sends in these cases is code read.
It reads "You have unread messages", or "Response complete" without text, while it waits for approval.
The suggestion is added before the last message is checked. Rare: the recommendation and a failing final call in the same turn. Control without it: the error only.
Every notification still shares one tag, so "You have unread messages" replaces "Plan completed". Your 2026-11-23 comment said OK for a first iteration; fewer are sent now.
| Point | A | B | Re-run on the preview |
|---|---|---|---|
| 1. Ends in its own message | yes | yes | yes |
| 2. Sign-in cancelled / error mid-plan | yes | yes (sign-in, socket drop) | yes |
| 2. New chat, wrong text, null error | missed | yes | yes |
| 3. Revised plan | missed | yes | yes |
| 4. Error plus recommendation | missed | yes | yes |
CI at 88cd74c9: unit, lint and i18n pass; e2e fails on one chat.spec planning scroll test that also needed retries on main. notifications.spec 16/16.
Request changes. Intro:
Thanks, steps, questions, confirmations and errors read right now, and I resolved the open threads. Two plan cases still stay silent, see below. The description also still says notifications close after 5 seconds, are opt-in and are cleared before unload.
A plan that ends in the message it started in sends nothing, no notification and no dot: that message isn't complete yet so it's skipped, and the plan is still marked as notified, so the end of the message is skipped too. It happens when the first step fails with plan approval off, and when a retry fails again. The same failure in step 2 sends "Plan failed".
This reads a plan that can be left over from another chat or from a run that never finished. After a new chat is started while a plan runs, or the sign-in of a later step is canceled, plain replies send nothing. If that plan was waiting for an answer, the first reply in the new chat reads "The plan needs your input to continue". A new plan there can also end in "Error processing message: Cannot read properties of null (reading 'role')" and an error notification, although it succeeded.
Optional: with plan approval on, a plan revised from feedback reads "You have unread messages", or "Response complete" when it has no text, while it waits for approval.
Optional: when the same turn also recommends an agent, that suggestion is the last message, so an error is still followed by "Response complete", which replaces it.