mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:38:38 +00:00
fix(hooks): add missing trigger and channelId to agent_end, llm_input, and llm_output hook contexts (#42362)
Merged via squash.
Prepared head SHA: e6d7b7e31a
Co-authored-by: zhoulf1006 <35586967+zhoulf1006@users.noreply.github.com>
Co-authored-by: hydro13 <6640526+hydro13@users.noreply.github.com>
Reviewed-by: @hydro13
This commit is contained in:
@@ -112,6 +112,7 @@ Docs: https://docs.openclaw.ai
|
|||||||
- Agents/fallback: recognize Venice `402 Insufficient USD or Diem balance` billing errors so configured model fallbacks trigger instead of surfacing the raw provider error. (#43205) Thanks @Squabble9.
|
- Agents/fallback: recognize Venice `402 Insufficient USD or Diem balance` billing errors so configured model fallbacks trigger instead of surfacing the raw provider error. (#43205) Thanks @Squabble9.
|
||||||
- Dependencies: refresh workspace dependencies except the pinned Carbon package, and harden ACP session-config writes against non-string SDK values so newer ACP clients fail fast instead of tripping type/runtime mismatches.
|
- Dependencies: refresh workspace dependencies except the pinned Carbon package, and harden ACP session-config writes against non-string SDK values so newer ACP clients fail fast instead of tripping type/runtime mismatches.
|
||||||
- Gateway/config errors: surface up to three validation issues in top-level `config.set`, `config.patch`, and `config.apply` error messages while preserving structured issue details. (#42664) Thanks @huntharo.
|
- Gateway/config errors: surface up to three validation issues in top-level `config.set`, `config.patch`, and `config.apply` error messages while preserving structured issue details. (#42664) Thanks @huntharo.
|
||||||
|
- Hooks/plugin context parity followup: pass `trigger` and `channelId` through embedded `llm_input`, `agent_end`, and `llm_output` hook contexts so plugins receive the same agent metadata across hook phases. (#42362) Thanks @zhoulf1006.
|
||||||
|
|
||||||
## 2026.3.8
|
## 2026.3.8
|
||||||
|
|
||||||
|
|||||||
@@ -1774,6 +1774,8 @@ export async function runEmbeddedAttempt(
|
|||||||
sessionId: params.sessionId,
|
sessionId: params.sessionId,
|
||||||
workspaceDir: params.workspaceDir,
|
workspaceDir: params.workspaceDir,
|
||||||
messageProvider: params.messageProvider ?? undefined,
|
messageProvider: params.messageProvider ?? undefined,
|
||||||
|
trigger: params.trigger,
|
||||||
|
channelId: params.messageChannel ?? params.messageProvider ?? undefined,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
@@ -1982,6 +1984,8 @@ export async function runEmbeddedAttempt(
|
|||||||
sessionId: params.sessionId,
|
sessionId: params.sessionId,
|
||||||
workspaceDir: params.workspaceDir,
|
workspaceDir: params.workspaceDir,
|
||||||
messageProvider: params.messageProvider ?? undefined,
|
messageProvider: params.messageProvider ?? undefined,
|
||||||
|
trigger: params.trigger,
|
||||||
|
channelId: params.messageChannel ?? params.messageProvider ?? undefined,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
@@ -2042,6 +2046,8 @@ export async function runEmbeddedAttempt(
|
|||||||
sessionId: params.sessionId,
|
sessionId: params.sessionId,
|
||||||
workspaceDir: params.workspaceDir,
|
workspaceDir: params.workspaceDir,
|
||||||
messageProvider: params.messageProvider ?? undefined,
|
messageProvider: params.messageProvider ?? undefined,
|
||||||
|
trigger: params.trigger,
|
||||||
|
channelId: params.messageChannel ?? params.messageProvider ?? undefined,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user