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

推荐订阅源

J
Java Code Geeks
腾讯CDC
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
L
LangChain Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
IT之家
IT之家
A
About on SuperTechFans
H
Help Net Security

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(gateway): guard direct session display names · opencl...
sebuh-infsol · 2026-06-01 · via Recent Commits to openclaw:main

@@ -197,6 +197,36 @@ describe("gateway session utils", () => {

197197

expect(listed.hasMore).toBe(true);

198198

});

199199200+

test("session list search includes direct-session origin display labels", () => {

201+

const cfg = { agents: { list: [{ id: "main", default: true }] } } as OpenClawConfig;

202+

const store = {

203+

"agent:main:telegram:direct:42": {

204+

chatType: "direct",

205+

channel: "telegram",

206+

origin: { label: "openclaw-tui" },

207+

updatedAt: 2,

208+

} as SessionEntry,

209+

"agent:main:telegram:direct:99": {

210+

chatType: "direct",

211+

channel: "telegram",

212+

origin: { label: "other-direct" },

213+

updatedAt: 1,

214+

} as SessionEntry,

215+

};

216+217+

const listed = listSessionsFromStore({

218+

cfg,

219+

storePath: "",

220+

store,

221+

opts: { search: "openclaw-tui" },

222+

});

223+224+

expect(listed.sessions.map((session) => session.key)).toEqual([

225+

"agent:main:telegram:direct:42",

226+

]);

227+

expect(listed.sessions[0]?.displayName).toBe("openclaw-tui");

228+

});

229+200230

test("session lists mark the final offset page without hasMore", () => {

201231

const cfg = createModelDefaultsConfig({ primary: "openai/gpt-5.4" });

202232

const store = Object.fromEntries(

@@ -703,6 +733,60 @@ describe("gateway session utils", () => {

703733

expect(classifySessionKey("main", entry)).toBe("group");

704734

});

705735736+

test("buildGatewaySessionRow displayName falls through to origin label for direct sessions", () => {

737+

const cfg = { agents: { list: [{ id: "main", default: true }] } } as OpenClawConfig;

738+

const entry = {

739+

chatType: "direct",

740+

channel: "telegram",

741+

origin: { label: "openclaw-tui" },

742+

} as SessionEntry;

743+

const row = buildGatewaySessionRow({

744+

cfg,

745+

storePath: "",

746+

store: { "agent:main:telegram:direct:42": entry },

747+

key: "agent:main:telegram:direct:42",

748+

entry,

749+

});

750+

expect(row.displayName).toBe("openclaw-tui");

751+

});

752+753+

test("buildGatewaySessionRow displayName uses group display name for group sessions", () => {

754+

const cfg = { agents: { list: [{ id: "main", default: true }] } } as OpenClawConfig;

755+

const entry = {

756+

chatType: "group",

757+

channel: "telegram",

758+

subject: "Engineering",

759+

origin: { label: "openclaw-tui" },

760+

} as SessionEntry;

761+

const row = buildGatewaySessionRow({

762+

cfg,

763+

storePath: "",

764+

store: { "agent:main:telegram:group:99": entry },

765+

key: "agent:main:telegram:group:99",

766+

entry,

767+

});

768+

expect(row.displayName).toMatch(/^telegram:/);

769+

expect(row.displayName).not.toBe("openclaw-tui");

770+

});

771+772+

test("buildGatewaySessionRow prefers entry.label over origin.label for direct sessions", () => {

773+

const cfg = { agents: { list: [{ id: "main", default: true }] } } as OpenClawConfig;

774+

const entry = {

775+

chatType: "direct",

776+

channel: "telegram",

777+

label: "Alice",

778+

origin: { label: "openclaw-tui" },

779+

} as SessionEntry;

780+

const row = buildGatewaySessionRow({

781+

cfg,

782+

storePath: "",

783+

store: { "agent:main:telegram:direct:42": entry },

784+

key: "agent:main:telegram:direct:42",

785+

entry,

786+

});

787+

expect(row.displayName).toBe("Alice");

788+

});

789+706790

test("resolveSessionStoreKey maps main aliases to default agent main", () => {

707791

const cfg = {

708792

session: { mainKey: "work" },