Skip to content

test(ui): match the sentence-case secret save label - #192191

Merged
steipete merged 1 commit into
mainfrom
fix/ci-stored-secret-label-416841
Nov 3, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci-stored-secret-label-416841

Conversation

@steipete

@steipete steipete commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The stored-secret browser test still looked for Save: Bot Token after #191352 (72b1c6d83222) switched generated setting labels to sentence case. The button is present as Save: Bot token, so the test failed before exercising the redaction-sentinel refusal.

User Impact

Restores CI coverage of rejecting redaction placeholders as typed secrets. Production behavior is unchanged.

Why This Change Was Made

Update the exact selector to the current label. The test still clicks Save, verifies that the secret owner receives no save, and checks native validation. Test timing and line count are unchanged.

Evidence

  • Original failure: CI run 41695264625, checks-ui job 126126333660.
  • Reproduced the original failure in Chromium on base 3235705cb012ae32e803e7c210669928269070e1; after the correction, all 13 tests in ui/src/components/config-form-stored-secret.browser.test.ts passed.
  • Default pnpm tsgo:ui, focused lint/format, and test-line ratchet passed.
  • Independent Codex review of the exact diff completed clean at P0–P2.

Inherited CI failures

Exact-head CI run 41697911013 completed with only the known Channels save fixture failures in ui/src/pages/channels/channels-page.save.test.ts, suite ChannelsPage save against a file changed elsewhere:

  • writes nothing over fields changed elsewhere, then lets the newer values win
  • writes the edits over the newer values only on Overwrite
  • still saves next to a change elsewhere that the edits don't touch
  • reports a Save cut short by a dropped connection once a re-read shows it landed
  • reports a Save cut short by a dropped connection once a re-read shows it not landed

Each fails at the same Missing DM policy option pairing assertion in choose, before reaching save behavior. These match the independently observed failures on #192169, #192170, #192171, and #192172. The tested merge preserves the complete Channels page, helper, app, library, dependency, workflow, and component owners; this PR changes only the unrelated stored-secret browser-test selector. Security and the other selected jobs passed. The authorized inherited-failure route retains this failed CI result.

@clawsweeper

clawsweeper Bot commented Nov 3, 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.

@steipete
steipete marked this pull request as ready for review November 3, 2026 18:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-11-03T18:55:40.744034Z 6878512 Draft marked ready
ℹ️ 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) November 3, 2026 18:59
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR changes the stored-secret browser test’s Save selector from “Save: Bot Token” to “Save: Bot token”.

Example: The browser test types x__OPENCLAW_REDACTED__ into the Telegram bot-token field.

  • Before: The title-case selector finds no Save button, so the test stops before checking rejection.
  • After: The sentence-case selector clicks Save and reaches the assertions that saving is refused and native validation appears.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is minimal and source-verified; validation rests on the reported browser run and inspectable CI annotations rather than a directly inspected passing execution trace.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair changes no shipped behavior; the body reports the Chromium base failure and all 13 focused tests passing after correction. The inspected screenshots belong to the earlier sentence-case feature and are contextual evidence only.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A stale browser selector prevents CI from exercising refusal of redaction placeholders as typed secrets.
Reason: The focused correction restores useful coverage and respects the already-approved sentence-case presentation.

Regression provenance

Regression provenance — verified: source commit 72b1c6d83222 by Vyctor H. Brzezowski; canonical PR #191352 (blame-to-merge-commit).

Merge readiness

✅ Ready for maintainer review

This PR is a useful, minimal test repair: the selector matches the intentional sentence-case label, and both secret-rejection assertions remain intact. No introduced defect was found; the failing CI shard reports a separate Channels fixture failure.

Priority: P3
Reviewed head: 68785124e02e2e4612110cb4a8de3e028a264705

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI derives field labels from schema hints and renders secret-field Save buttons; this browser test exercises that renderer with a fake secret owner and checks that redaction placeholders cannot be saved.

flowchart LR
  A[Schema hint] --> B[Sentence case label owner]
  B --> C[Secret field Save button]
  C --> D[Browser regression test]
  D --> E[Refusal and validation assertions]
Loading

Technical review

Best possible solution:

Retain the one-selector correction and both sentinel-rejection assertions, then handle the inherited CI failure through the existing landing policy.

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

The original Chromium CI annotation shows the missing Save element, and current source explains it exactly: “Bot Token” becomes “Bot token” before the accessible name is rendered; no local reproduction was run.

Is this the best way to solve the issue?

This is the smallest complete repair: update the existing selector to the intentional label while preserving the production rejection path and its assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Stored-secret sentinel-refusal test keeps the original intent (0be7bfb: Exercise explicit secret replacement while preventing redaction placeholders from being saved.)
  • Generated schema-label presentation keeps the original intent (72b1c6d: Present generated labels in sentence case without changing stored config values or translation keys.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 0be7bfb adds ui/src/components/config-form-stored-secret.browser.test.ts:233 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0be7bfb208e0; files: ui/src/components/config-form-stored-secret.browser.test.ts)

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Labels

Label changes:

  • add P3: This restores browser regression coverage without changing production behavior or user settings.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This restores browser regression coverage without changing production behavior or user settings.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • 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 November 3, 2026, 2:08 PM ET / 19:08 UTC.

@steipete
steipete disabled auto-merge November 3, 2026 19:12
@steipete
steipete merged commit 55e2fed into main Nov 3, 2026
139 of 146 checks passed
@steipete
steipete deleted the fix/ci-stored-secret-label-416841 branch November 3, 2026 19:16
@steipete

steipete commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

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

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. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant