fix: clean up approval handler PR landing (#82482) · openclaw/openclaw@2fcaab0
steipete
·
2026-05-16
·
via Recent Commits to openclaw:main
File tree
extensions/matrix/src/matrix
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,6 +17,7 @@ Docs: https://docs.openclaw.ai
|
17 | 17 | |
18 | 18 | ### Fixes |
19 | 19 | |
| 20 | +- Matrix/approvals: release in-flight reaction bindings when the channel approval handler stops mid-delivery, preventing stale approval targets after restart. Fixes #82485. (#82482) Thanks @Feelw00. |
20 | 21 | - TUI: update the displayed model in real time when an auto-fallback resolution swaps in a different model mid-turn, so the status line reflects the actual model handling the run. Fixes #82296. Thanks @giodl73-repo. |
21 | 22 | - Gateway/sessions: estimate context usage from local/OpenAI-compatible transcripts when provider usage telemetry is missing, so status no longer shows empty usage for real local-model sessions. Fixes #73990. (#82317) Thanks @giodl73-repo. |
22 | 23 | - Agents/sessions: preserve fresh post-compaction token snapshots across stale usage updates, preventing repeated auto-compaction after every message. Fixes #82576. (#82578) Thanks @njuboy11. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -102,9 +102,11 @@ function cloneMatrixRoomMap(rooms: MatrixConfig["groups"]): MatrixConfig["groups
|
102 | 102 | if (!rooms) { |
103 | 103 | return rooms; |
104 | 104 | } |
105 | | -return Object.fromEntries( |
106 | | -Object.entries(rooms).map(([roomId, roomCfg]) => [roomId, roomCfg ? { ...roomCfg } : roomCfg]), |
107 | | -); |
| 105 | +const clonedRoomEntries: Array<[string, NonNullable<MatrixConfig["groups"]>[string]]> = []; |
| 106 | +for (const [roomId, roomCfg] of Object.entries(rooms)) { |
| 107 | +clonedRoomEntries.push([roomId, roomCfg ? { ...roomCfg } : roomCfg]); |
| 108 | +} |
| 109 | +return Object.fromEntries(clonedRoomEntries); |
108 | 110 | } |
109 | 111 | |
110 | 112 | function applyNullableArrayField( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。