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

推荐订阅源

博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
云风的 BLOG
云风的 BLOG
D
Docker
罗磊的独立博客
U
Unit 42
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
P
Proofpoint News Feed
博客园 - Franky
Apple Machine Learning Research
Apple Machine Learning Research
MyScale Blog
MyScale Blog
B
Blog RSS Feed
美团技术团队
J
Java Code Geeks
S
Securelist
Cyberwarzone
Cyberwarzone
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
NISL@THU
NISL@THU
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Recorded Future
Recorded Future
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
LINUX DO - 热门话题
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
A
About on SuperTechFans
MongoDB | Blog
MongoDB | Blog
Spread Privacy
Spread Privacy
T
Tenable Blog
I
Intezer
N
News | PayPal Newsroom
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX - 技术
S
Schneier on Security
S
SegmentFault 最新的问题
Latest news
Latest news
宝玉的分享
宝玉的分享
V
Visual Studio Blog
V
V2EX
T
Tor Project blog
C
Comments on: Blog

Recent Commits to openclaw:main

fix(e2e): keep plugin binding escape smoke focused · openclaw/openclaw@823c38a fix: transient banner showing lastError leak into page headers (#88463) · openclaw/openclaw@1cb5a57 fix(gateway): guide dashboard auth after service repair (#88466) · openclaw/openclaw@615f71a fix(memory): retry transient embedding failures · openclaw/openclaw@899dc5f fix(boot): suppress fallback BOOT.md echoes · openclaw/openclaw@95b2f9c fix(media): allow explicit synthetic auth for media providers perf: speed up chat hydration and add 3d workboard · openclaw/openclaw@9f5c981 Refactor cron SQLite runtime paths (#88582) test(release): stabilize beta validation lanes · openclaw/openclaw@3525a96 fix(plugins): scope startup metadata manifest reads · openclaw/openclaw@22b8e1c fix(sms): add Twilio webhook diagnostics fix(test): repair e2e standalone regressions fix(model-auth): resolve per-entry apiKey profile references · openclaw/openclaw@f7a1d3f ci(release): run npm preflight on larger runner · openclaw/openclaw@7d8fdef fix: expose Feishu tools for named accounts refactor: extract media and ACP core packages (#88534) · openclaw/openclaw@77f1359 fix(cli): stabilize claude auth epochs on token rotation fix(reply): deliver plugin binding replies chore(lint): reduce lint suppressions feat(dreaming): add report-only shadow trial runner perf(cli): slim agent command registration · openclaw/openclaw@6fb1f38 refactor(logging): share stuck recovery session refs fix(codex): accept first-party OpenAI plugin marketplaces · openclaw/openclaw@4f3d8a5 fix(agents): surface internal abort incomplete turns · openclaw/openclaw@1556e3c fix(agents): classify internal aborts as non-deliverable fix(agents): preserve explicit active run aborts fix(logging): align diagnostic recovery dedup keys fix(ui): pair sequential tool results by fallback order · openclaw/openclaw@c2c20a0 fix(test): extend e2e vitest watchdog · openclaw/openclaw@a753e6b chore(lint): enable object-shorthand (#81808) · openclaw/openclaw@425a4ab docs: clarify package guard policy · openclaw/openclaw@724160b docs: document scoped mention patterns · openclaw/openclaw@6699e73 fix(agents): strip malformed arg-value suffixes · openclaw/openclaw@b0625bd test(plugins): cover Link agent wallet bundle shape (#75181) · openclaw/openclaw@4ca22b9 chore(lint): tighten lint exception coverage · openclaw/openclaw@3950605 fix(gateway): make bare reset commands fast · openclaw/openclaw@2c6a3f6 docs: update crabbox skill cache-volume guidance · openclaw/openclaw@7bf6667 fix(agents): route per-turn media task hints below the cache boundary… · openclaw/openclaw@778c4f9 docs: clarify message-tool-only visible replies · openclaw/openclaw@75ea8b5 feat: scope group mention patterns by channel · openclaw/openclaw@9c1adf4 fix(xiaomi): support MiMo voicedesign TTS · openclaw/openclaw@f94512c fix(cron): accept sub-second --at datetimes resolved in a timezone (#… · openclaw/openclaw@d9d5d97 fix(infra): guard against overwriting corrupt target session store du… · openclaw/openclaw@056bc46 feat(workboard): add worker dispatch CLI fix(memory): respect QMD status timeout · openclaw/openclaw@1d55caa fix(ui): prefer Talk source-reply final text · openclaw/openclaw@17c2e95 fix(scripts): timeout crabbox wrapper sanity checks · openclaw/openclaw@a0d2feb refactor(telegram): keep topic thread mapping plugin-local fix(memory): fail open when embedding recall stalls feat(doctor): expose UI freshness health findings · openclaw/openclaw@2d3fa48 docs: expand MCP operator guide chore(ui): refresh fa control ui locale chore(ui): refresh nl control ui locale · openclaw/openclaw@53e0639 chore(ui): refresh vi control ui locale chore(ui): refresh pl control ui locale · openclaw/openclaw@ee39aa8 chore(ui): refresh th control ui locale chore(ui): refresh id control ui locale · openclaw/openclaw@fce45a2 chore(ui): refresh uk control ui locale chore(ui): refresh tr control ui locale · openclaw/openclaw@b335018 chore(ui): refresh ar control ui locale chore(ui): refresh it control ui locale · openclaw/openclaw@20ab73e chore(ui): refresh fr control ui locale · openclaw/openclaw@a041e39 chore(ui): refresh ko control ui locale · openclaw/openclaw@2e0d191 chore(ui): refresh ja-JP control ui locale · openclaw/openclaw@ec949a8 chore(ui): refresh es control ui locale · openclaw/openclaw@0b9193c chore(ui): refresh pt-BR control ui locale · openclaw/openclaw@aa56f59 chore(ui): refresh zh-TW control ui locale · openclaw/openclaw@10b4057 chore(ui): refresh zh-CN control ui locale · openclaw/openclaw@ecef6ae chore(ui): refresh de control ui locale · openclaw/openclaw@f456114 feat: improve MCP operator controls (#88536) · openclaw/openclaw@617c658 chore(lint): clean sms lint fallout · openclaw/openclaw@3258338 fix(ci): repair sms channel checks · openclaw/openclaw@3a4943e fix(e2e): make plugin sweep wrappers executable · openclaw/openclaw@84b025e fix(auto-reply): redact secrets in config show output (#88496) · openclaw/openclaw@a776de2 fix(ci): repair copilot sdk drift chore(lint): enable object and reassignment rules · openclaw/openclaw@f5eca3f docs: expand SMS channel setup guide · openclaw/openclaw@ea11b8a ci: harden Crabbox Testbox runs · openclaw/openclaw@d4f78c9 fix(webchat): preserve refresh-visible history and composer state (#8… fix(check): restore core typecheck feat: add Twilio SMS channel fix(telegram): support media message edits chore: remove stale unsafe assertion suppressions Revert "fix(ci): annotate unsafe boundary casts" fix(ci): keep unsafe assertion lint disabled Revert "fix(ci): clean core unsafe assertions" · openclaw/openclaw@4471335 test: remove channel test isolation hack fix(agents): clear stale compaction bindings fix(agents): skip below-target CLI compaction failures · openclaw/openclaw@5e1e029 chore: update dependencies · openclaw/openclaw@48ccc50 docs: add Skill Workshop guide docs: remove divider comments (#88115) fix(ci): clean core unsafe assertions fix(discord): deliver same-session channel replies fix(ci): annotate unsafe boundary casts · openclaw/openclaw@8a40f90 docs: add permission modes page · openclaw/openclaw@ae651e7 fix(ci): repair extension type drift · openclaw/openclaw@4d95ae3 perf: avoid blocking gateway bind on control ui build · openclaw/openclaw@e678225 chore(lint): enable structured clone rules · openclaw/openclaw@59694e8 Fix iMessage startup watch replay (#88406) · openclaw/openclaw@87664ed
perf(cli): defer shell env for gateway dispatch · openclaw/openclaw@fde87f4
steipete · 2026-05-31 · via Recent Commits to openclaw:main

@@ -11,6 +11,16 @@ import type { agentCommand as AgentCommand } from "./agent.js";

11111212

const loadConfig = vi.hoisted(() => vi.fn());

1313

const callGateway = vi.hoisted(() => vi.fn());

14+

const isGatewayCredentialsRequiredError = vi.hoisted(() =>

15+

vi.fn(

16+

(value: unknown) => value instanceof Error && value.name === "GatewayCredentialsRequiredError",

17+

),

18+

);

19+

const isGatewayExplicitAuthRequiredError = vi.hoisted(() =>

20+

vi.fn(

21+

(value: unknown) => value instanceof Error && value.name === "GatewayExplicitAuthRequiredError",

22+

),

23+

);

1424

const isGatewayTransportError = vi.hoisted(() =>

1525

vi.fn((value: unknown) => {

1626

if (!(value instanceof Error) || value.name !== "GatewayTransportError") {

@@ -210,6 +220,8 @@ function createGatewayNormalCloseError() {

210220

vi.mock("../config/io.js", () => ({ getRuntimeConfig: loadConfig, loadConfig }));

211221

vi.mock("../gateway/call.js", () => ({

212222

callGateway,

223+

isGatewayCredentialsRequiredError,

224+

isGatewayExplicitAuthRequiredError,

213225

isGatewayTransportError,

214226

randomIdempotencyKey: () => "idem-1",

215227

}));

@@ -332,12 +344,74 @@ describe("agentCliCommand", () => {

332344

expect(params.sessionId).toBeUndefined();

333345

expect(params.to).toBeUndefined();

334346

expect(request.config).toBe(loadConfig.mock.results[0]?.value);

335-

expect(loadConfig).toHaveBeenCalledWith({ skipPluginValidation: true, pin: false });

347+

expect(loadConfig).toHaveBeenCalledWith({

348+

skipPluginValidation: true,

349+

pin: false,

350+

skipShellEnvFallback: true,

351+

});

336352

expect(agentCommand).not.toHaveBeenCalled();

337353

expect(loadAgentSessionModuleMock).not.toHaveBeenCalled();

338354

});

339355

});

340356357+

it("retries gateway dispatch with shell env fallback only when credentials need it", async () => {

358+

await withTempStore(async ({ store }) => {

359+

const fastConfig = {

360+

agents: { defaults: { timeoutSeconds: 600 } },

361+

session: { store, mainKey: "main" },

362+

};

363+

const shellEnvConfig = {

364+

...fastConfig,

365+

gateway: { auth: { mode: "token" as const } },

366+

};

367+

loadConfig.mockReset();

368+

loadConfig.mockReturnValueOnce(fastConfig);

369+

loadConfig.mockReturnValueOnce(shellEnvConfig);

370+

const authError = new Error("gateway agent requires credentials");

371+

authError.name = "GatewayCredentialsRequiredError";

372+

callGateway.mockRejectedValueOnce(authError);

373+

mockGatewaySuccessReply();

374+375+

await agentCliCommand({ message: "hi", sessionKey: "agent:main:incident-42" }, runtime);

376+377+

expect(loadConfig.mock.calls).toEqual([

378+

[{ skipPluginValidation: true, pin: false, skipShellEnvFallback: true }],

379+

[{ skipPluginValidation: true, pin: false, skipShellEnvFallback: false }],

380+

]);

381+

expect(callGateway).toHaveBeenCalledTimes(2);

382+

expect(requireRecord(callGateway.mock.calls[0]?.[0], "first gateway request").config).toBe(

383+

fastConfig,

384+

);

385+

expect(requireRecord(callGateway.mock.calls[1]?.[0], "second gateway request").config).toBe(

386+

shellEnvConfig,

387+

);

388+

});

389+

});

390+391+

it("retries gateway dispatch with shell env fallback for env URL auth", async () => {

392+

await withTempStore(async ({ store }) => {

393+

const fastConfig = {

394+

agents: { defaults: { timeoutSeconds: 600 } },

395+

session: { store, mainKey: "main" },

396+

};

397+

loadConfig.mockReset();

398+

loadConfig.mockReturnValueOnce(fastConfig);

399+

loadConfig.mockReturnValueOnce(fastConfig);

400+

const authError = new Error("gateway url override requires explicit credentials");

401+

authError.name = "GatewayExplicitAuthRequiredError";

402+

callGateway.mockRejectedValueOnce(authError);

403+

mockGatewaySuccessReply();

404+405+

await agentCliCommand({ message: "hi", sessionKey: "agent:main:incident-42" }, runtime);

406+407+

expect(loadConfig.mock.calls).toEqual([

408+

[{ skipPluginValidation: true, pin: false, skipShellEnvFallback: true }],

409+

[{ skipPluginValidation: true, pin: false, skipShellEnvFallback: false }],

410+

]);

411+

expect(callGateway).toHaveBeenCalledTimes(2);

412+

});

413+

});

414+341415

it("scopes legacy explicit session keys to the requested agent", async () => {

342416

await withTempStore(

343417

async () => {

@@ -1486,8 +1560,8 @@ describe("agentCliCommand", () => {

14861560

expect(fallbackOpts.sessionId).toMatch(/^gateway-fallback-/);

14871561

expect(fallbackOpts.sessionKey).toBe(`agent:ops:explicit:${fallbackOpts.sessionId}`);

14881562

expect(loadConfig.mock.calls).toEqual([

1489-

[{ skipPluginValidation: true, pin: false }],

1490-

[{ skipPluginValidation: true, pin: false }],

1563+

[{ skipPluginValidation: true, pin: false, skipShellEnvFallback: true }],

1564+

[{ skipPluginValidation: true, pin: false, skipShellEnvFallback: true }],

14911565

]);

14921566

},

14931567

{ agents: { list: [{ id: "ops", default: true }, { id: "main" }] } },