Skip to content

fix:add abort messages mostly in other languages - #61075

Closed
alosslessdev wants to merge 3 commits into
openclaw:mainfrom
alosslessdev:patch-2
Closed

alosslessdev wants to merge 3 commits into
openclaw:mainfrom
alosslessdev:patch-2

Conversation

@alosslessdev

@alosslessdev alosslessdev commented Apr 4, 2026 •

Copy link
Copy Markdown

Summary

Describe the problem and fix in 2–5 bullets:

Problem: The OpenClaw agent stop commands were for the most part written in english and languages in developed countries, making it risky for users with other mother languages to interrupt the agent in an emergency.

Why it matters: Safety and accessibility; users need to be able to halt agent execution in their native language to prevent unwanted actions. It is important to ensure agents are controllable in as many languages as possible.

What changed: Added localized "stop" and "interrupt" string arrays for Spanish, French, Arabic, Hindi and one in English.

What did NOT change (scope boundary): This PR only adds trigger strings; it does not change the underlying orchestration logic of how the "stop" signal is processed.

Change Type (select all)

  • [ x] Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • [ x] Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • [ x] UI / DX
  • CI/CD / infra

User-visible / Behavior Changes

None

Diagram (if applicable)

N/A

Security Impact (required)

  • New permissions/capabilities? (Yes/No) No
  • Secrets/tokens handling changed? (Yes/No) No
  • New/changed network calls? (Yes/No) No
  • Command/tool execution surface changed? (Yes/No) No
  • Data access scope changed? (Yes/No) No

Human Verification (required)

What you personally verified (not just CI), and how:

  • Verified scenarios: several words for stopping were missing in Spanish, Hindi, Arabic and to a lesser extent in French,
  • Edge cases checked: phrases that contain one of the words that were added
  • What you did not verify: Did not verify right-to-left (RTL) rendering in the UI for Arabic, only the string matching logic.

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.

Compatibility / Migration

  • Backward compatible? (Yes/No) Yes
  • Config/env changes? (Yes/No) No
  • Migration needed? (Yes/No) No

Risks and Mitigations

List only real risks for this PR. Add/remove entries as needed. If none, write None.

  • Risk: None
    • Mitigation: None

@alosslessdev
alosslessdev marked this pull request as draft April 4, 2026 23:35
@greptile-apps

greptile-apps Bot commented Apr 4, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR expands the ABORT_TRIGGERS set with localized stop/interrupt strings for Spanish (12 terms), French (2 terms), Hindi (5 terms), and Arabic (3 terms), plus "cancel" in English. All newly added strings are covered by matching test cases in abort.test.ts, addressing the test-coverage gap noted in the prior review thread. The matching logic is unchanged and remains strict exact-match after normalization, so common multi-word phrases containing these words (e.g. "para ti", "no lo hagas nada más") will not false-positive.

Confidence Score: 5/5

Safe to merge; no logic changes, only additive string additions with full test coverage.

All remaining findings are P2 (the unresolved avorter connotation concern from a previous thread). The test-coverage gap previously flagged is now fully addressed. No new P0 or P1 issues were identified.

No files require special attention.

Greploops — Automatically fix all review issues by running /greploops in Claude Code. It iterates: fix, push, re-review, repeat until 5/5 confidence.
Use the Greptile plugin for Claude Code to query reviews, search comments, and manage custom context directly from your terminal.

Reviews (2): Last reviewed commit: "update abort.test" | Re-trigger Greptile

@alosslessdev alosslessdev changed the title add abort messages mostly in other languages fix:add abort messages mostly in other languages Apr 4, 2026
@alosslessdev
alosslessdev marked this pull request as ready for review April 4, 2026 23:49
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@clawsweeper

clawsweeper Bot commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

This PR remains useful because current main still lacks most proposed localized triggers, but the final head has a definite French source/test mismatch and no real behavior proof. The phrase set also needs maintainer judgment because every accepted exact match is consumed as an abort request before normal message handling.

Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

So I’m closing this here because the remaining work is already tracked in the canonical issue.

Review details

Best possible solution:

Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

Do we have a high-confidence way to reproduce the issue?

Yes for the source-level behavior: exact set membership deterministically triggers abort handling, and the French source/test mismatch is directly visible on the final head. No real channel reproduction was supplied.

Is this the best way to solve the issue?

No, not in its current form. The shared detector is the correct implementation boundary, but the branch needs current-main rebasing, source/test alignment, language-safety review, and live positive and negative proof.

Security review:

Security review cleared: The patch changes only static trigger strings and tests, with no concrete secret, permission, dependency, artifact, or supply-chain concern.

AGENTS.md: found and applied where relevant.

What I checked:

  • stale F-rated PR: PR was opened 2026-04-04T23:35:11Z, is older than 30 days, and the latest review rated it F.
  • proof blocker: real behavior proof is missing and proof tier is F, so this branch is not merge-ready without contributor follow-up.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • Vincent Koc: Recent current-main commits introduced and maintained the canonical split abort detector and its adjacent tests. (role: recent area contributor; confidence: medium; commits: b66f0b6ca3bb, 041f0b87eca4; files: src/auto-reply/reply/abort-primitives.ts, src/auto-reply/reply/abort.ts, src/auto-reply/reply/abort.test.ts)

Codex review notes: model internal, reasoning high; reviewed against 418d7e1e83c5.

@clawsweeper clawsweeper Bot added the mantis: telegram-visible-proof Mantis should capture Telegram visible proof. label May 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label May 11, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels May 19, 2026
@clawsweeper

clawsweeper Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat.

Where did the egg go?
  • The egg game starts only after the PR passes the real-behavior proof check.
  • Before that, no creature or rarity is rolled. The treat waits for real proof.
  • This is still just collectible flavor: proof affects review readiness, not creature quality.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jun 11, 2026
@clawsweeper

clawsweeper Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

@alosslessdev

Copy link
Copy Markdown
Author

Superseded by #181990, which rebases the change onto current main, fixes the French source/test mismatch, and adds positive/negative coverage plus proof.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant