惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
爱范儿
爱范儿
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
有赞技术团队
有赞技术团队
博客园_首页
T
The Blog of Author Tim Ferriss
T
Tailwind CSS Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园 - Franky
量子位
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
aimingoo的专栏
aimingoo的专栏
M
MIT News - Artificial intelligence

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(codex): ignore echoed abort marker prompts · openclaw...
steipete · 2026-05-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -2924,10 +2924,14 @@ describe("runCodexAppServerAttempt", () => {

29242924
29252925

it("does not treat a user prompt containing the interrupted marker as terminal", async () => {

29262926

const harness = createStartedThreadHarness();

2927-

const run = runCodexAppServerAttempt(

2928-

createParams(path.join(tempDir, "session.jsonl"), path.join(tempDir, "workspace")),

2929-

{ turnTerminalIdleTimeoutMs: 60_000 },

2927+

const markerPrompt =

2928+

"<turn_aborted>\nThe user interrupted the previous turn on purpose. Any running unified exec processes may still be running in the background. If any tools/commands were aborted, they may have partially executed.\n</turn_aborted>";

2929+

const params = createParams(

2930+

path.join(tempDir, "session.jsonl"),

2931+

path.join(tempDir, "workspace"),

29302932

);

2933+

params.prompt = markerPrompt;

2934+

const run = runCodexAppServerAttempt(params, { turnTerminalIdleTimeoutMs: 60_000 });

29312935

let resolved = false;

29322936

void run.then(() => {

29332937

resolved = true;

@@ -2946,7 +2950,7 @@ describe("runCodexAppServerAttempt", () => {

29462950

content: [

29472951

{

29482952

type: "input_text",

2949-

text: "<turn_aborted>\nWhat does this marker mean?\n</turn_aborted>",

2953+

text: markerPrompt,

29502954

},

29512955

],

29522956

},

Original file line numberDiff line numberDiff line change

@@ -1148,7 +1148,8 @@ export async function runCodexAppServerAttempt(

11481148

// See openclaw/openclaw#67996.

11491149

const isTurnCompletion = notification.method === "turn/completed" && isCurrentTurnNotification;

11501150

const isTurnAbortMarker =

1151-

isCurrentTurnNotification && isCodexTurnAbortMarkerNotification(notification);

1151+

isCurrentTurnNotification &&

1152+

isCodexTurnAbortMarkerNotification(notification, { currentPromptText: promptBuild.prompt });

11521153

const isTurnTerminal = isTurnCompletion || isTurnAbortMarker;

11531154

try {

11541155

await projector.handleNotification(notification);

@@ -2357,7 +2358,10 @@ const CODEX_INTERRUPTED_USER_GUIDANCE =

23572358

const CODEX_INTERRUPTED_DEVELOPER_GUIDANCE =

23582359

"The previous turn was interrupted on purpose. Any running unified exec processes may still be running in the background. If any tools/commands were aborted, they may have partially executed.";

23592360
2360-

function isCodexTurnAbortMarkerNotification(notification: CodexServerNotification): boolean {

2361+

function isCodexTurnAbortMarkerNotification(

2362+

notification: CodexServerNotification,

2363+

options: { currentPromptText?: string } = {},

2364+

): boolean {

23612365

if (notification.method !== "rawResponseItem/completed" || !isJsonObject(notification.params)) {

23622366

return false;

23632367

}

@@ -2367,6 +2371,9 @@ function isCodexTurnAbortMarkerNotification(notification: CodexServerNotificatio

23672371

return false;

23682372

}

23692373

const text = extractRawResponseItemText(item).trim();

2374+

if (role === "user" && text === options.currentPromptText?.trim()) {

2375+

return false;

2376+

}

23702377

const markerBody = readCodexTurnAbortMarkerBody(text);

23712378

return (

23722379

markerBody === CODEX_INTERRUPTED_USER_GUIDANCE ||