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

推荐订阅源

D
Docker
Apple Machine Learning Research
Apple Machine Learning Research
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
腾讯CDC
B
Blog RSS Feed
H
Help Net Security
J
Java Code Geeks
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
博客园_首页
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
博客园 - Franky
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 叶小钗
Martin Fowler
Martin Fowler

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(session_status): prefer runSessionKey for implicit no...
leno23 · 2026-05-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -534,6 +534,35 @@ describe("session_status tool", () => {

534534

expect(details.sessionKey).toBe("main");

535535

});

536536
537+

it("uses runSessionKey thinking level for implicit no-arg status lookups (#82669)", async () => {

538+

resetSessionStore({

539+

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

540+

sessionId: "s-tg-direct",

541+

updatedAt: 5,

542+

status: "done",

543+

thinkingLevel: "off",

544+

},

545+

"agent:main:main": {

546+

sessionId: "s-main",

547+

updatedAt: 10,

548+

status: "running",

549+

thinkingLevel: "high",

550+

},

551+

});

552+
553+

const tool = createSessionStatusTool({

554+

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

555+

runSessionKey: "agent:main:main",

556+

config: mockConfig as never,

557+

});

558+
559+

await tool.execute("call-implicit-run-session-thinking", {});

560+
561+

const statusArg = mockCallArg(buildStatusMessageMock) as Record<string, unknown>;

562+

const sessionEntry = statusArg.sessionEntry as SessionEntry;

563+

expect(sessionEntry.thinkingLevel).toBe("high");

564+

});

565+
537566

it("resolves sessionKey=current to runSessionKey under default tree visibility (#76708)", async () => {

538567

resetSessionStore({

539568

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

Original file line numberDiff line numberDiff line change

@@ -397,12 +397,20 @@ export function createSessionStatusTool(opts?: {

397397

});

398398
399399

const requestedKeyParam = readStringParam(params, "sessionKey");

400+

const isImplicitRunSessionStatus =

401+

requestedKeyParam === undefined && Boolean(opts?.runSessionKey?.trim());

400402

let requestedKeyRaw = requestedKeyParam ?? opts?.agentSessionKey;

401403
404+

// No-arg status should prefer the live run session when available (#82669).

405+

if (isImplicitRunSessionStatus) {

406+

requestedKeyRaw = opts?.runSessionKey;

407+

}

408+
402409

// Track whether this is a semantic-current request (literal "current" or a

403410

// current-client alias) BEFORE any rewrite, so visibility treats it as self.

404411

const isSemanticCurrentRequest =

405412

requestedKeyRaw === "current" ||

413+

isImplicitRunSessionStatus ||

406414

Boolean(

407415

resolveCurrentSessionClientAlias({

408416

key: requestedKeyRaw ?? "",

@@ -558,7 +566,7 @@ export function createSessionStatusTool(opts?: {

558566

const fallback = resolveImplicitCurrentSessionFallback({

559567

allowFallback: isSemanticCurrentRequest || requestedKeyParam === undefined,

560568

fallbackKey:

561-

isSemanticCurrentRequest && opts?.runSessionKey

569+

(isSemanticCurrentRequest || isImplicitRunSessionStatus) && opts?.runSessionKey

562570

? opts.runSessionKey

563571

: storeScopedRequesterKey,

564572

});