Skip to content

fix(whatsapp): retain settings fact rows on refresh - #182364

Merged
steipete merged 1 commit into
mainfrom
solid2/w-s2-small-plugins
Oct 24, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-s2-small-plugins

Conversation

@steipete

@steipete steipete commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

WhatsApp Settings rebuilt every status fact row when its snapshot refreshed or its display language changed.

User Impact

Existing status rows now keep their DOM identity while values update, including when the optional phone row appears or disappears. Labels, layout, controls, and request behavior stay the same.

Why This Change Was Made

The facts memo creates new objects, so object-identity list rendering discarded the previous rows. Keying each fact by its untranslated field name keeps the corresponding label/value pair stable without confusing rows when the phone field changes the list length.

Evidence

Check Result
Focused settings regression on base Failed at retained dt identity after status refresh
Focused settings suite with fix 6 tests passed; refresh, phone insertion/removal, and locale changes retain dt/dd nodes (2.40 s file run, 216 ms tests)
Typecheck / lint / format pnpm tsgo:ui, targeted oxlint, and oxfmt passed
Independent review No actionable P0–P2 findings
Production Knip Reports only inherited unused src/gateway/assistant-human-mentions.ts; the same file fails on ancestor 23db299b15b, with its owner and Knip config unchanged through this PR base
Production TSX LOC 237 → 242 (+5); test LOC +38
Solid checklist Semantic-keyed lists 0 → 1; controller/effect/listener/query/cleanup/owner/manual-loader counts remain zero
Plugin build Passed native builder and emitted-import/asset checks
Plugin JS 76,057 → 76,148 B raw; 26,376 → 26,406 B gzip (+30 B); one asset, within the 4 MiB/asset and 8 MiB/plugin limits

This changes retained node identity only; there is no visual layout change. The plugin stays behind its existing lazy Settings boundary and does not change the Control UI startup graph. No dependency or SDK changes.

CI investigation

Run 40074037682, attempt 1, failed only checks-ui (2/3) job 120813772809: chat-pane-versions-menu.browser.test.ts > opens help on its own retained header and retires native overlays when presentation ends expected focus on the help button after Escape but received the closed parent menu trigger. The exact test passed on merge base 4a41f0b90fb (358 ms, 3.31 s file run). The PR changes only the WhatsApp settings view and its test; the chat test and its imports are unchanged.

The cold menu path in menu-machine.ts handles Escape through the parent overlay while lazy navigation is loading. The loaded path in menu-runtime.ts instead leaves Escape to the deepest open child. Help keeps focus on its trigger inside the parent menu, so early Escape can take the cold path, close both menus, and return focus to the parent trigger. This accounts for the observed closed trigger while the parent exit animation still satisfies the preceding visibility assertion. One exact-job retry was requested through the Actions jobs API as a diagnosed timing failure; this is not an inherited-failure waiver or a claim that replay fixes the chat owner.

Attempt 2 passed on the unchanged head: checks-ui (2/3) job 120815848162 and aggregate openclaw/ci-gate job 120816971916 both succeeded. The run is green. The cold-menu Escape defect remains a separate owner follow-up.

@clawsweeper

clawsweeper Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-24T07:25:04.176389Z c8dc1e6 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added channel: whatsapp-web Channel integration: whatsapp-web app: web-ui App: web-ui size: S labels Oct 24, 2026
@steipete
steipete merged commit 3b730c8 into main Oct 24, 2026
160 of 163 checks passed
@steipete
steipete deleted the solid2/w-s2-small-plugins branch October 24, 2026 07:46
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: whatsapp-web Channel integration: whatsapp-web size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant