Skip to content

fix(ui): keep automation starter prompts out of startup - #158482

Merged
RomneyDa merged 1 commit into
mainfrom
fix/ui-defer-cron-starter-copy
Sep 26, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/ui-defer-cron-starter-copy

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the Control UI production startup-budget failure that blocks full release-validation preflight.

User Impact

Startup no longer downloads the six automation starter prompts before the Automations page needs them. Displayed copy, starter form values, navigation, and translations are unchanged. No configuration or migration is required.

Why This Change Was Made

The starter suggestions lived in eager English even though their consumers are lazy. Move the unchanged subtree into the existing Cron English registrar and register it at the suggestion consumer. Keep an empty source-order anchor and reuse the existing host catalog composition; no bundler changes, budget increases, baseline edits, or generated translation changes.

Evidence

  • Original frozen target b74bd07a2fb073d04b1f2de3687513d495d26f11: 371,369 B startup gzip versus the unchanged 371,332 B limit; all 1,016 compressed sidecars verify.
  • Checked current main 718ce151affc1ef6c26ac6582862369db8f04172, including the landed Tasks retirement: still fails at 371,730 B. Same frozen dependencies, Node 26.8.2.
  • Production build after this fix: 370,996 B, down 734 B from its base and 336 B below the unchanged ceiling. Seven startup JS requests; largest ordinary JS 219,760 B versus 220,160 B; startup CSS unchanged at 50,164 B. All 1,044 sidecars verify and strict performance check reports zero violations.
  • Confirmed the starter prompt is absent from every shipped startup JS asset and the complete composed suggestion catalog is byte-for-byte JSON-equivalent to the original.
  • New real-consumer regression fails on original eager source and passes with the fix; verifies lazy English fallback, retained non-English copy, and all six starter form values. Isolated cost: 15 ms test time, 2.20 s Vitest / 3.36 s runner wall. Combined regression + automation-view coverage: 19 tests pass (3.44 s Vitest / 4.49 s runner).
  • Formatting, targeted lint (zero warnings/errors), i18n source verification, UI production types, all three UI test-type shards, and diff whitespace checks pass. An initial optional-anchor test type error was corrected with the shared expectDefined helper; the final 19-test rerun passed (2.59 s Vitest / 3.64 s runner). Local independent autoreview produced no verdict after ten minutes and was stopped cleanly; no review pass is claimed and no HTTP 403 was observed in this attempt. Hosted ClawSweeper review is requested on publication.

No full release validation, candidate refresh, deployment, or merge is performed by this PR. Generated-locale drift remains advisory for dispatch under the frozen release-validation contract; strict locale child checks still govern publication.

@clawsweeper

clawsweeper Bot commented Sep 26, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 26, 2026 00:26
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 8:32 PM ET / September 26, 2026, 00:32 UTC.

ClawSweeper review

What this changes

Moves six Automations starter prompts into the lazy Cron English catalog and adds a regression test for translation fallback and create-form values.

Merge readiness

⛔ Blocked before merge - 1 item remains

Current main still contains the eager starter copy, and no merged equivalent was established. The focused fix follows the Control UI’s lazy catalog contract and addresses the reported startup budget failure.

Priority: P2
Reviewed head: 5655a73c0a0283e6df53373fead88c1114b3376d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused patch follows the existing localization boundary, with measured production-build improvement and no identified correctness blocker.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The member and bot author is exempt from the external contributor proof gate. The PR reports production-build startup asset measurements, the supplied head context shows a passing performance check, and the test covers starter form values; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member and bot author is exempt from the external contributor proof gate. The PR reports production-build startup asset measurements, the supplied head context shows a passing performance check, and the test covers starter form values; no stored-data contract changes.
Evidence reviewed 8 items Current main retains eager copy: The fetched main revision still stores the starter title and prompts in the startup English catalog.
Introduced lazy catalog change: The PR places the starter subtree in the existing Cron registrar and leaves an empty source-order anchor in the eager catalog.
Consumer registration: The suggestion module registers Cron English synchronously before its exported starter data and form helper are used; the page also already registers the same catalog.
Findings None None.
Security None None.

How this fits together

The Control UI loads shared English copy at startup and loads the Automations page later. Its Cron catalog supplies text for starter cards and the form those cards prefill.

flowchart LR
 A[App startup] --> B[Shared English copy]
 B --> C[Initial UI]
 D[Open Automations] --> E[Lazy Cron copy]
 E --> F[Starter cards]
 G[Selected locale] --> F
 F --> H[Prefilled form]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +4, Tests +55. Total +59 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 52 48 +4
Tests 1 55 0 +55
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 107 48 +59

Review metrics

Metric Value Why it matters
Startup JavaScript gzip 734 B lower than base; 336 B below the reported enforcement limit The measured margin addresses the specific full release validation preflight failure.

Stored data model

Persistent data-model change detected: migration/backfill/repair: ui/src/i18n/locales/en-cron.ts, migration/backfill/repair: ui/src/i18n/locales/en.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Serve starter copy when Automations loads while retaining the existing catalog order, translations, form values, and startup budget gate.

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

Yes. The production UI build and strict performance check give a precise reproduction path, and the PR reports a base failure and after-fix pass; this read-only review did not execute them.

Is this the best way to solve the issue?

Yes. The existing lazy Cron registrar and source-order anchor provide a narrow fix without a new loading mechanism.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against c60c051c6c9f.

Labels

Label changes:

  • add P2: This is a focused Control UI performance and release validation repair without an evidenced urgent user workflow outage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member and bot author is exempt from the external contributor proof gate. The PR reports production-build startup asset measurements, the supplied head context shows a passing performance check, and the test covers starter form values; no stored-data contract changes.

Label justifications:

  • P2: This is a focused Control UI performance and release validation repair without an evidenced urgent user workflow outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member and bot author is exempt from the external contributor proof gate. The PR reports production-build startup asset measurements, the supplied head context shows a passing performance check, and the test covers starter form values; no stored-data contract changes.

Evidence

What I checked:

  • Current main retains eager copy: The fetched main revision still stores the starter title and prompts in the startup English catalog. (ui/src/i18n/locales/en.ts:4386, c60c051c6c9f)
  • Introduced lazy catalog change: The PR places the starter subtree in the existing Cron registrar and leaves an empty source-order anchor in the eager catalog. (ui/src/i18n/locales/en-cron.ts:6, 5655a73c0a02)
  • Consumer registration: The suggestion module registers Cron English synchronously before its exported starter data and form helper are used; the page also already registers the same catalog. (ui/src/pages/cron/suggestions.ts:12, 5655a73c0a02)
  • Catalog composition: The host catalog includes the Cron registrar catalog; its merge owner fills nested values into existing objects, preserving the empty anchor’s position. (scripts/lib/control-ui-i18n-catalog.ts:189, 5655a73c0a02)
  • Scoped UI guidance: The UI guide calls for synchronous registration at lazy consumers and an empty anchor when extraction would change catalog order. (ui/AGENTS.md:61, 5655a73c0a02)
  • Reported production measurement and head check: The PR body reports a frozen production build falling from 371,730 B on its base to 370,996 B after the fix, below the unchanged 371,332 B enforcement limit. The supplied head check context records control-ui-performance as successful; this reviewer did not rerun the build.

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: Raw commit b2fefda adds ui/src/i18n/locales/en-cron.ts:31 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b2fefda199c6; files: ui/src/i18n/locales/en-cron.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa enabled auto-merge (squash) September 26, 2026 05:50
@RomneyDa
RomneyDa merged commit 0ad702e into main Sep 26, 2026
166 of 167 checks passed
@RomneyDa
RomneyDa deleted the fix/ui-defer-cron-starter-copy branch September 26, 2026 05:50
vincentkoc added a commit that referenced this pull request Sep 26, 2026
* commit '66b812f26e725cd709e08860d2cb46ba496cd308': (70 commits)
  fix(gateway): preserve typed boxed-number coercion
  chore(ui): refresh control ui locales (#158689)
  fix(gateway): reset staged headers on authority errors (#158669)
  fix(workers): keep inbound staging stable during quota scans
  fix: preserve Telegram delivery after bot identity changes (#158612)
  fix(ui): keep automation starter prompts out of startup (#158482)
  fix(cli): distinguish configuration read failures from invalid input (#158671)
  test: remove retired progress coercion suppression allowance
  refactor(gateway): schedule worker placement maintenance (#158662)
  fix(daemon): keep native service checks within their timeout (#154565)
  fix(test): restore gateway steering fixture contracts (#158478)
  fix(acpx): use SDK filesystem publication boundary
  fix(agentsapi): load OpenClaw persona and workspace context (#158328)
  fix(gateway): drop progress snapshot coercion suppression
  fix(qa): accept native Codex truncation in cache evidence (#158454)
  fix(gateway): keep chat subscriptions stable during unrelated approvals (#158633)
  perf(gateway): release event payloads from live text guards (#158643)
  perf(sessions): reduce stalls when saving large chat messages (#158402)
  fix(qa): reject history-bearing utility requests without session affinity (#158496)
  test: allow intentional progress snapshot coercion
  ...
vincentkoc added a commit that referenced this pull request Sep 26, 2026
* fix(test): verify followup completion ordering

Exercise the real presentation settlement helper with asynchronous cleanup, preserve continuation and admission semantics, and unconditionally release and join the held work. Remote proof covers the strengthened ordering contract and both missing-await faults.

* fix(test): verify followup completion ordering

* chore: retain followup test branch ancestry

The current-main reconstruction preserves the original reviewed scope and supersedes its stale base. Keep the remotely qualified candidate tree unchanged while retaining the original PR ancestry for a non-force branch update.

* commit 'ff35145de21cf6296bec05e86bee37b5ed53bcb8':
  fix(test): verify followup completion ordering

* test(auto-reply): signal queued presentation entry

* chore: refresh followup test on boundary fix

* commit '66b812f26e725cd709e08860d2cb46ba496cd308': (70 commits)
  fix(gateway): preserve typed boxed-number coercion
  chore(ui): refresh control ui locales (#158689)
  fix(gateway): reset staged headers on authority errors (#158669)
  fix(workers): keep inbound staging stable during quota scans
  fix: preserve Telegram delivery after bot identity changes (#158612)
  fix(ui): keep automation starter prompts out of startup (#158482)
  fix(cli): distinguish configuration read failures from invalid input (#158671)
  test: remove retired progress coercion suppression allowance
  refactor(gateway): schedule worker placement maintenance (#158662)
  fix(daemon): keep native service checks within their timeout (#154565)
  fix(test): restore gateway steering fixture contracts (#158478)
  fix(acpx): use SDK filesystem publication boundary
  fix(agentsapi): load OpenClaw persona and workspace context (#158328)
  fix(gateway): drop progress snapshot coercion suppression
  fix(qa): accept native Codex truncation in cache evidence (#158454)
  fix(gateway): keep chat subscriptions stable during unrelated approvals (#158633)
  perf(gateway): release event payloads from live text guards (#158643)
  perf(sessions): reduce stalls when saving large chat messages (#158402)
  fix(qa): reject history-bearing utility requests without session affinity (#158496)
  test: allow intentional progress snapshot coercion
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
* fix(test): verify followup completion ordering

Exercise the real presentation settlement helper with asynchronous cleanup, preserve continuation and admission semantics, and unconditionally release and join the held work. Remote proof covers the strengthened ordering contract and both missing-await faults.

* fix(test): verify followup completion ordering

* chore: retain followup test branch ancestry

The current-main reconstruction preserves the original reviewed scope and supersedes its stale base. Keep the remotely qualified candidate tree unchanged while retaining the original PR ancestry for a non-force branch update.

* commit 'ff35145de21cf6296bec05e86bee37b5ed53bcb8':
  fix(test): verify followup completion ordering

* test(auto-reply): signal queued presentation entry

* chore: refresh followup test on boundary fix

* commit '622be54be3ffe0fce27d6a4b147c76d4b19c528c': (70 commits)
  fix(gateway): preserve typed boxed-number coercion
  chore(ui): refresh control ui locales (openclaw#158689)
  fix(gateway): reset staged headers on authority errors (openclaw#158669)
  fix(workers): keep inbound staging stable during quota scans
  fix: preserve Telegram delivery after bot identity changes (openclaw#158612)
  fix(ui): keep automation starter prompts out of startup (openclaw#158482)
  fix(cli): distinguish configuration read failures from invalid input (openclaw#158671)
  test: remove retired progress coercion suppression allowance
  refactor(gateway): schedule worker placement maintenance (openclaw#158662)
  fix(daemon): keep native service checks within their timeout (openclaw#154565)
  fix(test): restore gateway steering fixture contracts (openclaw#158478)
  fix(acpx): use SDK filesystem publication boundary
  fix(agentsapi): load OpenClaw persona and workspace context (openclaw#158328)
  fix(gateway): drop progress snapshot coercion suppression
  fix(qa): accept native Codex truncation in cache evidence (openclaw#158454)
  fix(gateway): keep chat subscriptions stable during unrelated approvals (openclaw#158633)
  perf(gateway): release event payloads from live text guards (openclaw#158643)
  perf(sessions): reduce stalls when saving large chat messages (openclaw#158402)
  fix(qa): reject history-bearing utility requests without session affinity (openclaw#158496)
  test: allow intentional progress snapshot coercion
  ...

Co-authored-by: Vincent Koc <[email protected]>
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

2 participants