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

推荐订阅源

博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
aimingoo的专栏
aimingoo的专栏
腾讯CDC
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
F
Fortinet All Blogs
G
Google Developers Blog
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
Engineering at Meta
Engineering at Meta
博客园_首页
B
Blog RSS Feed
D
Docker
M
MIT News - Artificial intelligence
爱范儿
爱范儿
I
InfoQ

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
perf(ui): skip closed slash menu rerenders · openclaw/ope...
vincentkoc · 2026-06-01 · via Recent Commits to openclaw:main

@@ -45,62 +45,60 @@ const loadSessionsMock = vi.hoisted(() =>

4545

}),

4646

);

4747

const buildChatItemsMock = vi.hoisted(() =>

48-

vi.fn(

49-

(props: { messages: unknown[]; stream: string | null; streamStartedAt: number | null }) => {

50-

if (

51-

props.messages.some(

52-

(message) =>

53-

typeof message === "object" &&

54-

message !== null &&

55-

(message as { __testDivider?: unknown })["__testDivider"] === true,

56-

)

57-

) {

58-

return [

59-

{

60-

kind: "divider",

61-

key: "divider:compaction:test",

62-

label: "Compacted history",

63-

description:

64-

"The compacted transcript is preserved as a checkpoint. Open session checkpoints to branch or restore from that compacted view.",

65-

action: {

66-

kind: "session-checkpoints",

67-

label: "Open checkpoints",

68-

},

69-

timestamp: 1,

70-

},

71-

];

72-

}

73-

if (props.messages.length > 0) {

74-

return [

75-

{

76-

kind: "group",

77-

key: "group:assistant:test",

78-

role: "assistant",

79-

messages: props.messages.map((message, index) => ({

80-

key: `message:${index}`,

81-

message,

82-

})),

83-

timestamp: 1,

84-

isStreaming: false,

48+

vi.fn((props: { messages: unknown[]; stream: string | null; streamStartedAt: number | null }) => {

49+

if (

50+

props.messages.some(

51+

(message) =>

52+

typeof message === "object" &&

53+

message !== null &&

54+

(message as { __testDivider?: unknown })["__testDivider"] === true,

55+

)

56+

) {

57+

return [

58+

{

59+

kind: "divider",

60+

key: "divider:compaction:test",

61+

label: "Compacted history",

62+

description:

63+

"The compacted transcript is preserved as a checkpoint. Open session checkpoints to branch or restore from that compacted view.",

64+

action: {

65+

kind: "session-checkpoints",

66+

label: "Open checkpoints",

8567

},

86-

];

87-

}

88-

if (props.stream !== null) {

89-

return props.stream

90-

? [

91-

{

92-

kind: "stream",

93-

key: "stream:test",

94-

text: props.stream,

95-

startedAt: props.streamStartedAt ?? 1,

96-

isStreaming: true,

97-

},

98-

]

99-

: [{ kind: "reading-indicator", key: "reading:test" }];

100-

}

101-

return [];

102-

},

103-

),

68+

timestamp: 1,

69+

},

70+

];

71+

}

72+

if (props.messages.length > 0) {

73+

return [

74+

{

75+

kind: "group",

76+

key: "group:assistant:test",

77+

role: "assistant",

78+

messages: props.messages.map((message, index) => ({

79+

key: `message:${index}`,

80+

message,

81+

})),

82+

timestamp: 1,

83+

isStreaming: false,

84+

},

85+

];

86+

}

87+

if (props.stream !== null) {

88+

return props.stream

89+

? [

90+

{

91+

kind: "stream",

92+

key: "stream:test",

93+

text: props.stream,

94+

startedAt: props.streamStartedAt ?? 1,

95+

isStreaming: true,

96+

},

97+

]

98+

: [{ kind: "reading-indicator", key: "reading:test" }];

99+

}

100+

return [];

101+

}),

104102

);

105103106104

function requireFirstAttachmentsChange(

@@ -1074,6 +1072,17 @@ describe("chat slash menu accessibility", () => {

10741072

textarea!.dispatchEvent(new KeyboardEvent("keydown", { key, bubbles: true }));

10751073

}

107610741075+

it("does not request a slash-menu rerender for plain draft input when suggestions are closed", () => {

1076+

const onDraftChange = vi.fn();

1077+

const onRequestUpdate = vi.fn();

1078+

const container = renderChatView({ onDraftChange, onRequestUpdate });

1079+1080+

inputDraft(container, "plain first message");

1081+1082+

expect(onDraftChange).toHaveBeenCalledWith("plain first message");

1083+

expect(onRequestUpdate).not.toHaveBeenCalled();

1084+

});

1085+10771086

it("wires command suggestions to the composer with stable active option ids", () => {

10781087

let draft = "";

10791088

const onDraftChange = vi.fn((next: string) => {