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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
V
V2EX
美团技术团队
H
Help Net Security
月光博客
月光博客
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
U
Unit 42
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
A
About on SuperTechFans
博客园 - Franky
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
博客园 - 司徒正美
MyScale Blog
MyScale Blog
B
Blog
雷峰网
雷峰网
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
T
The Blog of Author Tim Ferriss

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(matrix): tolerate malformed location params · opencla...
vincentkoc · 2026-05-14 · via Recent Commits to openclaw:main

File tree

  • extensions/matrix/src/matrix/monitor

Original file line numberDiff line numberDiff line change

@@ -17,6 +17,7 @@ Docs: https://docs.openclaw.ai

1717

- Models config/auth: stop inferring provider env-var markers from broad `^[A-Z_][A-Z0-9_]*$` strings, and resolve config-backed provider `apiKey` values only through structured env SecretRefs (`secrets.providers[id]` / `secrets.defaults`), so unrelated env vars cannot accidentally become provider credentials. Thanks @sallyom.

1818

- Media fetch: skip allocating and buffering the response body for bodyless media responses (HEAD probes and 204-style empty bodies), avoiding wasted heap on streams that carry no payload. Thanks @shakkernerd.

1919

- CLI/onboarding: forward provider-specific auth flags (e.g. `--openai-api-key`) through the onboarding wizard so they reach provider auth methods via `ctx.opts`, letting `--openai-api-key "$OPENAI_API_KEY"` skip the redundant "use existing env var?" prompt in non-interactive harnesses. (#81669) Thanks @sjf.

20+

- Matrix: ignore malformed percent-encoding in optional location URI parameters instead of letting a bad `geo:` event abort inbound message handling.

2021

- Plugins: discover provider plugins from `setup.providers[].envVars` credentials during provider discovery while keeping the deprecated `providerAuthEnvVars` fallback. (#81542) Thanks @JARVIS-Glasses.

2122

- Docs/Codex harness: clarify that per-agent `CODEX_HOME` isolates `~/.codex` while inherited `HOME` intentionally keeps `.agents` discovery and subprocess user-home state available.

2223

- CLI/plugins: keep bare plugin and parent-command help on the lightweight path, avoiding plugin registry discovery before rendering help.

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,37 @@

1+

import { describe, expect, it } from "vitest";

2+

import { resolveMatrixLocation } from "./location.js";

3+

import { EventType } from "./types.js";

4+
5+

describe("resolveMatrixLocation", () => {

6+

it("decodes encoded geo uri accuracy", () => {

7+

const result = resolveMatrixLocation({

8+

eventType: EventType.Location,

9+

content: {

10+

msgtype: EventType.Location,

11+

geo_uri: "geo:1.5,2.5;u=%31%30",

12+

},

13+

});

14+
15+

expect(result?.context).toMatchObject({

16+

LocationLat: 1.5,

17+

LocationLon: 2.5,

18+

LocationAccuracy: 10,

19+

});

20+

});

21+
22+

it("ignores malformed geo uri parameter encoding", () => {

23+

const result = resolveMatrixLocation({

24+

eventType: EventType.Location,

25+

content: {

26+

msgtype: EventType.Location,

27+

geo_uri: "geo:1.5,2.5;u=%zz",

28+

},

29+

});

30+
31+

expect(result?.context).toMatchObject({

32+

LocationLat: 1.5,

33+

LocationLon: 2.5,

34+

});

35+

expect(result?.context.LocationAccuracy).toBeUndefined();

36+

});

37+

});

Original file line numberDiff line numberDiff line change

@@ -17,6 +17,14 @@ type GeoUriParams = {

1717

accuracy?: number;

1818

};

1919
20+

function decodeGeoUriParamValue(value: string): string {

21+

try {

22+

return decodeURIComponent(value);

23+

} catch {

24+

return value;

25+

}

26+

}

27+
2028

function parseGeoUri(value: string): GeoUriParams | null {

2129

const trimmed = value.trim();

2230

if (!trimmed) {

@@ -51,7 +59,7 @@ function parseGeoUri(value: string): GeoUriParams | null {

5159

continue;

5260

}

5361

const valuePart = rawValue.trim();

54-

params.set(key, valuePart ? decodeURIComponent(valuePart) : "");

62+

params.set(key, valuePart ? decodeGeoUriParamValue(valuePart) : "");

5563

}

5664
5765

const accuracyRaw = params.get("u");