fix: unify plugin tool thread defaults via delivery context

This commit is contained in:
Peter Steinberger
2026-03-27 23:48:52 +00:00
parent 1c412b1ac6
commit 44defeb71b
3 changed files with 302 additions and 2 deletions

View File

@@ -51,6 +51,7 @@ import type {
SpeechTelephonySynthesisResult,
SpeechVoiceOption,
} from "../tts/provider-types.js";
import type { DeliveryContext } from "../utils/delivery-context.js";
import type { WizardPrompter } from "../wizard/prompts.js";
import type { SecretInputMode } from "./provider-auth-types.js";
import type { createVpsAwareOAuthHandlers } from "./provider-oauth-flow.js";
@@ -125,6 +126,8 @@ export type OpenClawPluginToolContext = {
};
messageChannel?: string;
agentAccountId?: string;
/** Trusted ambient delivery route for the active agent/session. */
deliveryContext?: DeliveryContext;
/** Trusted sender id from inbound context (runtime-provided, not tool args). */
requesterSenderId?: string;
/** Whether the trusted sender is an owner. */