Skip to content

refactor(ui): use explicit raw config command flags - #180800

Merged
steipete merged 3 commits into
mainfrom
solid2/saving-presentation-flags
Oct 22, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/saving-presentation-flags

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

The raw configuration editor encoded two process flags in one optimistic command enum. Use co-written createOptimistic(false) flags for command locking and Save feedback, while retaining the existing plain owner's admission and retirement path. Open and Discard keep controls locked without displaying “Saving…”.

The raw editor returns its existing SettingsPage directly and creates its existing live-value ref at the textarea. This removes a redundant fragment and keeps production LOC unchanged. DOM, selectors, styles, lazy boundaries, error ownership, and user-visible behavior are preserved.

Proof Result
UI typecheck Pass
Core UI-pages test typecheck Pass after correcting the Open/Discard fixture to return Promise<void>
Targeted Chromium test file 8/8 pass, including held Save, Open, Discard and route retirement
Targeted lint / format / diff check Pass
Production Knip Pass; no ignores added
Independent review No actionable P0–P2 findings
Same-machine base/head builds and strict performance check Pass; startup 315,741 → 315,732 B gzip (-9 B), within 64 B build variance

The nonvisual refactor is covered by behavior assertions; no appearance changes need screenshot comparison. Startup CSS requests remain one.

In the touched production file, generic nonboolean saving proxies: 1 → 0; createOptimistic(false): 0 → 2; actions: 1 → 1. Production LOC: 705 → 705; test LOC: 159 → 186. Other Solid API/checklist counts are unchanged. No new dependency or abstraction.

CI run 39818890226 caught a new type mismatch in the Open/Discard test fixture (Promise<boolean> versus Promise<void>). The corrected fixture passes node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.ui-pages.json --incremental; runtime production code is unchanged by this repair. The initial auto request was confirmed retired before publishing the correction.

Run 39823932812 passed the corrected core test types, then found the explicit void argument redundant under no-unnecessary-type-arguments. The fixture now uses the helper’s default void type; its runtime behavior is identical. Both failures were specific to this PR and repaired here.

Final-head run 39827400108 failed one scenario: Control UI catalog publication with a real Gateway > opens Settings pickers from publication and acquires only on Refresh or Retry, waiting for the catalog Retry button. All other selected jobs passed or skipped. The latest completed scheduled main run, 39823514819, passed this scenario. One canonical execution against this PR's actual merge base 1bd44907beb195649e7613cde07ae08bdb02f5ea also passed (8.572 s case; 62.63 s Vitest) after a base UI build. That local proof used Node for Playwright and recorded UI bundle hashes before/after the runner's base-source rebuild. At that point the failure was not classified as inherited; the shared catalog investigation continued. No rerun was used to chase green.

The coordinated diagnostic run 39831563422 observed one retained catalog-feedback root but zero alert, status, button, or Retry nodes while Refresh remained enabled. The catalog suppression repair is tracked in #180897. This raw-config implementation remains unchanged pending that repair's integration; no further local test run was started.

The latest completed scheduled main run now supplies matching-name evidence: 39832966696 at f113dde017ecb6dcf91af45e0bf3a4057f867d90 fails the same catalog Retry scenario at the same missing control. The raw-config CI actually tested merge 7a1798483052f4c29a877f4e50ac21e6053c440b (main 062bbe5f94746bb92f29fe7c039238e7762ff2ab plus this PR head), which contains the newer catalog suppression; the older standalone branch-base pass remains recorded above. The failure now qualifies as inherited. All 65 current-head jobs are terminal: 36 passed, 27 skipped, the catalog shard and its aggregate failed. Security passed. Native inherited-failure recovery will retain that qualification rather than claim a green full run.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 22, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

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 ✅ Completed 2026-10-22T17:04:00.117575Z 6f5bed2 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.

@steipete
steipete enabled auto-merge (squash) October 22, 2026 17:09
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces the raw editor’s optimistic command enum with explicit command-busy and save-busy flags and simplifies its JSX.

Example: Open the raw editor with {"gateway":{"mode":"local"}} and click Discard while its completion is held.

  • Before: Controls remain disabled and Save does not display “Saving…”, using an optimistic command enum.
  • After: The same visible behavior uses two co-written optimistic boolean flags.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported refactor with useful renderer coverage and no actionable finding; supplied execution evidence remains harness-based.
Proof confidence 🦐 gold shrimp (3/6) The supplied maintainer-authored classification exempts this nonvisual refactor from the ordinary contributor proof gate; the body reports Chromium renderer coverage, but no shipped-entry-point execution is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No new user-visible failure is claimed; the intended outcome is to preserve raw-editor locking and Save feedback with explicit presentation flags.
Reason: The supplied maintainer-authored direction settles the representation choice, and the small patch follows the existing Solid contract without changing configuration or permissions.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: the maintainer-directed refactor follows the existing Solid recipe, preserves command ownership, and introduces no actionable correctness finding.

Priority: P3
Reviewed head: 6f5bed2eb2f5748291a91d2f27b374a89e439e9b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI raw configuration view receives drafts and command callbacks from the Runtime Config owner and presents editing controls, pending feedback, and owner-recorded outcomes.

flowchart LR
  A[Raw editor controls] --> B[Runtime Config owner]
  B --> C[Admitted command completion]
  C --> D[Solid presentation action]
  E[Route retirement] --> D
  D --> F[Control locks and Save feedback]
Loading

Technical review

Best possible solution:

Retain this focused presentation refactor and its behavioral coverage while resolving required CI through the existing gate owners.

Do we have a high-confidence way to reproduce the issue?

This PR claims a behavior-preserving refactor rather than a bug fix; source inspection supports equivalent busy and saving states, and no target code was executed.

Is this the best way to solve the issue?

The patch uses the documented boolean optimistic-flag recipe within the existing action and owner lifecycle, without introducing a competing owner or unnecessary scaffolding.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 488631c18fae.

Provenance checked

  • Raw command pending presentation keeps the original intent (91ea438: Present admitted Save, Discard, and Open completions until settlement or route retirement while leaving authoritative outcomes with Runtime Config.)
  • Raw editor identity and live-value binding keeps the original intent (19ac02a: Preserve typing focus, selection, native Undo, and draft identity through unrelated publications while allowing authoritative replacement and edit locks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 91ea438 adds ui/src/pages/config/view.tsx:263 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 91ea4383130b; files: ui/src/pages/config/view.tsx)

PR surface

Source 0, Tests +27. Total +27 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 10 10 0
Tests 1 27 0 +27
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 37 10 +27

Labels

Label changes:

  • add P3: This is a local, behavior-preserving UI refactor with no demonstrated user-facing defect.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a local, behavior-preserving UI refactor with no demonstrated user-facing defect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 22, 2026, 1:17 PM ET / 17:17 UTC.

@steipete
steipete disabled auto-merge October 22, 2026 17:32
@steipete
steipete merged commit bd8424a into main Oct 22, 2026
114 of 123 checks passed
@steipete
steipete deleted the solid2/saving-presentation-flags branch October 22, 2026 20:06
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
* refactor(ui): use explicit raw config command flags

* test(ui): correct raw command completion fixture type

* test(ui): use deferred default completion type
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant