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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
Last Week in AI
Last Week in AI
罗磊的独立博客
量子位
Jina AI
Jina AI
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
美团技术团队
雷峰网
雷峰网
爱范儿
爱范儿
S
SegmentFault 最新的问题
小众软件
小众软件
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

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(qqbot): preserve framework command authorization (#77...
drobison00 · 2026-05-05 · via Recent Commits to openclaw:main

File tree

  • extensions/qqbot/src/bridge/commands

Original file line numberDiff line numberDiff line change

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

207207

- TUI: replace the stale-response watchdog notice with plain user-facing copy so stalled replies no longer surface backend or streaming internals. (#77120) Thanks @davemorin.

208208

- Security/Windows: validate `SystemRoot`/`WINDIR` env values through the Windows install-root validator and add them to the dangerous-host-env policy when resolving `icacls.exe`/`whoami.exe` for `openclaw security audit`, so workspace `.env` overrides and bare command names cannot redirect Windows ACL helpers to attacker-controlled binaries. (#74458) Thanks @mmaps.

209209

- Security/Windows: pin Windows registry-probe `reg.exe` resolution to the canonical Windows install root in install-root probing, so `SystemRoot`/`WINDIR` env overrides cannot redirect registry queries during Windows host detection. (#74454) Thanks @mmaps.

210+

- QQBot: preserve the framework command authorization decision when converting framework command contexts into engine slash command contexts, so downstream slash handlers see `commandAuthorized` matching the channel's resolved `isAuthorizedSender` instead of a hardcoded `true`. (#77453) Thanks @drobison00.

210211
211212

## 2026.5.3-1

212213
Original file line numberDiff line numberDiff line change

@@ -0,0 +1,55 @@

1+

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";

2+

import type { PluginCommandContext } from "openclaw/plugin-sdk/plugin-entry";

3+

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

4+

import { buildFrameworkSlashContext } from "./framework-context-adapter.js";

5+
6+

function createCommandContext(isAuthorizedSender: boolean): PluginCommandContext {

7+

return {

8+

senderId: "SENDER_OPENID",

9+

channel: "qqbot",

10+

isAuthorizedSender,

11+

args: "on",

12+

commandBody: "/bot-streaming on",

13+

config: {} as OpenClawConfig,

14+

from: "qqbot:c2c:SENDER_OPENID",

15+

requestConversationBinding: async () => undefined,

16+

detachConversationBinding: async () => ({ removed: false }),

17+

getCurrentConversationBinding: async () => null,

18+

} as unknown as PluginCommandContext;

19+

}

20+
21+

describe("buildFrameworkSlashContext", () => {

22+

it("preserves the framework authorization decision in the slash context", () => {

23+

const authorized = buildFrameworkSlashContext({

24+

ctx: createCommandContext(true),

25+

account: {

26+

accountId: "default",

27+

enabled: true,

28+

appId: "app",

29+

clientSecret: "secret",

30+

secretSource: "config",

31+

markdownSupport: true,

32+

config: {},

33+

},

34+

from: { msgType: "c2c", targetType: "c2c", targetId: "SENDER_OPENID" },

35+

commandName: "bot-streaming",

36+

});

37+

const unauthorized = buildFrameworkSlashContext({

38+

ctx: createCommandContext(false),

39+

account: {

40+

accountId: "default",

41+

enabled: true,

42+

appId: "app",

43+

clientSecret: "secret",

44+

secretSource: "config",

45+

markdownSupport: true,

46+

config: {},

47+

},

48+

from: { msgType: "c2c", targetType: "c2c", targetId: "SENDER_OPENID" },

49+

commandName: "bot-streaming",

50+

});

51+
52+

expect(authorized.commandAuthorized).toBe(true);

53+

expect(unauthorized.commandAuthorized).toBe(false);

54+

});

55+

});

Original file line numberDiff line numberDiff line change

@@ -54,7 +54,7 @@ export function buildFrameworkSlashContext({

5454

accountId: account.accountId,

5555

appId: account.appId,

5656

accountConfig: account.config as unknown as Record<string, unknown>,

57-

commandAuthorized: true,

57+

commandAuthorized: ctx.isAuthorizedSender,

5858

queueSnapshot: { ...DEFAULT_QUEUE_SNAPSHOT },

5959

};

6060

}