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

推荐订阅源

Y
Y Combinator Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
量子位
V
Visual Studio Blog
博客园 - Franky
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
罗磊的独立博客
小众软件
小众软件
V
V2EX
GbyAI
GbyAI
B
Blog RSS Feed
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
月光博客
月光博客
Recent Announcements
Recent Announcements
雷峰网
雷峰网
F
Fortinet All Blogs
M
MIT News - Artificial intelligence

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
feat(discord): remove harness runtime dropdown from /mode...
sjf · 2026-05-12 · via Recent Commits to openclaw:main

@@ -78,8 +78,6 @@ export type DiscordModelPickerModelViewParams = {

7878

currentModel?: string;

7979

pendingModel?: string;

8080

pendingModelIndex?: number;

81-

currentRuntime?: string;

82-

pendingRuntime?: string;

8381

quickModels?: string[];

8482

layout?: DiscordModelPickerLayout;

8583

};

@@ -166,37 +164,6 @@ function createModelSelect(params: {

166164

return new DiscordModelPickerSelect();

167165

}

168166169-

function getRuntimeChoices(params: {

170-

data: ModelsProviderData;

171-

provider: string;

172-

}): Array<{ id: string; label: string; description?: string }> {

173-

return (

174-

params.data.runtimeChoicesByProvider?.get(normalizeProviderId(params.provider)) ?? [

175-

{

176-

id: "pi",

177-

label: "OpenClaw Pi Default",

178-

description: "Use the built-in OpenClaw Pi runtime.",

179-

},

180-

]

181-

);

182-

}

183-184-

function resolveSelectedRuntime(params: {

185-

data: ModelsProviderData;

186-

provider: string;

187-

currentRuntime?: string;

188-

pendingRuntime?: string;

189-

}): string {

190-

const choices = getRuntimeChoices({ data: params.data, provider: params.provider });

191-

const allowed = new Set(choices.map((choice) => choice.id));

192-

const pending = params.pendingRuntime?.trim();

193-

if (pending && allowed.has(pending)) {

194-

return pending;

195-

}

196-

const current = params.currentRuntime?.trim();

197-

return current && allowed.has(current) ? current : "pi";

198-

}

199-200167

function buildRenderedShell(

201168

params: DiscordModelPickerRenderShellParams,

202169

): DiscordModelPickerRenderedView {

@@ -276,8 +243,6 @@ function buildModelRows(params: {

276243

currentModel?: string;

277244

pendingModel?: string;

278245

pendingModelIndex?: number;

279-

currentRuntime?: string;

280-

pendingRuntime?: string;

281246

quickModels?: string[];

282247

}): { rows: DiscordModelPickerRow[]; buttonRow: Row<Button> } {

283248

const parsedCurrentModel = parseCurrentModelRef(params.currentModel);

@@ -314,56 +279,6 @@ function buildModelRows(params: {

314279

]),

315280

);

316281317-

const runtimeChoices = getRuntimeChoices({

318-

data: params.data,

319-

provider: params.modelPage.provider,

320-

});

321-

const selectedRuntime = resolveSelectedRuntime({

322-

data: params.data,

323-

provider: params.modelPage.provider,

324-

currentRuntime: params.currentRuntime,

325-

pendingRuntime: params.pendingRuntime,

326-

});

327-

const normalizedCurrentRuntime = params.currentRuntime?.trim();

328-

const shouldCarryRuntime =

329-

runtimeChoices.length > 1 ||

330-

(Boolean(normalizedCurrentRuntime) &&

331-

normalizedCurrentRuntime !== "auto" &&

332-

normalizedCurrentRuntime !== "pi" &&

333-

normalizedCurrentRuntime !== "default");

334-

const stateRuntime = shouldCarryRuntime ? selectedRuntime : undefined;

335-

if (runtimeChoices.length > 1) {

336-

rows.push(

337-

new Row([

338-

createModelSelect({

339-

customId: buildDiscordModelPickerCustomId({

340-

command: params.command,

341-

action: "runtime",

342-

view: "models",

343-

provider: params.modelPage.provider,

344-

runtime: selectedRuntime,

345-

page: params.modelPage.page,

346-

providerPage: providerPage.page,

347-

modelIndex: params.pendingModelIndex,

348-

userId: params.userId,

349-

}),

350-

options: runtimeChoices.map((choice) => {

351-

const option: APISelectMenuOption = {

352-

label: choice.label,

353-

value: choice.id,

354-

default: choice.id === selectedRuntime,

355-

};

356-

if (choice.description) {

357-

option.description = choice.description;

358-

}

359-

return option;

360-

}),

361-

placeholder: "Select runtime",

362-

}),

363-

]),

364-

);

365-

}

366-367282

const selectedModelRef = parsedPendingModel ?? parsedCurrentModel;

368283

const modelOptions: APISelectMenuOption[] = params.modelPage.items.map((model) => ({

369284

label: model,

@@ -381,7 +296,6 @@ function buildModelRows(params: {

381296

action: "model",

382297

view: "models",

383298

provider: params.modelPage.provider,

384-

runtime: stateRuntime,

385299

page: params.modelPage.page,

386300

providerPage: providerPage.page,

387301

userId: params.userId,

@@ -413,7 +327,6 @@ function buildModelRows(params: {

413327

action: "cancel",

414328

view: "models",

415329

provider: params.modelPage.provider,

416-

runtime: stateRuntime,

417330

page: params.modelPage.page,

418331

providerPage: providerPage.page,

419332

userId: params.userId,

@@ -428,7 +341,6 @@ function buildModelRows(params: {

428341

action: "reset",

429342

view: "models",

430343

provider: params.modelPage.provider,

431-

runtime: stateRuntime,

432344

page: params.modelPage.page,

433345

providerPage: providerPage.page,

434346

userId: params.userId,

@@ -446,7 +358,6 @@ function buildModelRows(params: {

446358

action: "recents",

447359

view: "recents",

448360

provider: params.modelPage.provider,

449-

runtime: stateRuntime,

450361

page: params.modelPage.page,

451362

providerPage: providerPage.page,

452363

userId: params.userId,

@@ -465,7 +376,6 @@ function buildModelRows(params: {

465376

action: "submit",

466377

view: "models",

467378

provider: params.modelPage.provider,

468-

runtime: stateRuntime,

469379

page: params.modelPage.page,

470380

providerPage: providerPage.page,

471381

modelIndex: params.pendingModelIndex,

@@ -549,19 +459,12 @@ export function renderDiscordModelPickerModelsView(

549459

currentModel: params.currentModel,

550460

pendingModel: params.pendingModel,

551461

pendingModelIndex: params.pendingModelIndex,

552-

currentRuntime: params.currentRuntime,

553-

pendingRuntime: params.pendingRuntime,

554462

quickModels: params.quickModels,

555463

});

556464557465

const defaultModel = `${params.data.resolvedDefault.provider}/${params.data.resolvedDefault.model}`;

558466

const pendingLine = params.pendingModel

559-

? `Selected: ${params.pendingModel} · runtime ${resolveSelectedRuntime({

560-

data: params.data,

561-

provider: modelPage.provider,

562-

currentRuntime: params.currentRuntime,

563-

pendingRuntime: params.pendingRuntime,

564-

})} (press Submit)`

467+

? `Selected: ${params.pendingModel} (press Submit)`

565468

: "Select a model, then press Submit.";

566469567470

return buildRenderedShell({