mirror of
https://github.com/block/buzz.git
synced 2026-11-12 20:31:12 +00:00
feat(desktop): gate ACP tool summaries behind a preview experiment
Two-layer prod-safe gate for the acpToolSummaries experiment, default OFF:
UI gate: buildCompactToolSummary now takes summaryTitleEnabled (default
off) and only consults the agent-provided friendly phrase when the
experiment is on. ToolItem and BotActivityBar/getActivityHeadline read
useFeatureEnabled('acpToolSummaries') and thread the flag through.
Failure-precedence behavior is unchanged: failed rows always paint the
failure label regardless of the gate.
Runtime/cost gate: the frontend mirrors preview-experiment overrides to
experiments.json via the new set_desktop_experiments command (AppShell
mirrors on boot and on every toggle); spawn_agent_child sets
BUZZ_AGENT_NO_TOOL_SUMMARY=1 when the experiment is off so disabled
agents never spend the async LLM summary call. All spawn paths (start,
create, app-startup restore) funnel through spawn_agent_child, and
missing/unknown mirror state resolves to off — restore-time respawns
before the webview loads stay on the safe side. Experiment-on leaves
the env untouched, so a user-provided kill switch still wins.
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
parent
8720b5d1ef
commit
d4b625037e
@@ -99,7 +99,10 @@ const overrides = new Map([
|
||||
// +1 for agent_pubkey field in setup payload (config-nudge card wire).
|
||||
// persona-blank-fallback: resolve_effective_prompt_model_provider gains a
|
||||
// record_provider param + applies persona_field_with_record_fallback. +5 lines.
|
||||
["src-tauri/src/managed_agents/runtime.rs", 2213],
|
||||
// acp-tool-summaries experiment gate: apply_tool_summary_gate helper +
|
||||
// spawn-time kill-switch wiring (~23 lines incl. off/on env tests context).
|
||||
// Load-bearing prod-safety gate, queued to split.
|
||||
["src-tauri/src/managed_agents/runtime.rs", 2236],
|
||||
// config-bridge setup-payload env-boundary fix adds readiness wiring in
|
||||
// spawn_agent_child; load-bearing security fix, queued to split.
|
||||
["src-tauri/src/managed_agents/config_bridge/reader.rs", 1016],
|
||||
@@ -127,7 +130,9 @@ const overrides = new Map([
|
||||
// baked-env-required-badge: getBakedBuildEnvKeys wrapper adds ~16 lines. Queued to split.
|
||||
// restart-badge: started the queued split — start/stopManagedAgent moved to
|
||||
// tauriManagedAgents.ts; limit ratcheted down 1388 → 1380 to bank the headroom.
|
||||
["src/shared/api/tauri.ts", 1380],
|
||||
// acp-tool-summaries: setDesktopExperiments binding (+11 lines) mirrors
|
||||
// preview-experiment overrides to Rust for spawn-time gating.
|
||||
["src/shared/api/tauri.ts", 1391],
|
||||
// readiness-gate: PersonaDialog.tsx threads computeLocalModeGate +
|
||||
// requiredCredentialEnvKeys + RequiredFieldLabel so the "New agent" dialog
|
||||
// shows required markers and credential amber rows (parity with
|
||||
|
||||
Reference in New Issue
Block a user