mirror of
https://github.com/block/buzz.git
synced 2026-11-29 20:52:25 +00:00
fix: propagate persona harness edits to live agent instances (#1244)
Signed-off-by: Will Pfleger <pfleger.will@gmail.com> Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
@@ -198,6 +198,7 @@ export type RawManagedAgent = {
|
||||
relay_url: string;
|
||||
acp_command: string;
|
||||
agent_command: string;
|
||||
agent_command_override?: string | null;
|
||||
agent_args: string[];
|
||||
mcp_command: string;
|
||||
turn_timeout_seconds: number;
|
||||
@@ -856,6 +857,7 @@ export function fromRawManagedAgent(agent: RawManagedAgent): ManagedAgent {
|
||||
relayUrl: agent.relay_url,
|
||||
acpCommand: agent.acp_command,
|
||||
agentCommand: agent.agent_command,
|
||||
agentCommandOverride: agent.agent_command_override ?? null,
|
||||
agentArgs: agent.agent_args,
|
||||
mcpCommand: agent.mcp_command,
|
||||
turnTimeoutSeconds: agent.turn_timeout_seconds,
|
||||
@@ -1005,6 +1007,7 @@ export async function createManagedAgent(input: CreateManagedAgentInput) {
|
||||
relayUrl: input.relayUrl,
|
||||
acpCommand: input.acpCommand,
|
||||
agentCommand: input.agentCommand,
|
||||
harnessOverride: input.harnessOverride ?? false,
|
||||
agentArgs: input.agentArgs,
|
||||
mcpCommand: input.mcpCommand,
|
||||
mcpToolsets: input.mcpToolsets,
|
||||
|
||||
@@ -277,7 +277,14 @@ export type ManagedAgent = {
|
||||
personaId: string | null;
|
||||
relayUrl: string;
|
||||
acpCommand: string;
|
||||
/** Resolved/effective harness command (persona-wins, override-honored). */
|
||||
agentCommand: string;
|
||||
/**
|
||||
* Explicit per-instance harness pin. `null` means the agent inherits its
|
||||
* harness from the linked persona's runtime. Lets the Edit dialog show
|
||||
* "Inherit from persona" vs a concrete pin.
|
||||
*/
|
||||
agentCommandOverride: string | null;
|
||||
agentArgs: string[];
|
||||
mcpCommand: string;
|
||||
turnTimeoutSeconds: number;
|
||||
@@ -340,6 +347,13 @@ export type CreateManagedAgentInput = {
|
||||
relayUrl?: string;
|
||||
acpCommand?: string;
|
||||
agentCommand?: string;
|
||||
/**
|
||||
* True when `agentCommand` is a runtime the user deliberately picked to
|
||||
* override the linked persona (a deploy-dialog runtime selector). Lets the
|
||||
* backend distinguish a real pin from a missing-runtime fallback. Omit/false
|
||||
* for persona-less creates and fallback divergence — both inherit.
|
||||
*/
|
||||
harnessOverride?: boolean;
|
||||
agentArgs?: string[];
|
||||
mcpCommand?: string;
|
||||
turnTimeoutSeconds?: number;
|
||||
|
||||
Reference in New Issue
Block a user