Repository navigation
test(ui): remove duplicate streaming Markdown coverage - #141519
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 3:56 PM ET / 19:56 UTC. ClawSweeper reviewWhat this changesRemoves 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -284. Total -284 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
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 asmarkdown-streaming-parts.test.ts. Both match Git blobc51834438a442fb5d8c80ff531bae3ec9677cc68and 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
ca10e17c129eda1548de070010bc82d731d3dcc4contains 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.markdown.test.tsis 773 counted lines and the retained streaming suite is 246, below the unchanged 1,000-line test limit.Production delta: zero. Test delta: one redundant 284-line file deleted. No baseline, timeout, assertion, or isolation changes.