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

推荐订阅源

罗磊的独立博客
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
量子位
博客园 - 三生石上(FineUI控件)
Stack Overflow Blog
Stack Overflow Blog
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
Jina AI
Jina AI
L
LangChain Blog
M
MIT News - Artificial intelligence
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学

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: repair release validation type and lint gates · open...
steipete · 2026-05-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -19,10 +19,7 @@ import {

1919

import type { MessagePresentation } from "openclaw/plugin-sdk/interactive-runtime";

2020

import { createTelegramActionGate, resolveTelegramPollActionGateState } from "./accounts.js";

2121

import { resolveTelegramInlineButtons } from "./button-types.js";

22-

import {

23-

notifyTelegramInboundTurnOutboundSuccess,

24-

type TelegramInboundTurnDeliveryKind,

25-

} from "./inbound-turn-delivery.js";

22+

import { notifyTelegramInboundTurnOutboundSuccess } from "./inbound-turn-delivery.js";

2623

import {

2724

resolveTelegramInlineButtonsScope,

2825

resolveTelegramTargetChatType,

@@ -243,7 +240,7 @@ export async function handleTelegramAction(

243240

mediaLocalRoots?: readonly string[];

244241

mediaReadFile?: (filePath: string) => Promise<Buffer>;

245242

sessionKey?: string | null;

246-

inboundTurnKind?: TelegramInboundTurnDeliveryKind | string;

243+

inboundTurnKind?: string;

247244

},

248245

): Promise<AgentToolResult<unknown>> {

249246

const { action, accountId } = {

Original file line numberDiff line numberDiff line change

@@ -41,7 +41,7 @@ function telegramDeliveryTargetsMatch(expected: string, actual: string): boolean

4141
4242

export function resolveTelegramInboundTurnDeliveryCorrelationKey(

4343

sessionKey: string | undefined,

44-

inboundTurnKind?: TelegramInboundTurnDeliveryKind | string,

44+

inboundTurnKind?: string,

4545

): string | undefined {

4646

const key = sessionKey?.trim();

4747

if (!key) {

@@ -53,7 +53,7 @@ export function resolveTelegramInboundTurnDeliveryCorrelationKey(

5353

export function beginTelegramInboundTurnDeliveryCorrelation(

5454

sessionKey: string | undefined,

5555

turn: ActiveTurn,

56-

options?: { inboundTurnKind?: TelegramInboundTurnDeliveryKind | string },

56+

options?: { inboundTurnKind?: string },

5757

): TelegramInboundTurnDeliveryEnd {

5858

const key = resolveTelegramInboundTurnDeliveryCorrelationKey(

5959

sessionKey,

@@ -74,7 +74,7 @@ export function notifyTelegramInboundTurnOutboundSuccess(params: {

7474

sessionKey: string | undefined;

7575

to: string;

7676

accountId?: string | null;

77-

inboundTurnKind?: TelegramInboundTurnDeliveryKind | string;

77+

inboundTurnKind?: string;

7878

}): void {

7979

const key = resolveTelegramInboundTurnDeliveryCorrelationKey(

8080

params.sessionKey,

Original file line numberDiff line numberDiff line change

@@ -81,7 +81,7 @@ const resolvePollingStallThresholdMs = (value: number | undefined): number => {

8181
8282

type TelegramPollingSessionOpts = {

8383

token: string;

84-

config: Parameters<typeof createTelegramBot>[0]["config"];

84+

config: NonNullable<Parameters<typeof createTelegramBot>[0]["config"]>;

8585

accountId: string;

8686

runtime: Parameters<typeof createTelegramBot>[0]["runtime"];

8787

proxyFetch: Parameters<typeof createTelegramBot>[0]["proxyFetch"];

@@ -491,7 +491,7 @@ export class TelegramPollingSession {

491491

try {

492492

const drain = await this.#drainSpooledUpdates({ bot, spoolDir });

493493

consecutiveDrainFailures = 0;

494-

for (const handlerKey of [...stalledBacklogKeys]) {

494+

for (const handlerKey of stalledBacklogKeys) {

495495

if (

496496

!activeSpooledUpdateHandlersByLane.has(handlerKey) ||

497497

!drain.blockedByLane.has(handlerKey)

Original file line numberDiff line numberDiff line change

@@ -1,7 +1,24 @@

11

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

2+

import type { ModelDefinitionConfig } from "../config/types.models.js";

23

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

34

import { resolveModelRuntimePolicy } from "./model-runtime-policy.js";

45
6+

const createModelConfig = (agentRuntimeId: string): ModelDefinitionConfig => ({

7+

id: "qwen-local",

8+

name: "Qwen Local",

9+

reasoning: false,

10+

input: ["text"],

11+

cost: {

12+

input: 0,

13+

output: 0,

14+

cacheRead: 0,

15+

cacheWrite: 0,

16+

},

17+

contextWindow: 32_768,

18+

maxTokens: 4096,

19+

agentRuntime: { id: agentRuntimeId },

20+

});

21+
522

describe("resolveModelRuntimePolicy", () => {

623

it("honors provider wildcard agent model runtime policy entries", () => {

724

const config = {

@@ -62,7 +79,8 @@ describe("resolveModelRuntimePolicy", () => {

6279

models: {

6380

providers: {

6481

vllm: {

65-

models: [{ id: "qwen-local", agentRuntime: { id: "codex" } }],

82+

baseUrl: "http://127.0.0.1:11434/v1",

83+

models: [createModelConfig("codex")],

6684

},

6785

},

6886

},

@@ -92,6 +110,7 @@ describe("resolveModelRuntimePolicy", () => {

92110

models: {

93111

providers: {

94112

vllm: {

113+

baseUrl: "http://127.0.0.1:11434/v1",

95114

agentRuntime: { id: "codex" },

96115

models: [],

97116

},

Original file line numberDiff line numberDiff line change

@@ -487,11 +487,13 @@ export function createFollowupRunner(params: {

487487

modelId: modelUsed,

488488

});

489489

} finally {

490-

for (const end of endDeliveryCorrelations.reverse()) {

490+

for (const end of endDeliveryCorrelations.toReversed()) {

491491

try {

492492

end();

493493

} catch (err) {

494-

defaultRuntime.error?.(`followup queue: delivery correlation cleanup failed: ${err}`);

494+

defaultRuntime.error?.(

495+

`followup queue: delivery correlation cleanup failed: ${formatErrorMessage(err)}`,

496+

);

495497

}

496498

}

497499

completeFollowupRunLifecycle(queued);

Original file line numberDiff line numberDiff line change

@@ -20,6 +20,7 @@ export function createQueueTestRun(params: {

2020

originatingTo?: string;

2121

originatingAccountId?: string;

2222

originatingThreadId?: string | number;

23+

currentTurnKind?: FollowupRun["currentTurnKind"];

2324

}): FollowupRun {

2425

return {

2526

prompt: params.prompt,

@@ -29,6 +30,7 @@ export function createQueueTestRun(params: {

2930

originatingTo: params.originatingTo,

3031

originatingAccountId: params.originatingAccountId,

3132

originatingThreadId: params.originatingThreadId,

33+

currentTurnKind: params.currentTurnKind,

3234

run: {

3335

agentId: "agent",

3436

agentDir: "/tmp",

Original file line numberDiff line numberDiff line change

@@ -267,7 +267,7 @@ async function dropAbortedFollowups(

267267

): Promise<number> {

268268

let dropped = 0;

269269

for (let index = items.length - 1; index >= 0; index -= 1) {

270-

const item = items[index]!;

270+

const item = items[index];

271271

if (isFollowupRunAborted(item)) {

272272

await runFollowup(item);

273273

completeFollowupRunLifecycle(item);

Original file line numberDiff line numberDiff line change

@@ -22,6 +22,7 @@ type ScopedToolsCall = {

2222

sessionKey?: string;

2323

accountId?: string;

2424

messageProvider?: string;

25+

inboundTurnKind?: string;

2526

senderIsOwner?: boolean;

2627

surface?: string;

2728

excludeToolNames?: Iterable<string>;