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

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
小众软件
小众软件
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog

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(providers): handle proxied DeepSeek V4 replay · openc...
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -686,6 +686,128 @@ describe("skill-workshop", () => {

686686

);

687687

});

688688689+

it("uses the configured agent default for reviewer fallback", async () => {

690+

const workspaceDir = await makeTempDir();

691+

const stateDir = await makeTempDir();

692+

const runEmbeddedPiAgent = vi.fn(async () => ({

693+

payloads: [{ text: JSON.stringify({ action: "none" }) }],

694+

meta: {},

695+

}));

696+

const api = createTestPluginApi({

697+

config: {

698+

agents: {

699+

defaults: {

700+

model: { primary: "openai-codex/gpt-5.5" },

701+

},

702+

},

703+

},

704+

runtime: {

705+

agent: {

706+

defaults: { provider: "openai", model: "gpt-5.4" },

707+

resolveAgentDir: () => path.join(workspaceDir, ".agent"),

708+

runEmbeddedPiAgent,

709+

},

710+

state: {

711+

resolveStateDir: () => stateDir,

712+

},

713+

} as never,

714+

});

715+716+

await reviewTranscriptForProposal({

717+

api,

718+

config: {

719+

enabled: true,

720+

autoCapture: true,

721+

approvalPolicy: "pending",

722+

reviewMode: "llm",

723+

reviewInterval: 1,

724+

reviewMinToolCalls: 1,

725+

reviewTimeoutMs: 5_000,

726+

maxPending: 50,

727+

maxSkillBytes: 40_000,

728+

},

729+

ctx: { agentId: "main", workspaceDir },

730+

messages: [{ role: "user", content: "Remember this repeatable fix." }],

731+

});

732+733+

expect(runEmbeddedPiAgent).toHaveBeenCalledWith(

734+

expect.objectContaining({

735+

provider: "openai-codex",

736+

model: "gpt-5.5",

737+

}),

738+

);

739+

});

740+741+

it("infers reviewer fallback provider for a bare configured model", async () => {

742+

const workspaceDir = await makeTempDir();

743+

const stateDir = await makeTempDir();

744+

const runEmbeddedPiAgent = vi.fn(async () => ({

745+

payloads: [{ text: JSON.stringify({ action: "none" }) }],

746+

meta: {},

747+

}));

748+

const api = createTestPluginApi({

749+

config: {

750+

agents: {

751+

defaults: {

752+

model: { primary: "gpt-5.5" },

753+

},

754+

},

755+

models: {

756+

providers: {

757+

"openai-codex": {

758+

baseUrl: "https://chatgpt.com/backend-api/codex",

759+

models: [

760+

{

761+

id: "gpt-5.5",

762+

name: "GPT 5.5",

763+

reasoning: true,

764+

input: ["text"],

765+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

766+

contextWindow: 200_000,

767+

maxTokens: 128_000,

768+

},

769+

],

770+

},

771+

},

772+

},

773+

},

774+

runtime: {

775+

agent: {

776+

defaults: { provider: "openai", model: "gpt-5.4" },

777+

resolveAgentDir: () => path.join(workspaceDir, ".agent"),

778+

runEmbeddedPiAgent,

779+

},

780+

state: {

781+

resolveStateDir: () => stateDir,

782+

},

783+

} as never,

784+

});

785+786+

await reviewTranscriptForProposal({

787+

api,

788+

config: {

789+

enabled: true,

790+

autoCapture: true,

791+

approvalPolicy: "pending",

792+

reviewMode: "llm",

793+

reviewInterval: 1,

794+

reviewMinToolCalls: 1,

795+

reviewTimeoutMs: 5_000,

796+

maxPending: 50,

797+

maxSkillBytes: 40_000,

798+

},

799+

ctx: { agentId: "main", workspaceDir },

800+

messages: [{ role: "user", content: "Remember this bare-model default." }],

801+

});

802+803+

expect(runEmbeddedPiAgent).toHaveBeenCalledWith(

804+

expect.objectContaining({

805+

provider: "openai-codex",

806+

model: "gpt-5.5",

807+

}),

808+

);

809+

});

810+689811

it("runs reviewer after threshold and queues the proposal", async () => {

690812

const workspaceDir = await makeTempDir();

691813

const stateDir = await makeTempDir();