Skip to content

Commit 4cb4053

Browse files
committed
fix: complete sessionKey forwarding for message:sent hook (#27584) (thanks @qualiobra)
1 parent a4408a9 commit 4cb4053

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Docs: https://docs.openclaw.ai
1818
### Fixes
1919

2020
- TUI/stream assembly: preserve streamed text across real tool-boundary drops without keeping stale streamed text when non-text blocks appear only in the final payload. Landed from contributor PR #27711 by @scz2011. (#27674)
21+
- Hooks/Internal `message:sent`: forward `sessionKey` on outbound sends from agent delivery, cron isolated delivery, gateway receipt acks, heartbeat sends, session-maintenance warnings, and restart-sentinel recovery so internal `message:sent` hooks consistently dispatch with session context. Landed from contributor PR #27584 by @qualiobra. Thanks @qualiobra.
2122
- Models/MiniMax auth header defaults: set `authHeader: true` for both onboarding-generated MiniMax API providers and implicit built-in MiniMax (`minimax`, `minimax-portal`) provider templates so first requests no longer fail with MiniMax `401 authentication_error` due to missing `Authorization` header. Landed from contributor PRs #27622 by @riccoyuanft and #27631 by @kevinWangSheng. (#27600, #15303)
2223
- Pi image-token usage: stop re-injecting history image blocks each turn, process image references from the current prompt only, and prune already-answered user-image blocks in stored history to prevent runaway token growth. (#27602)
2324
- BlueBubbles/SSRF: auto-allowlist the configured `serverUrl` hostname for attachment fetches so localhost/private-IP BlueBubbles setups are no longer false-blocked by default SSRF checks. Landed from contributor PR #27648 by @lailoo. (#27599) Thanks @taylorhou for reporting.

src/gateway/server-restart-sentinel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export async function scheduleRestartSentinelWake(_params: { deps: CliDeps }) {
9595
payloads: [{ text: message }],
9696
agentId: resolveSessionAgentId({ sessionKey, config: cfg }),
9797
bestEffort: true,
98+
sessionKey,
9899
});
99100
} catch (err) {
100101
enqueueSystemEvent(`${summary}\n${String(err)}`, { sessionKey });

src/infra/session-maintenance-warning.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export async function deliverSessionMaintenanceWarning(params: WarningParams): P
104104
threadId: target.threadId,
105105
payloads: [{ text }],
106106
agentId: resolveSessionAgentId({ sessionKey: params.sessionKey, config: params.cfg }),
107+
sessionKey: params.sessionKey,
107108
});
108109
} catch (err) {
109110
log.warn(`Failed to deliver session maintenance warning: ${String(err)}`);

0 commit comments

Comments
 (0)