Skip to content

test(ui): remove duplicate streaming Markdown coverage - #141519

Merged
steipete merged 1 commit into
mainfrom
codex/remove-duplicate-markdown-streaming
Sep 7, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/remove-duplicate-markdown-streaming

Conversation

@steipete

@steipete steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Two main-branch repairs created byte-identical streaming Markdown test suites under different filenames. #141466 moved the streaming and indented-source coverage into markdown-streaming.test.ts; #141485 then added the same content as markdown-streaming-parts.test.ts. Both match Git blob c51834438a442fb5d8c80ff531bae3ec9677cc68 and are discovered by the same UI unit-test glob.

Why This Change Was Made

Delete only the later redundant markdown-streaming-parts.test.ts. The canonical streaming file retains all 32 cases, assertions, helpers, mocks, and internal ordering. There are no explicit references to the redundant path and no separate isolation or coverage contract.

User Impact

No product behavior changes. The UI test suite stops discovering the same coverage twice. This is supporting CI cleanup, not a measured performance optimization.

Evidence

  • Fresh parent ca10e17c129eda1548de070010bc82d731d3dcc4 contains both identical blobs. The actual parent-relative change of test(ui): split streaming markdown tests to restore the core lint lane #141485 (18eabd4c) adds only the redundant file because perf(plugins): reduce bundled activation imports #141466 (7a1f677e) already performed the move.
  • Whole-tree reference inspection found no explicit dependency on either test filename. The retained canonical file is unchanged and remains covered by the existing unit-test glob.
  • The original max-lines failure is already fixed: markdown.test.ts is 773 counted lines and the retained streaming suite is 246, below the unchanged 1,000-line test limit.
  • Existing exact-head CI for the split passed: #141485 CI. No additional local runtime run is needed for deleting a byte-identical duplicate; this does not claim that an earlier unrelated test run executed this deletion.
  • Diff checks passed and fresh P2 review found no actionable issue. The new PR's exact-head CI remains required before landing.

Production delta: zero. Test delta: one redundant 284-line file deleted. No baseline, timeout, assertion, or isolation changes.

@clawsweeper

clawsweeper Bot commented Sep 7, 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 app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 7, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 3:56 PM ET / 19:56 UTC.

ClawSweeper review

What this changes

Removes a duplicate streaming Markdown test suite while retaining its identical tests in the canonical UI test file.

Merge readiness

✅ Ready for maintainer review

Keep open: the cleanup remains useful on current main, preserves identical coverage, and has no actionable correctness findings. The maintainer-authored PR is also protected from automated closure.

Priority: P3
Reviewed head: 21c6a1c0f6d204168c796945e9c946128f7a644e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused cleanup with directly verified coverage equivalence and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-only cleanup changes no production behavior; blob identity and unchanged discovery establish coverage preservation without a live UI demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored test-only cleanup changes no production behavior; blob identity and unchanged discovery establish coverage preservation without a live UI demonstration.
Evidence reviewed 6 items Identical coverage remains on the reviewed head: Both parent files have blob c51834438a442fb5d8c80ff531bae3ec9677cc68. The retained file at HEAD has that same blob; its complete contents preserve the assertions, helpers, mocks, and internal execution order.
Cleanup remains necessary on captured main: Captured main still contains both identical test blobs. Neither test filename exists in the inspected v2026.9.2 tree, so this is cleanup of subsequent development work, not a shipped runtime repair.
Discovery and isolation are preserved: The unit project includes src/**/*.test.ts; neither filename has a special isolation entry. Whole-tree filename search found no explicit dependency on either path. The retained tests exercise the unchanged renderer used by chat-message-text.ts.
Findings None None.
Security None None.

How this fits together

The Control UI converts streamed assistant text into sanitized Markdown for chat messages. Its unit tests protect formatting, incremental rendering, truncation, and literal code handling.

flowchart LR
  A[Streaming text fixtures] --> B[Retained Markdown tests]
  B --> C[Streaming Markdown renderer]
  C --> D[Sanitized HTML parts]
  D --> E[Formatting and parity assertions]
  F[UI unit test discovery] --> B
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -284. Total -284 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Maintain one discoverable streaming Markdown suite with the existing assertions and execution order intact.

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

Not applicable to a runtime bug: identical Git blobs and the shared discovery glob directly establish duplicate test coverage.

Is this the best way to solve the issue?

Yes. Deleting the redundant copy preserves the complete existing suite without adding abstractions or changing production code.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This removes redundant test discovery without changing production behavior or weakening coverage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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: This maintainer-authored test-only cleanup changes no production behavior; blob identity and unchanged discovery establish coverage preservation without a live UI demonstration.

Label justifications:

  • P3: This removes redundant test discovery without changing production behavior or weakening coverage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored test-only cleanup changes no production behavior; blob identity and unchanged discovery establish coverage preservation without a live UI demonstration.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@steipete
steipete merged commit 5180c45 into main Sep 7, 2026
86 checks passed
@steipete
steipete deleted the codex/remove-duplicate-markdown-streaming branch September 7, 2026 20:22
@steipete

steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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