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

推荐订阅源

小众软件
小众软件
博客园_首页
博客园 - 聂微东
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
D
Docker
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Jina AI
Jina AI
博客园 - Franky
D
DataBreaches.Net

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 run session status key · openclaw/op...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main

@@ -465,6 +465,52 @@ describe("runCodexAppServerAttempt", () => {

465465

expect(dynamicToolNames).toContain("message");

466466

});

467467468+

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

469+

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

470+

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

471+

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

472+

params.disableTools = false;

473+

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

474+

params.config = {

475+

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

476+

tools: { profile: "coding" },

477+

};

478+

await fs.writeFile(

479+

sessionsPath,

480+

JSON.stringify({

481+

"agent:main:main": {

482+

sessionId: "s-main",

483+

updatedAt: 10,

484+

status: "running",

485+

},

486+

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

487+

sessionId: "s-telegram-policy",

488+

updatedAt: 5,

489+

status: "done",

490+

},

491+

}),

492+

);

493+494+

const dynamicTools = await __testing.buildDynamicTools({

495+

params,

496+

resolvedWorkspace: workspaceDir,

497+

effectiveWorkspace: workspaceDir,

498+

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

499+

sandbox: null,

500+

runAbortController: new AbortController(),

501+

sessionAgentId: "main",

502+

pluginConfig: {},

503+

onYieldDetected: () => undefined,

504+

});

505+

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

506+507+

expect(sessionStatus).toBeDefined();

508+

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

509+

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

510+

"agent:main:main",

511+

);

512+

});

513+468514

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

469515

vi.useFakeTimers();

470516

let capturedSignal: AbortSignal | undefined;