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

推荐订阅源

博客园_首页
IT之家
IT之家
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Help Net Security
V
V2EX
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
博客园 - 叶小钗
J
Java Code Geeks
博客园 - 【当耐特】
月光博客
月光博客
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件

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
test(qa-matrix): cover allowBots modes · openclaw/opencla...
gumadeiras · 2026-04-28 · via Recent Commits to openclaw:main

@@ -57,6 +57,14 @@ export type MatrixQaScenarioId =

5757

| "matrix-room-membership-loss"

5858

| "matrix-homeserver-restart-resume"

5959

| "matrix-mention-gating"

60+

| "matrix-allowbots-default-block"

61+

| "matrix-allowbots-true-unmentioned-open-room"

62+

| "matrix-allowbots-mentions-mentioned-room"

63+

| "matrix-allowbots-mentions-unmentioned-open-room-block"

64+

| "matrix-allowbots-mentions-dm-unmentioned"

65+

| "matrix-allowbots-room-override-blocks-account-true"

66+

| "matrix-allowbots-room-override-enables-account-off"

67+

| "matrix-allowbots-self-sender-ignored"

6068

| "matrix-mxid-prefixed-command-block"

6169

| "matrix-mention-metadata-spoof-block"

6270

| "matrix-observer-allowlist-override"

@@ -117,6 +125,7 @@ export type MatrixQaProfile =

117125

| "transport";

118126119127

export const MATRIX_QA_BLOCK_ROOM_KEY = "block";

128+

export const MATRIX_QA_BOT_DM_ROOM_KEY = "bot-dm";

120129

export const MATRIX_QA_DRIVER_DM_ROOM_KEY = "driver-dm";

121130

export const MATRIX_QA_DRIVER_DM_SHARED_ROOM_KEY = "driver-dm-shared";

122131

export const MATRIX_QA_E2EE_ROOM_KEY = "e2ee";

@@ -137,6 +146,7 @@ const MATRIX_QA_E2EE_MEDIA_TIMEOUT_MS = 180_000;

137146

function buildMatrixQaDmTopology(

138147

rooms: Array<{

139148

key: string;

149+

members?: ["driver" | "observer", "sut"];

140150

name: string;

141151

}>,

142152

): MatrixQaTopologySpec {

@@ -145,7 +155,7 @@ function buildMatrixQaDmTopology(

145155

rooms: rooms.map((room) => ({

146156

key: room.key,

147157

kind: "dm" as const,

148-

members: ["driver", "sut"],

158+

members: room.members ?? ["driver", "sut"],

149159

name: room.name,

150160

})),

151161

};

@@ -207,6 +217,14 @@ const MATRIX_QA_SHARED_DM_TOPOLOGY = buildMatrixQaDmTopology([

207217

},

208218

]);

209219220+

const MATRIX_QA_BOT_DM_TOPOLOGY = buildMatrixQaDmTopology([

221+

{

222+

key: MATRIX_QA_BOT_DM_ROOM_KEY,

223+

members: ["observer", "sut"],

224+

name: "Matrix QA Observer/SUT Bot DM",

225+

},

226+

]);

227+210228

const MATRIX_QA_SECONDARY_ROOM_TOPOLOGY = buildMatrixQaSingleGroupTopology({

211229

key: MATRIX_QA_SECONDARY_ROOM_KEY,

212230

name: "Matrix QA Secondary Room",

@@ -655,6 +673,110 @@ export const MATRIX_QA_SCENARIOS: MatrixQaScenarioDefinition[] = [

655673

timeoutMs: 8_000,

656674

title: "Matrix room message without mention does not trigger",

657675

},

676+

{

677+

id: "matrix-allowbots-default-block",

678+

timeoutMs: 8_000,

679+

title: "Matrix allowBots default blocks configured bot senders",

680+

configOverrides: {

681+

configuredBotRoles: ["observer"],

682+

groupAllowRoles: ["driver", "observer"],

683+

},

684+

},

685+

{

686+

id: "matrix-allowbots-true-unmentioned-open-room",

687+

timeoutMs: 45_000,

688+

title: "Matrix allowBots=true accepts unmentioned configured bot messages in open rooms",

689+

configOverrides: {

690+

allowBots: true,

691+

configuredBotRoles: ["observer"],

692+

groupAllowRoles: ["driver", "observer"],

693+

groupsByKey: {

694+

[MATRIX_QA_MAIN_ROOM_KEY]: {

695+

requireMention: false,

696+

},

697+

},

698+

},

699+

},

700+

{

701+

id: "matrix-allowbots-mentions-mentioned-room",

702+

timeoutMs: 45_000,

703+

title: "Matrix allowBots=mentions accepts mentioned configured bot messages",

704+

configOverrides: {

705+

allowBots: "mentions",

706+

configuredBotRoles: ["observer"],

707+

groupAllowRoles: ["driver", "observer"],

708+

},

709+

},

710+

{

711+

id: "matrix-allowbots-mentions-unmentioned-open-room-block",

712+

timeoutMs: 8_000,

713+

title: "Matrix allowBots=mentions blocks unmentioned configured bot messages in open rooms",

714+

configOverrides: {

715+

allowBots: "mentions",

716+

configuredBotRoles: ["observer"],

717+

groupAllowRoles: ["driver", "observer"],

718+

groupsByKey: {

719+

[MATRIX_QA_MAIN_ROOM_KEY]: {

720+

requireMention: false,

721+

},

722+

},

723+

},

724+

},

725+

{

726+

id: "matrix-allowbots-mentions-dm-unmentioned",

727+

timeoutMs: 45_000,

728+

title: "Matrix allowBots=mentions accepts unmentioned configured bot DMs",

729+

topology: MATRIX_QA_BOT_DM_TOPOLOGY,

730+

configOverrides: {

731+

allowBots: "mentions",

732+

configuredBotRoles: ["observer"],

733+

},

734+

},

735+

{

736+

id: "matrix-allowbots-room-override-blocks-account-true",

737+

timeoutMs: 8_000,

738+

title: "Matrix room allowBots=false overrides account allowBots=true",

739+

configOverrides: {

740+

allowBots: true,

741+

configuredBotRoles: ["observer"],

742+

groupAllowRoles: ["driver", "observer"],

743+

groupsByKey: {

744+

[MATRIX_QA_MAIN_ROOM_KEY]: {

745+

allowBots: false,

746+

requireMention: false,

747+

},

748+

},

749+

},

750+

},

751+

{

752+

id: "matrix-allowbots-room-override-enables-account-off",

753+

timeoutMs: 45_000,

754+

title: "Matrix room allowBots=mentions overrides account allowBots off",

755+

configOverrides: {

756+

configuredBotRoles: ["observer"],

757+

groupAllowRoles: ["driver", "observer"],

758+

groupsByKey: {

759+

[MATRIX_QA_MAIN_ROOM_KEY]: {

760+

allowBots: "mentions",

761+

requireMention: true,

762+

},

763+

},

764+

},

765+

},

766+

{

767+

id: "matrix-allowbots-self-sender-ignored",

768+

timeoutMs: 8_000,

769+

title: "Matrix allowBots=true still ignores messages from the SUT user id",

770+

configOverrides: {

771+

allowBots: true,

772+

groupAllowRoles: ["driver", "observer", "sut"],

773+

groupsByKey: {

774+

[MATRIX_QA_MAIN_ROOM_KEY]: {

775+

requireMention: false,

776+

},

777+

},

778+

},

779+

},

658780

{

659781

id: "matrix-mxid-prefixed-command-block",

660782

timeoutMs: 8_000,

@@ -1077,6 +1199,8 @@ const MATRIX_QA_FAST_PROFILE_SCENARIO_IDS = [

10771199

"matrix-approval-exec-metadata-chunked",

10781200

"matrix-restart-resume",

10791201

"matrix-mention-gating",

1202+

"matrix-allowbots-default-block",

1203+

"matrix-allowbots-mentions-mentioned-room",

10801204

"matrix-allowlist-block",

10811205

"matrix-e2ee-basic-reply",

10821206

] satisfies MatrixQaScenarioId[];