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

推荐订阅源

GbyAI
GbyAI
B
Blog
Stack Overflow Blog
Stack Overflow Blog
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
D
DataBreaches.Net
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
罗磊的独立博客
L
LangChain Blog
V
Visual Studio Blog
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享

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(auto-reply): stage sandboxed workspace media · opencl...
mjamiv · 2026-05-27 · via Recent Commits to openclaw:main

@@ -773,6 +773,20 @@ describe("loadWebMedia", () => {

773773

expect(result.contentType).toBe("text/markdown");

774774

});

775775776+

it("rejects host-read HTML files without a separate security-boundary approval", async () => {

777+

const htmlFile = path.join(fixtureRoot, "report.html");

778+

await fs.writeFile(htmlFile, "<!doctype html><title>Report</title><h1>Report</h1>\n", "utf8");

779+

await expectLoadWebMediaErrorCode(

780+

loadWebMedia(htmlFile, {

781+

maxBytes: 1024 * 1024,

782+

localRoots: "any",

783+

readFile: async (filePath) => await fs.readFile(filePath),

784+

hostReadCapability: true,

785+

}),

786+

"path-not-allowed",

787+

);

788+

});

789+776790

it.each([

777791

{

778792

label: "ZIP",

@@ -833,6 +847,7 @@ describe("loadWebMedia", () => {

833847834848

it.each([

835849

{ label: "CSV", fileName: "opaque.csv" },

850+

{ label: "HTML", fileName: "opaque.html" },

836851

{ label: "Markdown", fileName: "opaque.md" },

837852

])("rejects opaque non-NUL binary data disguised as %s", async ({ fileName }) => {

838853

const fakeTextFile = path.join(fixtureRoot, fileName);

@@ -854,6 +869,7 @@ describe("loadWebMedia", () => {

854869855870

it.each([

856871

{ label: "CSV", fileName: "prefix-tail.csv" },

872+

{ label: "HTML", fileName: "prefix-tail.html" },

857873

{ label: "Markdown", fileName: "prefix-tail.md" },

858874

])(

859875

"rejects %s files with a text prefix and binary tail after the old sample window",

@@ -921,6 +937,7 @@ describe("loadWebMedia", () => {

921937922938

it.each([

923939

{ label: "CSV", fileName: "nul-padded.csv" },

940+

{ label: "HTML", fileName: "nul-padded.html" },

924941

{ label: "Markdown", fileName: "nul-padded.md" },

925942

])("rejects NUL-padded binary data disguised as %s", async ({ fileName }) => {

926943

const fakeTextFile = path.join(fixtureRoot, fileName);

@@ -944,6 +961,7 @@ describe("loadWebMedia", () => {

944961945962

it.each([

946963

{ label: "CSV", fileName: "bom-binary.csv" },

964+

{ label: "HTML", fileName: "bom-binary.html" },

947965

{ label: "Markdown", fileName: "bom-binary.md" },

948966

])("rejects UTF-16 BOM-prefixed binary data disguised as %s", async ({ fileName }) => {

949967

const fakeTextFile = path.join(fixtureRoot, fileName);

@@ -967,6 +985,7 @@ describe("loadWebMedia", () => {

967985968986

it.each([

969987

{ label: "CSV", fileName: "alternating-high.csv" },

988+

{ label: "HTML", fileName: "alternating-high.html" },

970989

{ label: "Markdown", fileName: "alternating-high.md" },

971990

])("rejects alternating ASCII/high-byte data disguised as %s", async ({ fileName }) => {

972991

const fakeTextFile = path.join(fixtureRoot, fileName);

@@ -991,6 +1010,7 @@ describe("loadWebMedia", () => {

99110109921011

it.each([

9931012

{ label: "CSV", fileName: "high-bytes.csv" },

1013+

{ label: "HTML", fileName: "high-bytes.html" },

9941014

{ label: "Markdown", fileName: "high-bytes.md" },

9951015

])("rejects high-byte opaque data disguised as %s", async ({ fileName }) => {

9961016

const fakeTextFile = path.join(fixtureRoot, fileName);