fix(webui): keep automation creation intent in runtime context
This commit is contained in:
1 parent
037438e7d1
commit
458b925f86
21 files changed
+149
-20
No files matched your search
@@ -976,6 +976,7 @@ export class NanobotClient {
|
||||
mcpPresets?: OutboundMcpPresetMention[];
|
||||
sessionMentions?: SessionMention[];
|
||||
quotedContext?: string;
|
||||
intent?: "create_automation";
|
||||
workspaceScope?: WorkspaceScopePayload | null;
|
||||
turnId?: string;
|
||||
/** False for side-channel or injected messages that do not own a lifecycle. */
|
||||
@@ -995,6 +996,7 @@ export class NanobotClient {
|
||||
? { session_mentions: options.sessionMentions }
|
||||
: {}),
|
||||
...(options?.quotedContext?.trim() ? { quoted_context: options.quotedContext.trim() } : {}),
|
||||
...(options?.intent === "create_automation" ? { intent: options.intent } : {}),
|
||||
...(options?.workspaceScope ? { workspace_scope: options.workspaceScope } : {}),
|
||||
...(options?.turnId ? { turn_id: options.turnId } : {}),
|
||||
webui: true,
|
||||
|
||||
@@ -1602,6 +1602,7 @@ export type Outbound =
|
||||
mcp_presets?: OutboundMcpPresetMention[];
|
||||
session_mentions?: SessionMention[];
|
||||
quoted_context?: string;
|
||||
intent?: "create_automation";
|
||||
workspace_scope?: WorkspaceScopePayload;
|
||||
turn_id?: string;
|
||||
/** Marks messages sent by the embedded WebUI, without changing the
|
||||
|
||||
Reference in new issue
Block a user