Repository navigation
tests: Add additional abort phrases to tests - #61067
alosslessdev wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bacd7569f4
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| "STOP OPENCLAW", | ||
| "stop openclaw!!!", | ||
| "stop don’t do anything", | ||
| "cancel", |
There was a problem hiding this comment.
Align new positive abort phrases with runtime trigger list
Adding "cancel" (and the other newly added localized phrases in this block) to the positive isAbortTrigger table makes this test fail immediately, because isAbortTrigger only checks ABORT_TRIGGERS in src/auto-reply/reply/abort-primitives.ts, and those new strings are not present there. In this commit, the loop at abort.test.ts:294 will assert true for values the production matcher currently returns false, so CI is red unless the runtime trigger set is updated in the same change.
Useful? React with 👍 / 👎.
Greptile SummaryThis PR adds 23 multilingual abort phrases (Spanish, French, Hindi, Arabic, and However, the PR is incomplete: it only adds the phrases to the test assertions but does not add them to the production
Confidence Score: 1/5Not safe to merge — every new test assertion will fail against the current production implementation. The PR tests behavior that does not exist yet: none of the 23 added phrases are present in the ABORT_TRIGGERS set in abort-primitives.ts. The entire new test block will fail on pnpm test. The implementation file must be updated before this lands. src/auto-reply/reply/abort-primitives.ts must be updated to include all new phrases in ABORT_TRIGGERS; src/auto-reply/reply/abort.test.ts lines 273-276 have trailing whitespace.
|
Summary
Describe the problem and fix in 2–5 bullets:
Problem: The OpenClaw agent stop commands were for the most part tested 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)
Scope (select all touched areas)
User-visible / Behavior Changes
None
Diagram (if applicable)
N/A
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoHuman Verification (required)
What you personally verified (not just CI), and how:
Review Conversations
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
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.