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

推荐订阅源

博客园_首页
IT之家
IT之家
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Help Net Security
V
V2EX
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
博客园 - 叶小钗
J
Java Code Geeks
博客园 - 【当耐特】
月光博客
月光博客
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件

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
test(perf): narrow codex session key test · openclaw/open...
steipete · 2026-05-06 · via Recent Commits to openclaw:main

@@ -509,64 +509,25 @@ describe("runCodexAppServerAttempt", () => {

509509

expect(__testing.shouldForceMessageTool(params)).toBe(false);

510510

});

511511512-

it("passes the live run session key to Codex dynamic tools when sandbox policy uses another key", async () => {

512+

it("passes the live run session key to Codex dynamic tools when sandbox policy uses another key", () => {

513513

const workspaceDir = path.join(tempDir, "workspace");

514-

const sessionsPath = path.join(tempDir, "sessions.json");

515514

const params = createParams(path.join(tempDir, "session.jsonl"), workspaceDir);

516-

params.disableTools = false;

517515

params.sessionKey = "agent:main:main";

518-

params.config = {

519-

session: { store: sessionsPath, mainKey: "main", scope: "per-sender" },

520-

tools: { profile: "coding" },

521-

};

522-

params.runtimePlan = buildCodexRuntimePlan(params, workspaceDir);

523-

await fs.writeFile(

524-

sessionsPath,

525-

JSON.stringify({

526-

"agent:main:main": {

527-

sessionId: "s-main",

528-

updatedAt: 10,

529-

status: "running",

530-

},

531-

"agent:main:telegram:default:direct:1234": {

532-

sessionId: "s-telegram-policy",

533-

updatedAt: 5,

534-

status: "done",

535-

},

536-

}),

537-

);

538-

let seenRunSessionKey: string | undefined;

539-

__testing.setOpenClawCodingToolsFactoryForTests((options) => {

540-

seenRunSessionKey = options?.runSessionKey;

541-

return [

542-

{

543-

name: "session_status",

544-

description: "session status test tool",

545-

parameters: { type: "object", properties: {} },

546-

execute: vi.fn(async () => ({ details: { sessionKey: options?.runSessionKey } })),

547-

},

548-

] as never;

516+517+

expect(

518+

__testing.resolveOpenClawCodingToolsSessionKeys(

519+

params,

520+

"agent:main:telegram:default:direct:1234",

521+

),

522+

).toEqual({

523+

sessionKey: "agent:main:telegram:default:direct:1234",

524+

runSessionKey: "agent:main:main",

549525

});

550526551-

const dynamicTools = await __testing.buildDynamicTools({

552-

params,

553-

resolvedWorkspace: workspaceDir,

554-

effectiveWorkspace: workspaceDir,

555-

sandboxSessionKey: "agent:main:telegram:default:direct:1234",

556-

sandbox: null,

557-

runAbortController: new AbortController(),

558-

sessionAgentId: "main",

559-

pluginConfig: {},

560-

onYieldDetected: () => undefined,

561-

});

562-

const sessionStatus = dynamicTools.find((tool) => tool.name === "session_status");

563-564-

expect(sessionStatus).toBeDefined();

565-

const result = await sessionStatus?.execute("call-current", { sessionKey: "current" });

566-

expect(seenRunSessionKey).toBe("agent:main:main");

567-

expect((result?.details as { sessionKey?: string } | undefined)?.sessionKey).toBe(

568-

"agent:main:main",

569-

);

527+

expect(__testing.resolveOpenClawCodingToolsSessionKeys(params, "agent:main:main")).toEqual({

528+

sessionKey: "agent:main:main",

529+

runSessionKey: undefined,

530+

});

570531

});

571532572533

it("returns a failed dynamic tool response when an app-server tool call exceeds the deadline", async () => {