Repository navigation
fix(ui): show New Session failures in a centered alert - #107997
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aae2f62e5c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -40,6 +40,7 @@ Docs: https://docs.openclaw.ai | |||
|
|
|||
| ### Fixes | |||
|
|
|||
| - **Control UI New Session errors:** center creation and cloud-start failures in a themed alert card with an accessible status icon and readable wrapping. | |||
There was a problem hiding this comment.
Remove the manual changelog entry
For this normal UI fix, adding an Unreleased entry here conflicts with AGENTS.md:299, which says CHANGELOG.md is release-only and should not be edited for normal PRs or direct main fixes; AGENTS.md:301 says release generation derives entries from commits/PRs. Keeping this line risks duplicate or stale release notes during the generated changelog step, so the release-note context should stay in the commit/PR body instead.
Useful? React with 👍 / 👎.
daa7040 to
e7fe071
Compare
|
Merged via squash.
|
* fix(ui): center new session errors * chore: remove release-owned changelog entry
* fix(ui): center new session errors * chore: remove release-owned changelog entry
Closes #107992
What Problem This Solves
Fixes an issue where users whose New Session creation or cloud startup failed would see a plain red sentence stretched across the page, visually detached from the centered workflow.
Why This Change Was Made
Draft failures now use the existing danger-callout design with a dedicated status icon, alert semantics, centered bounded layout, and safe wrapping for long backend messages. Folder-browser errors remain compact and inline instead of inheriting the page-level presentation.
User Impact
New Session failures are easier to notice and scan, stay centered with the composer, and remain readable on narrow screens. Retry behavior and backend error text are unchanged.
Evidence
/new.corepack pnpm test:ui:e2e -- ui/src/e2e/new-session-page.e2e.test.ts— 28/28 passed. The cloud-failure test assertsrole="alert", icon presence, centered geometry, and successful retry. Run: https://github.com/openclaw/openclaw/actions/runs/29388489969e7fe07166589eb5add270da16bc95ac365668dbc. Run: https://github.com/openclaw/openclaw/actions/runs/29388945137git diff --check: clean.AI-assisted implementation; reviewed and validated against the affected UI flow.