feat(desktop): harness-agnostic config bridge (#887)

Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
Will Pfleger
2026-06-29 16:51:32 -04:00
committed by GitHub
parent 401bb51bf2
commit c65989a61b
48 changed files with 5352 additions and 109 deletions

View File

@@ -11,3 +11,21 @@ export async function cancelManagedAgentTurn(
});
return { status: "sent" };
}
/**
* Send a live model-switch control frame to a running agent. The switch rides
* the harness's cancel-switch-requeue path (busy turn) or invalidate-and-reapply
* (idle); the outcome arrives asynchronously as a `control_result` observer
* frame, not as the return value here. This is fire-and-forget on the send side.
*/
export async function switchManagedAgentModel(
pubkey: string,
channelId: string,
modelId: string,
): Promise<void> {
await sendAgentObserverControl(pubkey, {
type: "switch_model",
channelId,
modelId,
});
}