Skip to content

fix(test): restore account-aware draft title coverage - #198516

Merged
vincentkoc merged 2 commits into
mainfrom
fix/test-draft-title-account-picker-20261114
Nov 14, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/test-draft-title-account-picker-20261114

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Four draft-title account scenarios fail at obsolete picker setup before reaching their title and submission assertions.

User Impact

Restores existing account-aware title, pending-preview, and submission coverage. No application behavior changes.

Why This Change Was Made

Open the parent picker and current account trigger before choosing a saved account. Return to automatic through the existing account owner's action: a pending account catalog intentionally has no provider rows. All nine cases and their title/submission assertions remain; pending previews stay unresolved.

This validates title-owner recovery. It does not assert that the automatic option is rendered during a pending empty catalog.

Evidence

Exact-head CI attribution

CI 43535668513 positively records all nine title tests passing. Two broader UI jobs remain red with 13 failures across six other files: 12 match full scheduled-main case/error signatures; the remaining HTMLButtonElement assertion is inherited from main commit cd61ce32, which changed the model option to a div. Full logs reconcile 11+2 failed cases; the separate Node subsets pass 6+12 cases. The tested merge is 43e3dce, with parents 4cffd43 and this PR head. These are attributed inherited failures, not a green CI claim. Native inherited-failure admission retains the failed run and exact evidence.

@vincentkoc vincentkoc self-assigned this Nov 14, 2026
@clawsweeper

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

@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 14, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 14, 2026 00:39
@vincentkoc
vincentkoc enabled auto-merge (squash) November 14, 2026 00:41
@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. and removed 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 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates draft-title tests to use the current account picker and the existing account owner's Automatic action.

Example: Prepare a title for “repair the sidebar naming,” select Saved account one, then return to Automatic while its preview is pending.

  • Before: The test fails at the removed account-group-toggle selector before checking title behavior.
  • After: The test selects through the current picker, keeps the preview pending, and checks that ordinary title preparation resumes through the account owner.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused and source-supported test repair with reported harness success; broad CI remains red, with one failure still unattributed.
Proof confidence 🦐 gold shrimp (3/6) This test-only repair needs no shipped-entry-point demonstration; the body records base/head fixture results, and readable CI annotations independently confirm the original setup failure.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Account-aware draft-title tests stop during obsolete picker setup, leaving their intended title and submission checks unexercised.
Reason: Restoring confirmed broken coverage is useful, and the maintainer-authored change preserves the approved account-picker design.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR repairs confirmed broken test setup while preserving the existing assertions; no actionable patch defects were found, though the CI gate remains unresolved.

Priority: P3
Reviewed head: 834d56b6bbb6b9058c7c38973a22b8399dce7be5

Before merge

None.

Findings

None.

Agent review details

How this fits together

The New Session model owner supplies account selection and readiness to draft-title preparation and session submission; this PR repairs only the fixture exercising those owners.

flowchart LR
  A[Test fixture] --> B[Model picker]
  B --> C[Account selection owner]
  C --> D[Draft title owner]
  D --> E[Title preparation request]
  C --> F[Session submission]
  D --> F
Loading

Technical review

Best possible solution:

Retain this focused fixture repair and preserve the existing picker, account-selection, title, and submission owners.

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

Current main still queries the removed selector, and main-run annotations confirm four failures at that setup line; the PR reports the focused suite changing from four failures to nine passes.

Is this the best way to solve the issue?

The patch uses the current picker for saved-account selection and the existing account action for title-owner recovery, preserving pending-state coverage without changing production selection rules.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 4a8734c adds ui/src/pages/new-session/draft-submission-title.test.ts:129 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4a8734c29e69; files: ui/src/pages/new-session/draft-submission-title.test.ts)
  • scoootscooob: Raw commit e4e2305 adds ui/src/pages/new-session/draft-submission-title.test.ts:16 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: e4e230510c15; files: ui/src/pages/new-session/draft-submission-title.test.ts)

PR surface

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

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

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:

  • add P3: Repairs test coverage without changing application behavior.
  • 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: Repairs test coverage without changing application behavior.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Classify the chat-view HTMLButtonElement failure before resolving the CI gate.

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 13, 2026, 7:54 PM ET / November 14, 2026, 00:54 UTC.

@vincentkoc
vincentkoc disabled auto-merge November 14, 2026 00:59
@vincentkoc
vincentkoc merged commit 211bc77 into main Nov 14, 2026
160 of 165 checks passed
@vincentkoc
vincentkoc deleted the fix/test-draft-title-account-picker-20261114 branch November 14, 2026 01:01
@vincentkoc

Copy link
Copy Markdown
Member 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 Nov 14, 2026
* fix(test): restore account-aware draft title coverage

* fix(test): preserve pending account title proof
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 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