Repository navigation
fix(text): bound trimMiddle for small caps - #687
Conversation
Co-authored-by: Cameron Beeley <[email protected]>
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 10:40 PM ET / July 19, 2026, 02:40 UTC. Summary Reproducibility: yes. —source inspection gives a deterministic reproduction path: pass text longer than a cap below 120, where the pre-fix edge calculation becomes negative and produces reverse-slice output. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Attach a redacted terminal transcript from a fresh build that invokes Do we have a high-confidence way to reproduce the issue? Yes—source inspection gives a deterministic reproduction path: pass text longer than a cap below 120, where the pre-fix edge calculation becomes negative and produces reverse-slice output. Is this the best way to solve the issue? Yes—the guard keeps small and non-positive caps within a simple prefix-boundary path while retaining the established middle-elision behavior for larger caps. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f8d5393f5894. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
Co-authored-by: Cameron Beeley <[email protected]>
Summary
trimMiddlefor small and non-positive capsThanks @anagnorisis2peripeteia for the report and original diagnosis.
Proof
pnpm run buildnode --test test/clawsweeper-text.test.tsCloses #571