Repository navigation
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 14, 2026, 5:18 AM ET / 09:18 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR reduces substring allocation and regular-expression work when scanning progress-card Markdown while preserving existing tag-matching behavior. Merge readiness✅ Ready for maintainer review Keep open: the remaining optimization is distinct from the merged repairs, and the pinned diff introduces no actionable correctness finding. The earlier startup-loading concern no longer applies to this narrowed patch. Priority: P2 Review scores
Verification
How this fits togetherControl UI progress cards send their Markdown through raw-content removal before rendering and HTML sanitization. This scanner removes paired raw-content blocks and passes the remaining text to the existing renderer. flowchart LR
A[Progress card Markdown] --> B[Input length limit]
B --> C[ASCII tag checks]
C --> D[Unicode fallback when needed]
C --> E[Pair and remove raw blocks]
D --> E
E --> F[Markdown rendering and sanitization]
F --> G[Displayed progress card]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +32. Total +32 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the optimization within the existing scanner, preserving Unicode semantics, removal behavior, sanitization, and the unchanged preprocessing budgets. Do we have a high-confidence way to reproduce the issue? No independently established timing failure: the existing adversarial inputs provide a concrete check, but exceeding 100 ms depends on runtime load and was not reproduced in this read-only review. Is this the best way to solve the issue? Yes. The patch optimizes the existing scanner without changing its pairing algorithm, accepted character sets, public interfaces, or performance thresholds. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5c12872ea0f0. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
53812ca to
0b444df
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
0b444df to
ead8e05
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
#148030 landed the remaining transcript file-budget repair, while #147911 covered the sidebar/timing failures. The lazy-catalog reduction and ASCII scanner fast path here are optional, unrelated optimizations rather than current qualification blockers; they should return as focused changes only if current evidence requires them. Closing this conflicting mixed branch as superseded. |
Progress-card Markdown preprocessing repeatedly allocates substrings and runs Unicode regular expressions for ordinary ASCII raw-content tags. On large malformed progress text, that work can cross the bounded preprocessing budget under runner load.
Add allocation-light ASCII checks for raw tag names, word boundaries, and closing-tag whitespace. Keep the existing Unicode regular expressions as fallbacks, preserving mixed-case, Unicode case-folding and boundary behavior, malformed closing-tag rejection, and raw-block removal semantics.
Validation on the current-main replacement head:
node scripts/check-changed.mjspassedThere is no visual output change, so screenshot evidence does not apply.