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

推荐订阅源

V
V2EX
P
Proofpoint News Feed
D
DataBreaches.Net
C
Check Point Blog
L
LangChain Blog
量子位
美团技术团队
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
V
Visual Studio Blog
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
腾讯CDC
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale

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(cron): refuse LINE session-key recipient fallback (#8...
edenfunf · 2026-05-16 · via Recent Commits to openclaw:main

@@ -12,6 +12,7 @@ vi.mock("../agent-scope.js", async () => {

1212

};

1313

});

141415+

import { buildAgentPeerSessionKey } from "../../routing/session-key.js";

1516

import { createCronTool } from "./cron-tool.js";

16171718

describe("cron tool", () => {

@@ -823,6 +824,53 @@ describe("cron tool", () => {

823824

});

824825

});

825826827+

it("does not surface lowercased LINE recipients when current delivery context is unavailable (#81628)", async () => {

828+

// Reproduces openclaw/openclaw#81628. LINE chat IDs are case-sensitive — push

829+

// requires capital C/U/R; lowercased recipients return HTTP 400. The runtime

830+

// already lowercases LINE peer IDs when canonicalizing the session key, and

831+

// when the delivery-recovery / post-reply-token-expiry push path is missing

832+

// currentDeliveryContext, inferDeliveryFromSessionKey lifts the lowercased

833+

// fragment straight into delivery.to.

834+

const sessionKey = buildAgentPeerSessionKey({

835+

agentId: "main",

836+

channel: "line",

837+

peerKind: "group",

838+

peerId: "Cabcdef0123456789abcdef0123456789",

839+

});

840+

expect(sessionKey).toBe("agent:main:line:group:cabcdef0123456789abcdef0123456789");

841+842+

const delivery = await executeAddAndReadDelivery({

843+

callId: "call-line-group-no-context-81628",

844+

agentSessionKey: sessionKey,

845+

// Intentionally no currentDeliveryContext — emulates the delivery-recovery

846+

// boundary that reloads queued entries from disk after the reply token has

847+

// expired.

848+

});

849+850+

expect(delivery?.to).toBeUndefined();

851+

});

852+853+

it("does not surface lowercased LINE DM recipients with per-account-channel-peer scope (#81628)", async () => {

854+

const sessionKey = buildAgentPeerSessionKey({

855+

agentId: "main",

856+

channel: "line",

857+

peerKind: "direct",

858+

accountId: "primary",

859+

dmScope: "per-account-channel-peer",

860+

peerId: "Uabcdef0123456789abcdef0123456789",

861+

});

862+

expect(sessionKey).toBe(

863+

"agent:main:line:primary:direct:uabcdef0123456789abcdef0123456789",

864+

);

865+866+

const delivery = await executeAddAndReadDelivery({

867+

callId: "call-line-direct-no-context-81628",

868+

agentSessionKey: sessionKey,

869+

});

870+871+

expect(delivery?.to).toBeUndefined();

872+

});

873+826874

it("does not let current delivery context override explicit delivery targets", async () => {

827875

expect(

828876

await executeAddAndReadDelivery({