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

推荐订阅源

Recent Announcements
Recent Announcements
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
小众软件
小众软件
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
A
About on SuperTechFans
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
B
Blog RSS Feed
G
Google Developers Blog
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)

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): preserve terminal outcome ordering (#93287) ·...
steipete · 2026-06-15 · via Recent Commits to openclaw:main

@@ -2788,22 +2788,24 @@ describe("CodexAppServerEventProjector", () => {

27882788

terminalPresentation = observation.terminalPresentation;

27892789

},

27902790

});

2791+

const item = {

2792+

type: "commandExecution",

2793+

id: "command-clear-presentation",

2794+

command: "git status --short",

2795+

cwd: "/workspace",

2796+

processId: null,

2797+

source: "agent",

2798+

status: "completed",

2799+

commandActions: [{ type: "unknown", command: "git status --short" }],

2800+

aggregatedOutput: "",

2801+

exitCode: 0,

2802+

durationMs: 1,

2803+

};

279128042805+

await projector.handleNotification(forCurrentTurn("item/started", { item }));

27922806

await projector.handleNotification(

27932807

forCurrentTurn("item/completed", {

2794-

item: {

2795-

type: "commandExecution",

2796-

id: "command-clear-presentation",

2797-

command: "git status --short",

2798-

cwd: "/workspace",

2799-

processId: null,

2800-

source: "agent",

2801-

status: "completed",

2802-

commandActions: [{ type: "unknown", command: "git status --short" }],

2803-

aggregatedOutput: "",

2804-

exitCode: 0,

2805-

durationMs: 1,

2806-

},

2808+

item,

28072809

}),

28082810

);

28092811

@@ -2826,9 +2828,90 @@ describe("CodexAppServerEventProjector", () => {

28262828

id: "image-view-clear-presentation",

28272829

path: "/workspace/reference.png",

28282830

},

2831+

{

2832+

type: "dynamicToolCall",

2833+

id: "stale-dynamic-tool",

2834+

turnId: "turn-old",

2835+

tool: "web_fetch",

2836+

status: "completed",

2837+

},

2838+

]),

2839+

);

2840+2841+

expect(terminalPresentation).toBeUndefined();

2842+

});

2843+2844+

it("keeps a later dynamic presentation over an earlier snapshot-only native tool", async () => {

2845+

let terminalPresentation: string | undefined = "later dynamic result";

2846+

let latestOrdinal = 1;

2847+

let nextOrdinal = 0;

2848+

const projector = await createProjector({

2849+

...(await createParams()),

2850+

allocateToolOutcomeOrdinal: () => nextOrdinal++,

2851+

onToolOutcome: (observation) => {

2852+

const ordinal = observation.toolCallOrdinal ?? latestOrdinal + 1;

2853+

if (ordinal >= latestOrdinal) {

2854+

latestOrdinal = ordinal;

2855+

terminalPresentation = observation.terminalPresentation;

2856+

}

2857+

},

2858+

});

2859+

const nativeItem = {

2860+

type: "imageView",

2861+

id: "image-view-before-dynamic",

2862+

path: "/workspace/reference.png",

2863+

};

2864+2865+

await projector.handleNotification(

2866+

forCurrentTurn("item/completed", {

2867+

item: nativeItem,

2868+

}),

2869+

);

2870+2871+

await projector.handleNotification(

2872+

turnCompleted([

2873+

nativeItem,

2874+

{

2875+

type: "dynamicToolCall",

2876+

id: "dynamic-after-image-view",

2877+

turnId: TURN_ID,

2878+

tool: "web_fetch",

2879+

status: "completed",

2880+

},

2881+

{

2882+

type: "imageView",

2883+

id: "stale-image-view",

2884+

turnId: "turn-old",

2885+

path: "/workspace/stale.png",

2886+

},

28292887

]),

28302888

);

283128892890+

expect(terminalPresentation).toBe("later dynamic result");

2891+

});

2892+2893+

it("clears a prior presentation for a completion-only native item without a turn snapshot", async () => {

2894+

let terminalPresentation: string | undefined = "stale dynamic result";

2895+

let nextOrdinal = 1;

2896+

const projector = await createProjector({

2897+

...(await createParams()),

2898+

allocateToolOutcomeOrdinal: () => nextOrdinal++,

2899+

onToolOutcome: (observation) => {

2900+

terminalPresentation = observation.terminalPresentation;

2901+

},

2902+

});

2903+2904+

await projector.handleNotification(

2905+

forCurrentTurn("item/completed", {

2906+

item: {

2907+

type: "imageView",

2908+

id: "completion-only-image-view",

2909+

path: "/workspace/reference.png",

2910+

},

2911+

}),

2912+

);

2913+

await projector.handleNotification(turnCompleted([]));

2914+28322915

expect(terminalPresentation).toBeUndefined();

28332916

});

28342917