Repository navigation
Conversation
truncate() reserved maxChars-1 for a single-char ellipsis but appended the three-character '...', causing truncated values to overflow by 2 characters. This broke fixed-width padEnd() column alignment in the commitments table. Change maxChars-1 to maxChars-3 to match the actual ellipsis width. Closes openclaw#95921.
|
Thanks for the context here. I did a careful shell check against current Close: current main already fixes the commitments table truncation bug via #95923, with the repository-preferred single-character ellipsis and regression coverage; this PR is now a redundant conflicting branch. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the current-main implementation from #95923 and close redundant candidate branches for the same commitments table bug. Do we have a high-confidence way to reproduce the issue? No current-main failure reproduces from source inspection: Is this the best way to solve the issue? No, this PR is no longer the best landing path. The current-main fix uses the established one-character ellipsis convention and includes command-path regression tests, while this branch is redundant and conflicting. Security review: Security review cleared: The diff only changes CLI string formatting in one TypeScript command file and does not touch dependencies, workflows, credentials, package metadata, or execution surfaces. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d1b917120a47; fix evidence: commit 33afb1ec70d5, main fix timestamp 2026-06-24T07:18:49Z. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fixes #95921: truncate() reserved only 1 char for ellipsis (maxChars-1) but appended "...", causing +2 overflow breaking fixed-width table columns.
Fix: maxChars-1 → maxChars-3.
Linked context
Closes #95921
Real behavior proof (required for external PRs)
node -e "function t(v,m){return v.length<=m?v:v.slice(0,m-3)+...} console.log(t(0123456789abcdefg,16).length)"Risk
None — deterministic one-character fix.
🤖 Generated with Claude Code