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

推荐订阅源

V
Visual Studio Blog
爱范儿
爱范儿
GbyAI
GbyAI
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
C
Check Point Blog
H
Help Net Security
P
Proofpoint News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog RSS Feed
Y
Y Combinator Blog
U
Unit 42
T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
S
SegmentFault 最新的问题
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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: tighten msteams conversation timestamps · openclaw/...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -57,79 +57,86 @@ describe.each(storeFactories)("msteams conversation store ($name)", ({ createSto

5757

it("upserts, lists, removes, and resolves users by both AAD and Bot Framework ids", async () => {

5858

const store = await createStore();

595960-

await store.upsert("conv-a", {

61-

conversation: { id: "conv-a" },

62-

channelId: "msteams",

63-

serviceUrl: "https://service.example.com",

64-

user: { id: "user-a", aadObjectId: "aad-a", name: "Alice" },

65-

});

60+

vi.useFakeTimers();

61+

try {

62+

vi.setSystemTime(new Date("2026-03-25T20:00:00.000Z"));

63+

await store.upsert("conv-a", {

64+

conversation: { id: "conv-a" },

65+

channelId: "msteams",

66+

serviceUrl: "https://service.example.com",

67+

user: { id: "user-a", aadObjectId: "aad-a", name: "Alice" },

68+

});

666967-

await store.upsert("conv-b", {

68-

conversation: { id: "conv-b" },

69-

channelId: "msteams",

70-

serviceUrl: "https://service.example.com",

71-

user: { id: "user-b", aadObjectId: "aad-b", name: "Bob" },

72-

});

70+

vi.setSystemTime(new Date("2026-03-25T20:00:30.000Z"));

71+

await store.upsert("conv-b", {

72+

conversation: { id: "conv-b" },

73+

channelId: "msteams",

74+

serviceUrl: "https://service.example.com",

75+

user: { id: "user-b", aadObjectId: "aad-b", name: "Bob" },

76+

});

737774-

await expect(store.get("conv-a")).resolves.toEqual({

75-

conversation: { id: "conv-a" },

76-

channelId: "msteams",

77-

serviceUrl: "https://service.example.com",

78-

user: { id: "user-a", aadObjectId: "aad-a", name: "Alice" },

79-

lastSeenAt: expect.any(String),

80-

});

78+

await expect(store.get("conv-a")).resolves.toEqual({

79+

conversation: { id: "conv-a" },

80+

channelId: "msteams",

81+

serviceUrl: "https://service.example.com",

82+

user: { id: "user-a", aadObjectId: "aad-a", name: "Alice" },

83+

lastSeenAt: "2026-03-25T20:00:00.000Z",

84+

});

818582-

await expect(store.list()).resolves.toEqual([

83-

{

84-

conversationId: "conv-a",

85-

reference: {

86-

conversation: { id: "conv-a" },

87-

channelId: "msteams",

88-

serviceUrl: "https://service.example.com",

89-

user: { id: "user-a", aadObjectId: "aad-a", name: "Alice" },

90-

lastSeenAt: expect.any(String),

86+

await expect(store.list()).resolves.toEqual([

87+

{

88+

conversationId: "conv-a",

89+

reference: {

90+

conversation: { id: "conv-a" },

91+

channelId: "msteams",

92+

serviceUrl: "https://service.example.com",

93+

user: { id: "user-a", aadObjectId: "aad-a", name: "Alice" },

94+

lastSeenAt: "2026-03-25T20:00:00.000Z",

95+

},

96+

},

97+

{

98+

conversationId: "conv-b",

99+

reference: {

100+

conversation: { id: "conv-b" },

101+

channelId: "msteams",

102+

serviceUrl: "https://service.example.com",

103+

user: { id: "user-b", aadObjectId: "aad-b", name: "Bob" },

104+

lastSeenAt: "2026-03-25T20:00:30.000Z",

105+

},

91106

},

92-

},

93-

{

107+

]);

108+109+

await expect(store.findPreferredDmByUserId(" aad-b ")).resolves.toEqual({

94110

conversationId: "conv-b",

95111

reference: {

96112

conversation: { id: "conv-b" },

97113

channelId: "msteams",

98114

serviceUrl: "https://service.example.com",

99115

user: { id: "user-b", aadObjectId: "aad-b", name: "Bob" },

100-

lastSeenAt: expect.any(String),

116+

lastSeenAt: "2026-03-25T20:00:30.000Z",

101117

},

102-

},

103-

]);

104-105-

await expect(store.findPreferredDmByUserId(" aad-b ")).resolves.toEqual({

106-

conversationId: "conv-b",

107-

reference: {

108-

conversation: { id: "conv-b" },

109-

channelId: "msteams",

110-

serviceUrl: "https://service.example.com",

111-

user: { id: "user-b", aadObjectId: "aad-b", name: "Bob" },

112-

lastSeenAt: expect.any(String),

113-

},

114-

});

115-

await expect(store.findPreferredDmByUserId("user-a")).resolves.toEqual({

116-

conversationId: "conv-a",

117-

reference: {

118-

conversation: { id: "conv-a" },

119-

channelId: "msteams",

120-

serviceUrl: "https://service.example.com",

121-

user: { id: "user-a", aadObjectId: "aad-a", name: "Alice" },

122-

lastSeenAt: expect.any(String),

123-

},

124-

});

125-

await expect(store.findByUserId("user-a")).resolves.toEqual(

126-

await store.findPreferredDmByUserId("user-a"),

127-

);

128-

await expect(store.findPreferredDmByUserId(" ")).resolves.toBeNull();

129-130-

await expect(store.remove("conv-a")).resolves.toBe(true);

131-

await expect(store.get("conv-a")).resolves.toBeNull();

132-

await expect(store.remove("missing")).resolves.toBe(false);

118+

});

119+

await expect(store.findPreferredDmByUserId("user-a")).resolves.toEqual({

120+

conversationId: "conv-a",

121+

reference: {

122+

conversation: { id: "conv-a" },

123+

channelId: "msteams",

124+

serviceUrl: "https://service.example.com",

125+

user: { id: "user-a", aadObjectId: "aad-a", name: "Alice" },

126+

lastSeenAt: "2026-03-25T20:00:00.000Z",

127+

},

128+

});

129+

await expect(store.findByUserId("user-a")).resolves.toEqual(

130+

await store.findPreferredDmByUserId("user-a"),

131+

);

132+

await expect(store.findPreferredDmByUserId(" ")).resolves.toBeNull();

133+134+

await expect(store.remove("conv-a")).resolves.toBe(true);

135+

await expect(store.get("conv-a")).resolves.toBeNull();

136+

await expect(store.remove("missing")).resolves.toBe(false);

137+

} finally {

138+

vi.useRealTimers();

139+

}

133140

});

134141135142

it("preserves existing timezone when upsert omits timezone", async () => {