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

推荐订阅源

Vercel News
Vercel News
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
G
Google Developers Blog
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
J
Java Code Geeks
U
Unit 42
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
Docker
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
V
V2EX
T
Tailwind CSS Blog

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(qqbot): keep markdown table chunks valid (#92428) · o...
sliverp · 2026-06-15 · via Recent Commits to openclaw:main

@@ -658,4 +658,110 @@ describe("dispatchOutbound", () => {

658658

expect(finalized?.Surface).toBe("qqbot");

659659

expect(finalized?.ChatType).toBe("direct");

660660

});

661+662+

it("keeps markdown table chunks self-contained across block deliveries", async () => {

663+

const runtime = makeRuntime({

664+

onDispatch: async ({ deliver }) => {

665+

await deliver(

666+

{

667+

text: ["| Id | Value |", "|---:|---|", "| 1 | alpha |"].join("\n"),

668+

},

669+

{ kind: "block" },

670+

);

671+

await deliver({ text: ["| 2 | beta |", "| 3 | gamma |"].join("\n") }, { kind: "block" });

672+

},

673+

});

674+675+

await dispatchOutbound(makeInbound(), {

676+

runtime,

677+

cfg: {},

678+

account,

679+

});

680+681+

expect(sendTextMock).toHaveBeenCalledTimes(2);

682+

expect(sendTextMock.mock.calls[0]?.[1]).toBe(

683+

["| Id | Value |", "|---:|---|", "| 1 | alpha |"].join("\n"),

684+

);

685+

expect(sendTextMock.mock.calls[1]?.[1]).toBe(

686+

["| Id | Value |", "|---:|---|", "| 2 | beta |", "| 3 | gamma |"].join("\n"),

687+

);

688+

});

689+690+

it("waits for a table separator when a block ends after the header", async () => {

691+

const runtime = makeRuntime({

692+

onDispatch: async ({ deliver }) => {

693+

await deliver({ text: "| Id | Value |" }, { kind: "block" });

694+

await deliver({ text: ["|---:|---|", "| 1 | alpha |"].join("\n") }, { kind: "block" });

695+

},

696+

});

697+698+

await dispatchOutbound(makeInbound(), {

699+

runtime,

700+

cfg: {},

701+

account,

702+

});

703+704+

expect(sendTextMock.mock.calls.map((call) => call[1])).toEqual([

705+

["| Id | Value |", "|---:|---|", "| 1 | alpha |"].join("\n"),

706+

]);

707+

});

708+709+

it("flushes unfinished markdown table row fragments as plain text fields", async () => {

710+

const runtime = makeRuntime({

711+

onDispatch: async ({ deliver }) => {

712+

await deliver(

713+

{

714+

text: ["| Id | Function | Status |", "|---:|---|---|", "| 1 | auth | ok |"].join("\n"),

715+

},

716+

{ kind: "block" },

717+

);

718+

await deliver({ text: "| 10 | analyzeerror_patterns | 无需重试" }, { kind: "block" });

719+

},

720+

});

721+722+

await dispatchOutbound(makeInbound(), {

723+

runtime,

724+

cfg: {},

725+

account,

726+

});

727+728+

expect(sendTextMock.mock.calls.map((call) => call[1])).toEqual([

729+

["| Id | Function | Status |", "|---:|---|---|", "| 1 | auth | ok |"].join("\n"),

730+

["Id: 10", "Function: analyzeerror_patterns", "Status: 无需重试"].join("\n"),

731+

]);

732+

});

733+734+

it("holds short table rows until a following block completes the columns", async () => {

735+

const runtime = makeRuntime({

736+

onDispatch: async ({ deliver }) => {

737+

await deliver(

738+

{

739+

text: [

740+

"| Id | Time | Owner | Note |",

741+

"|---:|---|---|---|",

742+

"| 16 | 40ms | He | ok |",

743+

"| 17 | 100ms |",

744+

].join("\n"),

745+

},

746+

{ kind: "block" },

747+

);

748+

await deliver({ text: "Lin | daily cap |" }, { kind: "block" });

749+

},

750+

});

751+752+

await dispatchOutbound(makeInbound(), {

753+

runtime,

754+

cfg: {},

755+

account,

756+

});

757+758+

expect(sendTextMock.mock.calls.map((call) => call[1])).toEqual([

759+

["| Id | Time | Owner | Note |", "|---:|---|---|---|", "| 16 | 40ms | He | ok |"].join("\n"),

760+

[

761+

"| Id | Time | Owner | Note |",

762+

"|---:|---|---|---|",

763+

"| 17 | 100ms | Lin | daily cap |",

764+

].join("\n"),

765+

]);

766+

});

661767

});