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

推荐订阅源

Martin Fowler
Martin Fowler
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
The Cloudflare Blog
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
C
Check Point Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
F
Fortinet All Blogs
B
Blog
大猫的无限游戏
大猫的无限游戏
N
Netflix TechBlog - Medium
B
Blog RSS Feed
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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(cli): authorize gateway model probe overrides · openc...
steipete · 2026-04-29 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -46,6 +46,7 @@ Docs: https://docs.openclaw.ai

4646

- Chat commands: include configured model-catalog reasoning metadata when building `/think` argument menus so Ollama Cloud and other provider-owned reasoning models show supported levels instead of only `off`. Fixes #73515; supersedes #73568. Thanks @danielzinhu99 and @neeravmakwana.

4747

- Channels/Telegram: suppress generic tool-progress chatter when preview streaming is off, so non-streaming Telegram turns only deliver final replies while approvals, media, and errors still route normally. Refs #72363 and #72482. Thanks @neeravmakwana and @SweetSophia.

4848

- CLI/model probes: add repeatable image `--file` inputs to `infer model run` for local and gateway multimodal model smokes, so vision models such as Ollama Qwen VL and Gemini can be tested through the raw model-probe surface. Fixes #63700. Thanks @cedricjanssens.

49+

- CLI/model probes: request trusted operator scope for `infer model run --gateway --model <provider/model>` so Gateway raw model smokes can use one-off provider/model overrides instead of being rejected before provider auth resolution. Fixes #73759. Thanks @chrislro.

4950

- CLI/image describe: pass `--prompt` and `--timeout-ms` through `infer image describe` and `describe-many`, so custom vision instructions and slow local model budgets reach media-understanding providers such as Ollama, OpenAI, Google, and OpenRouter. Refs #63700. Thanks @cedricjanssens.

5051

- WhatsApp/Web: pass explicit Baileys socket timings into every WhatsApp Web socket and expose `web.whatsapp.*` keepalive, connect, and query timeout settings so unstable networks can avoid repeated 408 disconnect and opening-handshake timeout loops. Fixes #56365. (#73580) Thanks @velvet-shark.

5152

- Channels/Telegram: persist native command metadata on target sessions so topic, helper, and ACP-bound slash commands keep their session metadata attached to the routed conversation. (#57548) Thanks @GaosCode.

Original file line numberDiff line numberDiff line change

@@ -135,6 +135,7 @@ This table maps common inference tasks to the corresponding infer command.

135135

- `model run --file` accepts image files, detects their MIME type, and sends them with the supplied prompt to the selected model. Repeat `--file` for multiple images.

136136

- `model run --file` rejects non-image inputs. Use `infer audio transcribe` for audio files and `infer video describe` for video files.

137137

- `model run --gateway` exercises Gateway routing, saved auth, provider selection, and the embedded runtime, but still runs as a raw model probe: it sends the supplied prompt and any image attachments without prior session transcript, bootstrap/AGENTS context, context-engine assembly, tools, or bundled MCP servers.

138+

- `model run --gateway --model <provider/model>` requires a trusted operator gateway credential because the request asks the Gateway to run a one-off provider/model override.

138139
139140

## Model

140141
Original file line numberDiff line numberDiff line change

@@ -589,6 +589,38 @@ describe("capability cli", () => {

589589

);

590590

});

591591
592+

it("requests admin scope for gateway model probes with provider/model overrides", async () => {

593+

await runRegisteredCli({

594+

register: registerCapabilityCli as (program: Command) => void,

595+

argv: [

596+

"capability",

597+

"model",

598+

"run",

599+

"--prompt",

600+

"hello",

601+

"--gateway",

602+

"--model",

603+

"anthropic/claude-haiku-4-5",

604+

"--json",

605+

],

606+

});

607+
608+

expect(mocks.callGateway).toHaveBeenCalledWith(

609+

expect.objectContaining({

610+

clientName: "gateway-client",

611+

method: "agent",

612+

mode: "backend",

613+

scopes: ["operator.admin"],

614+

params: expect.objectContaining({

615+

provider: "anthropic",

616+

model: "claude-haiku-4-5",

617+

modelRun: true,

618+

promptMode: "none",

619+

}),

620+

}),

621+

);

622+

});

623+
592624

it("rejects empty model run prompts before gateway dispatch", async () => {

593625

await expect(

594626

runRegisteredCli({

Original file line numberDiff line numberDiff line change

@@ -22,6 +22,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";

2222

import { callGateway, randomIdempotencyKey } from "../gateway/call.js";

2323

import { buildGatewayConnectionDetailsWithResolvers } from "../gateway/connection-details.js";

2424

import { isLoopbackHost } from "../gateway/net.js";

25+

import { ADMIN_SCOPE } from "../gateway/operator-scopes.js";

2526

import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../gateway/protocol/client-info.js";

2627

import { generateImage, listRuntimeImageGenerationProviders } from "../image-generation/runtime.js";

2728

import type {

@@ -702,6 +703,9 @@ async function runModelRun(params: {

702703

}

703704
704705

const { provider, model } = resolveModelRefOverride(params.model);

706+

// Provider/model overrides require trusted-operator scope. Use the backend

707+

// shared-secret lane so local gateway smokes do not depend on paired CLI device scopes.

708+

const hasModelOverride = Boolean(provider || model);

705709

const response: {

706710

result?: {

707711

payloads?: Array<{ text?: string; mediaUrl?: string | null; mediaUrls?: string[] }>;

@@ -730,8 +734,9 @@ async function runModelRun(params: {

730734

},

731735

expectFinal: true,

732736

timeoutMs: 120_000,

733-

clientName: GATEWAY_CLIENT_NAMES.CLI,

734-

mode: GATEWAY_CLIENT_MODES.CLI,

737+

clientName: hasModelOverride ? GATEWAY_CLIENT_NAMES.GATEWAY_CLIENT : GATEWAY_CLIENT_NAMES.CLI,

738+

mode: hasModelOverride ? GATEWAY_CLIENT_MODES.BACKEND : GATEWAY_CLIENT_MODES.CLI,

739+

...(hasModelOverride ? { scopes: [ADMIN_SCOPE] } : {}),

735740

});

736741

return {

737742

ok: true,