Skip to content

fix(ui): Secrets feedback confuses save counts and name rules - #199464

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/copy-audit-secrets-guidance
Nov 16, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/copy-audit-secrets-guidance

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #199116, #199414.

What Problem This Solves

Fixes: Secrets presents pre-error save confirmations as the final saved count, and invalid-name errors prescribe an example instead of explaining the actual rules.

User Impact

Partial imports now identify the count as confirmed saves before the error, preserving the existing instruction to check the list before retrying. Name errors explain the existing 1–128-character grammar. Completed-import and runtime-warning labels also work for a count of one. Validation, write behavior, permissions and secret protection are unchanged.

Why This Change Was Made

A write can already be saved when its runtime refresh fails. The owner counts successful responses, so zero confirmations before that error does not mean zero entries were saved. This change states the fact the owner actually knows instead of parsing error text or inferring protected values from inventory metadata.

Only four English strings change. The branch now includes current main’s read-state and confirmed-write recovery work from #199116 and #199414. That receipt-handling owner is preserved unchanged; its additional partial-count expectation was updated to the new wording.

Evidence

  • Maintainer verification integrated baseline a56ba88 through the native workflow. The added main consumer failed on its old text; updating that single expectation made the integrated suite pass without changing receipt handling.
  • The partial-import flow replays the Gateway’s actual saved-but-runtime-refresh-failed response, receives an inventory containing the entry, and reaches Retry without a second write. This is source-backed synthetic-boundary proof, not a live secret-store mutation.
  • Add and Bulk add reject invalid names without writing, retain their drafts and then save valid non-example names. The existing flow also checks a 129-character name and protected/readable/mixed entries. The longer guidance was checked at 390 px as well as desktop width.
  • Fourteen focused view/page/store tests and nine public-name boundary cases agree with the UI and Gateway validators, including one, 128 and 129 characters.
  • Current integrated validation with one worker: 14 store cases plus 535 standard UI canaries passed in 28.47s; all eight full built-app Secrets browser cases passed in 17.86s. They exercise dialogs, receipt/readback and reconnect behavior.
  • Targeted lint, formatting and diff checks pass. Broad checks run on the updated PR head.
  • Screenshots use real components and synthetic values. Matched desktop captures are 1280 × 960; surrounding context was inspected. Before source: main 55430c2. These original matched captures remain applicable to the unchanged messages; the integrated build was tested separately as described above.

Partial-import feedback

Before

Before: zero successful replies are presented as zero saved entries

After

After: the count explicitly describes confirmations before the error

Name validation

Before

Before: invalid names are told to use one example name

After

After: invalid names receive the actual grammar and length limit

Contributor: @vyctorbrzezowski directed the comprehensive wording and interaction audit.

Work sessions

Linked for team reference; these sessions aren’t public.

@clawsweeper

clawsweeper Bot commented Nov 15, 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 November 15, 2026 05:05
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Clarifies partial-import confirmations, explains valid secret names, and makes save and warning counts grammatically neutral.

Example: Import AUDIT_URL=https://service.example.test when the write commits but runtime refresh returns an error.

  • Before: The dialog says “Saved 0 of 1 entries” despite the saved entry appearing in the inventory.
  • After: The dialog says “Confirmed saves before the error: 0 of 1” and retains the instruction to check the list.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, useful copy correction with directly inspected visual evidence, distinct browser regressions, and no actionable findings; broad exact-head CI is still running.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after images show the changed Secrets messages rendered with synthetic content; built-app browser coverage and the member verification comment support the integrated consumer paths, while live storage behavior is unchanged.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Secrets can describe zero acknowledged responses as zero saved entries and prescribe one example name without explaining valid alternatives.
Reason: The maintainer-authored change improves factual feedback with four localized replacements and preserves existing behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR corrects misleading Secrets feedback still present on main, with no actionable defects found.

Priority: P2
Reviewed head: 98f2575772f346a4aa8a63768fc800a6c4cebbc8

Before merge

None.

Findings

None.

Agent review details

How this fits together

Settings → Secrets validates drafts and sends mutations through the existing store owner; Gateway responses and inventory reads become localized confirmations and recovery messages.

flowchart LR
  A[Secrets dialogs] --> B[Draft validation]
  B --> C[Secrets store owner]
  C --> D[Gateway secret store]
  D --> E[Receipts and inventory]
  E --> C
  C --> F[Localized feedback]
Loading

Technical review

Best possible solution:

Keep the correction in the existing English catalog and preserve the current receipt, validation, and recovery owners.

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

The Gateway’s committed-write error path and the UI’s successful-response counter establish the misleading-count scenario, and supplied before screenshots show both wording problems; no target code was executed during this review.

Is this the best way to solve the issue?

Four catalog replacements are the smallest complete fix: they state known receipt counts, describe the unchanged name grammar, and avoid pluralization errors without adding state or parsing errors.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 19d97ad adds ui/src/i18n/locales/en-secrets-store.ts:33 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 19d97adc888a; files: ui/src/i18n/locales/en-secrets-store.ts)
  • Peter Steinberger: Raw commit 2e60293 adds ui/src/i18n/locales/en-secrets-store.ts:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2e602936e5f2; files: ui/src/i18n/locales/en-secrets-store.ts)
  • RoboClaw: Raw commit ff093b5 adds ui/src/i18n/locales/en-secrets-store.ts:40 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ff093b54583e; files: ui/src/i18n/locales/en-secrets-store.ts)

PR surface

Source 0, Tests +37. Total +37 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 4 4 0
Tests 2 41 4 +37
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 45 8 +37

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Misleading import counts and incomplete name guidance cause avoidable confusion in an existing settings workflow.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-15T05:27:41.466Z sha 9fb2c44 :: needs maintainer review before merge. :: none

Reviewed November 15, 2026, 7:48 PM ET / November 16, 2026, 00:48 UTC (Revision 2).

Baseline-Refresh: a064860df0f6ad4a38d945eace3d17d628e4ef40
Co-authored-by: vyctorbrzezowski <[email protected]>
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Integrated current main’s receipt-handling update through the native workflow and preserved that production owner unchanged. Reproduced the new consumer’s stale text expectation and corrected that one line.

All 14 store cases plus 535 standard UI canaries pass, along with all eight full built-app Secrets browser cases. These retain acknowledged-write/read-failure recovery and cover saved-but-error feedback without a second write. Targeted lint/format passed; all four published images were inspected. No live secret-store mutation was performed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:bug Preliminary submission classification; full source review pending. label Nov 16, 2026

@vyctorbrzezowski vyctorbrzezowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Integrated verified main through the native baseline workflow, preserving the landed receipt-handling owner unchanged. Reproduced and fixed its additional stale text expectation. All 14 store cases plus 535 UI canaries pass, as do eight full built-app Secrets cases. Independent review confirmed name grammar, confirmed-save semantics, acknowledged-write recovery and Retry without a second write. Four screenshots inspected. No live secret-store mutation performed.

@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 16, 2026 00:46
@vyctorbrzezowski
vyctorbrzezowski merged commit b858e90 into main Nov 16, 2026
93 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-audit-secrets-guidance branch November 16, 2026 00:55
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…aw#199464)

* fix(ui): Secrets feedback confuses save counts and name rules

Co-authored-by: vyctorbrzezowski <[email protected]>

* test(ui): preserve receipt coverage with updated save wording

---------

Co-authored-by: vyctorbrzezowski <[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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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