Skip to content

Commit 0ce471f

Browse files
i18n(abort): add Turkish, Korean, and Italian abort triggers
Add missing language coverage to the ABORT_TRIGGERS set: - Turkish (tr): 'dur', 'iptal' - Korean (ko): '멈춰' - Italian (it): 'fermati' These languages were omitted from the multilingual expansion in #25103. Follows the same conservative pattern: 1-2 entries per language, matching the baseline established for Arabic (1), Hindi (1), Chinese (1), and Portuguese (1). Relates to #26113 (configurable abort triggers) — this is a stopgap fix for the most-requested missing languages. A proper config-driven solution is tracked in that issue. Tests: extended isAbortTrigger and isAbortRequestText coverage for all three new locales.
1 parent a623c9c commit 0ce471f

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

src/auto-reply/reply/abort.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,13 @@ describe("abort detection", () => {
175175
"hoer auf",
176176
"stopp",
177177
"pare",
178+
// Turkish (tr)
179+
"dur",
180+
"iptal",
181+
// Korean (ko)
182+
"멈춰",
183+
// Italian (it)
184+
"fermati",
178185
];
179186
for (const candidate of positives) {
180187
expect(isAbortTrigger(candidate)).toBe(true);
@@ -202,6 +209,10 @@ describe("abort detection", () => {
202209
expect(isAbortRequestText("stopp")).toBe(true);
203210
expect(isAbortRequestText("pare")).toBe(true);
204211
expect(isAbortRequestText(" توقف ")).toBe(true);
212+
expect(isAbortRequestText("dur")).toBe(true);
213+
expect(isAbortRequestText("iptal")).toBe(true);
214+
expect(isAbortRequestText("멈춰")).toBe(true);
215+
expect(isAbortRequestText("fermati")).toBe(true);
205216
expect(isAbortRequestText("/stop@openclaw_bot", { botUsername: "openclaw_bot" })).toBe(true);
206217
expect(isAbortRequestText("/Stop@openclaw_bot", { botUsername: "openclaw_bot" })).toBe(true);
207218

src/auto-reply/reply/abort.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { OpenClawConfig } from "../../config/config.js";
2+
import type { FinalizedMsgContext, MsgContext } from "../templating.js";
13
import { resolveSessionAgentId } from "../../agents/agent-scope.js";
24
import { abortEmbeddedPiRun } from "../../agents/pi-embedded.js";
35
import {
@@ -8,7 +10,6 @@ import {
810
resolveInternalSessionKey,
911
resolveMainSessionAlias,
1012
} from "../../agents/tools/sessions-helpers.js";
11-
import type { OpenClawConfig } from "../../config/config.js";
1213
import {
1314
loadSessionStore,
1415
resolveStorePath,
@@ -19,7 +20,6 @@ import { logVerbose } from "../../globals.js";
1920
import { parseAgentSessionKey } from "../../routing/session-key.js";
2021
import { resolveCommandAuthorization } from "../command-auth.js";
2122
import { normalizeCommandBody, type CommandNormalizeOptions } from "../commands-registry.js";
22-
import type { FinalizedMsgContext, MsgContext } from "../templating.js";
2323
import {
2424
applyAbortCutoffToSessionEntry,
2525
resolveAbortCutoffFromContext,
@@ -58,6 +58,13 @@ const ABORT_TRIGGERS = new Set([
5858
"hoer auf",
5959
"stopp",
6060
"pare",
61+
// Turkish (tr)
62+
"dur",
63+
"iptal",
64+
// Korean (ko)
65+
"멈춰",
66+
// Italian (it)
67+
"fermati",
6168
"stop openclaw",
6269
"openclaw stop",
6370
"stop action",

0 commit comments

Comments
 (0)