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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
G
Google Developers Blog
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
V
Visual Studio Blog
博客园 - Franky
S
SegmentFault 最新的问题
Jina AI
Jina AI
爱范儿
爱范儿
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
C
Check Point Blog
月光博客
月光博客
P
Proofpoint News Feed
T
The Blog of Author Tim Ferriss
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog
The GitHub Blog
The GitHub Blog
Y
Y Combinator 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
chore(deadcode): trim runtime plugin selection wrappers ·...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main

File tree

    • onboard-non-interactive/local

Original file line numberDiff line numberDiff line change

@@ -1,10 +1,6 @@

11

// Codex runtime plugin auto-install/repair helpers for OpenAI model selections.

22

import { modelSelectionShouldEnsureCodexPlugin } from "../agents/openai-routing.js";

3-

import type { OpenClawConfig } from "../config/types.openclaw.js";

4-

import {

5-

createRuntimePluginModelSelectionHelpers,

6-

type RuntimePluginInstallResult,

7-

} from "./runtime-plugin-install.js";

3+

import { createRuntimePluginModelSelectionHelpers } from "./runtime-plugin-install.js";

84
95

export const CODEX_RUNTIME_PLUGIN_ID = "codex";

106

const CODEX_RUNTIME_PLUGIN_LABEL = "Codex";

@@ -16,22 +12,13 @@ const CODEX_RUNTIME_PLUGIN_DESCRIPTOR = {

1612

warningLabel: CODEX_RUNTIME_PLUGIN_LABEL,

1713

};

1814
19-

export type CodexRuntimePluginInstallResult = RuntimePluginInstallResult;

20-
21-

/** Return true when a selected model requires the Codex runtime plugin to be installed. */

22-

export function selectedModelShouldEnsureCodexRuntimePlugin(params: {

23-

cfg: OpenClawConfig;

24-

model?: string;

25-

}): boolean {

26-

return modelSelectionShouldEnsureCodexPlugin({

27-

config: params.cfg,

28-

model: params.model,

29-

});

30-

}

31-
3215

const codexRuntimePluginInstall = createRuntimePluginModelSelectionHelpers({

3316

descriptor: CODEX_RUNTIME_PLUGIN_DESCRIPTOR,

34-

shouldEnsure: selectedModelShouldEnsureCodexRuntimePlugin,

17+

shouldEnsure: ({ cfg, model }) =>

18+

modelSelectionShouldEnsureCodexPlugin({

19+

config: cfg,

20+

model,

21+

}),

3522

});

3623
3724

export const ensureCodexRuntimePluginForModelSelection = codexRuntimePluginInstall.ensure;

Original file line numberDiff line numberDiff line change

@@ -1,10 +1,6 @@

11

// GitHub Copilot runtime plugin auto-install/repair helpers for model selections.

22

import { modelSelectionShouldEnsureCopilotRuntimePlugin } from "../agents/copilot-routing.js";

3-

import type { OpenClawConfig } from "../config/types.openclaw.js";

4-

import {

5-

createRuntimePluginModelSelectionHelpers,

6-

type RuntimePluginInstallResult,

7-

} from "./runtime-plugin-install.js";

3+

import { createRuntimePluginModelSelectionHelpers } from "./runtime-plugin-install.js";

84
95

export const COPILOT_RUNTIME_PLUGIN_ID = "copilot";

106

const COPILOT_RUNTIME_PLUGIN_LABEL = "GitHub Copilot agent runtime";

@@ -16,22 +12,13 @@ const COPILOT_RUNTIME_PLUGIN_DESCRIPTOR = {

1612

warningLabel: "GitHub Copilot",

1713

};

1814
19-

export type CopilotRuntimePluginInstallResult = RuntimePluginInstallResult;

20-
21-

/** Return true when a selected model requires the Copilot runtime plugin to be installed. */

22-

export function selectedModelShouldEnsureCopilotRuntimePlugin(params: {

23-

cfg: OpenClawConfig;

24-

model?: string;

25-

}): boolean {

26-

return modelSelectionShouldEnsureCopilotRuntimePlugin({

27-

config: params.cfg,

28-

model: params.model,

29-

});

30-

}

31-
3215

const copilotRuntimePluginInstall = createRuntimePluginModelSelectionHelpers({

3316

descriptor: COPILOT_RUNTIME_PLUGIN_DESCRIPTOR,

34-

shouldEnsure: selectedModelShouldEnsureCopilotRuntimePlugin,

17+

shouldEnsure: ({ cfg, model }) =>

18+

modelSelectionShouldEnsureCopilotRuntimePlugin({

19+

config: cfg,

20+

model,

21+

}),

3522

});

3623
3724

export const ensureCopilotRuntimePluginForModelSelection = copilotRuntimePluginInstall.ensure;

Original file line numberDiff line numberDiff line change

@@ -1,13 +1,12 @@

11

// Non-interactive plugin provider auth tests cover provider choice setup and runtime plugin install requirements.

22

import { beforeEach, describe, expect, it, vi } from "vitest";

33

import type { OpenClawConfig } from "../../../config/config.js";

4-

import type { CodexRuntimePluginInstallResult } from "../../codex-runtime-plugin-install.js";

5-

import type { CopilotRuntimePluginInstallResult } from "../../copilot-runtime-plugin-install.js";

4+

import type { RuntimePluginInstallResult } from "../../runtime-plugin-install.js";

65

import { applyNonInteractivePluginProviderChoice } from "./auth-choice.plugin-providers.js";

76
87

const ensureCodexRuntimePluginForModelSelection = vi.hoisted(() =>

98

vi.fn(

10-

async ({ cfg }: { cfg: OpenClawConfig }): Promise<CodexRuntimePluginInstallResult> => ({

9+

async ({ cfg }: { cfg: OpenClawConfig }): Promise<RuntimePluginInstallResult> => ({

1110

cfg,

1211

required: false,

1312

installed: false,

@@ -20,7 +19,7 @@ vi.mock("../../codex-runtime-plugin-install.js", () => ({

2019

}));

2120

const ensureCopilotRuntimePluginForModelSelection = vi.hoisted(() =>

2221

vi.fn(

23-

async ({ cfg }: { cfg: OpenClawConfig }): Promise<CopilotRuntimePluginInstallResult> => ({

22+

async ({ cfg }: { cfg: OpenClawConfig }): Promise<RuntimePluginInstallResult> => ({

2423

cfg,

2524

required: false,

2625

installed: false,