You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
slug: not idempotent — slice after trailing-dash trim can re-introduce a trailing dash #572
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
slug(value, fallback, maxLength) in src/repair/text-utils.ts:19 trims edge dashes and THEN .slice(0, maxLength), so slicing on a - boundary re-introduces a trailing dash.
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 18, 2026, 10:35 PM ET / July 19, 2026, 02:35 UTC.
Summary
This issue remains necessary: the merged PR was deliberately narrowed to the separate compactText correction, and the recent reopening comment confirms that the slug implementation was removed before merge and is not fixed on current main.
Reproducibility: yes. at source level: the report provides a deterministic two-call input sequence against the slug normalization order and a concrete expected idempotence invariant. This review did not execute the helper, so the status is source-reproducible rather than reproduced.
Next step
A recent maintainer decision confirms the bug remains, while the clawsweeper:no-new-fix-pr routing signal means a maintainer should choose whether to sponsor the focused follow-up rather than dispatching another automated branch now.
Review details
Best possible solution:
Apply one focused slug normalization-order correction, preserving fallback semantics, and add boundary tests that prove no trailing dash is returned after truncation and that slug(slug(value)) is unchanged.
Do we have a high-confidence way to reproduce the issue?
Yes, at source level: the report provides a deterministic two-call input sequence against the slug normalization order and a concrete expected idempotence invariant. This review did not execute the helper, so the status is source-reproducible rather than reproduced.
Is this the best way to solve the issue?
Yes, a post-slice edge-dash trim is the narrowest maintainable fix, provided the implementation retains the helper's existing fallback behavior and receives boundary/idempotence regression coverage.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
The focused correction should retain existing fallback behavior for values that become empty after normalization, with regression coverage for both truncation and idempotence.
Codex review notes: model internal, reasoning high; reviewed against f8d5393f5894.
Label changes
Label changes:
add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.
remove clawsweeper:linked-pr-open: Current issue advisory state no longer selects this label.
Label justifications:
P3: This is a narrow helper-invariant bug with limited user-facing blast radius and a focused proposed correction.
Focused source-level reproduction: The report identifies the slug normalization order in src/repair/text-utils.ts and gives a two-call idempotence counterexample: truncating "a a" to length 2 yields "a-", while normalizing that result yields "a". (src/repair/text-utils.ts:19, f8d5393f5894)
Repository policy routing: The repository policy requires conservative review and treats the clawsweeper:no-new-fix-pr signal as a reason to avoid duplicating implementation work until maintainer triage chooses the next path. (AGENTS.md:1, f8d5393f5894)
Likely related people:
steipete: Authored the reopening decision that distinguishes the merged compactText fix from this still-unfixed slug behavior. (role: recent triage decision author; confidence: high; commits: f8d5393f5894; files: src/repair/text-utils.ts)
How this review workflow works
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.
Thanks for the report. We?ve confirmed this is separate from the recent ClawSweeper review/publication stability incident.
Our immediate priority is keeping the recovered path stable and completing a careful maintainer review of outstanding changes. We will review this report and its linked implementation together in the next maintenance pass, then leave a specific decision here.
Please do not treat this as a request for further changes at present.
I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.
Re-review progress:
State: Complete
Detail: The durable review comment was published and its verdict was queued for target-serialized routing.
Reopening: #576 was deliberately narrowed before merge to the compactText fix for #573 only. This issue's implementation was removed from the final diff, so the merge did not fix it. GitHub nevertheless applied the PR's older closing relationship at merge time.
No new contributor changes requested. This restores the pre-merge open state for separate maintainer triage.
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
Activity
clawsweeper commentedon Jul 15, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 18, 2026, 10:35 PM ET / July 19, 2026, 02:35 UTC.
Summary
This issue remains necessary: the merged PR was deliberately narrowed to the separate
compactTextcorrection, and the recent reopening comment confirms that theslugimplementation was removed before merge and is not fixed on currentmain.Likely related people: steipete — recent triage decision author (high confidence).
Reproducibility: yes. at source level: the report provides a deterministic two-call input sequence against the
slugnormalization order and a concrete expected idempotence invariant. This review did not execute the helper, so the status is source-reproducible rather than reproduced.Next step
A recent maintainer decision confirms the bug remains, while the
clawsweeper:no-new-fix-prrouting signal means a maintainer should choose whether to sponsor the focused follow-up rather than dispatching another automated branch now.Review details
Best possible solution:
Apply one focused
slugnormalization-order correction, preserving fallback semantics, and add boundary tests that prove no trailing dash is returned after truncation and thatslug(slug(value))is unchanged.Do we have a high-confidence way to reproduce the issue?
Yes, at source level: the report provides a deterministic two-call input sequence against the
slugnormalization order and a concrete expected idempotence invariant. This review did not execute the helper, so the status is source-reproducible rather than reproduced.Is this the best way to solve the issue?
Yes, a post-slice edge-dash trim is the narrowest maintainable fix, provided the implementation retains the helper's existing fallback behavior and receives boundary/idempotence regression coverage.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against f8d5393f5894.
Label changes
Label changes:
clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.clawsweeper:linked-pr-open: Current issue advisory state no longer selects this label.Label justifications:
P3: This is a narrow helper-invariant bug with limited user-facing blast radius and a focused proposed correction.Evidence reviewed
What I checked:
compactTextfix for compactText: overflows maxLength for small caps (returns bare '...') #573, that this issue's implementation was removed from the final diff, and that the merge did not fix this issue. (f8d5393f5894)compactTextsmall-cap bounds; its final body closes compactText: overflows maxLength for small caps (returns bare '...') #573 rather than this issue. (f8d5393f5894)slugnormalization order insrc/repair/text-utils.tsand gives a two-call idempotence counterexample: truncating"a a"to length 2 yields"a-", while normalizing that result yields"a". (src/repair/text-utils.ts:19, f8d5393f5894)clawsweeper:no-new-fix-prsignal as a reason to avoid duplicating implementation work until maintainer triage chooses the next path. (AGENTS.md:1, f8d5393f5894)Likely related people:
compactTextfix from this still-unfixedslugbehavior. (role: recent triage decision author; confidence: high; commits: f8d5393f5894; files:src/repair/text-utils.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.fix(text): harden string helpers against small/degenerate inputs
brokemac79 commentedon Jul 16, 2026
Thanks for the report. We?ve confirmed this is separate from the recent ClawSweeper review/publication stability incident.
Our immediate priority is keeping the recovered path stable and completing a careful maintainer review of outstanding changes. We will review this report and its linked implementation together in the next maintenance pass, then leave a specific decision here.
Please do not treat this as a request for further changes at present.
brokemac79 commentedon Jul 18, 2026
@clawsweeper re-review
clawsweeper commentedon Jul 18, 2026
🦞🧹
ClawSweeper re-review requested.
I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow
sweep.yml, eventrepository_dispatch).Result: the existing ClawSweeper review comment will be edited in place when the review finishes.
Re-review progress:
steipete commentedon Jul 19, 2026
Reopening: #576 was deliberately narrowed before merge to the
compactTextfix for #573 only. This issue's implementation was removed from the final diff, so the merge did not fix it. GitHub nevertheless applied the PR's older closing relationship at merge time.No new contributor changes requested. This restores the pre-merge open state for separate maintainer triage.
steipete commentedon Jul 19, 2026
Fixed by #688.
Proof:
cf4e83eff832627124add153fa0d737536de4408fix(text): bound compactText for tiny caps (openclaw#576)
fix(text): bound compactText for tiny caps (openclaw#576)