mirror of
https://github.com/block/buzz.git
synced 2026-10-30 05:51:46 +00:00
## Why Thread-scoped ACP sessions from #6732 need an opt-in desktop rollout that preserves today’s channel policy by default. ## What - Add the default-off “Thread Scoped ACP Sessions” toggle under Settings → Experiments using the existing feature-override persistence. - Map the persisted setting to `BUZZ_ACP_SESSION_POLICY=channel|thread` for every local and provider-backed managed ACP launch. Changes apply when managed agents next start; DMs remain conversation-scoped by the backend. - Keep the desktop setting authoritative over descriptor environment and cover the UI, persistence, local spawn, provider payload, and existing Projects/Workflows experiments. ## Risk Assessment Low. The experiment defaults off and explicitly preserves `channel`; changes are limited to managed-agent launch configuration. Existing running agents are unchanged until their next start. ## Testing - `. ./bin/activate-hermit && just ci` — passed on the final restacked tree, including 5,674 desktop tests, 2,796 Tauri tests, and 1,860 mobile tests. - `cd desktop && pnpm build:e2e && pnpm exec playwright test tests/e2e/experimental-features.spec.ts --project=smoke` — 1 passed. - `. ./bin/activate-hermit && cargo test --manifest-path desktop/src-tauri/Cargo.toml session_policy --lib` — 4 passed. - `. ./bin/activate-hermit && cargo test --manifest-path desktop/src-tauri/Cargo.toml commands::agents::deploy::tests --lib` — 15 passed. - `. ./bin/activate-hermit && cargo test -p buzz-backend-kubernetes --test wire_fixtures` — 4 passed. ## Stack Info Stacked on #6732. This PR depends on #6732 and should merge after it. Generated with Codex --------- Signed-off-by: Salman Mohammed <smohammed@squareup.com> Signed-off-by: Leo <5faf251baee50ee6bcde338aef6acdd70bb3e60115664c2cd490d94a55dfc488@buzz.block.builderlab.xyz> Co-authored-by: Leo <5faf251baee50ee6bcde338aef6acdd70bb3e60115664c2cd490d94a55dfc488@buzz.block.builderlab.xyz>
55 lines
1.6 KiB
JSON
55 lines
1.6 KiB
JSON
{
|
|
"op": "deploy",
|
|
"request_id": "req-6",
|
|
"agent": {
|
|
"agent_args": [],
|
|
"agent_command": "goose",
|
|
"auth_tag": "tag-1",
|
|
"env_vars": {
|
|
"USER_KEY": "user-value"
|
|
},
|
|
"idle_timeout_seconds": null,
|
|
"launch": {
|
|
"args": [
|
|
"acp"
|
|
],
|
|
"command": "goose",
|
|
"env": {
|
|
"GOOSE_MODEL": "gpt-5",
|
|
"GOOSE_PROVIDER": "openai",
|
|
"USER_KEY": "user-value"
|
|
},
|
|
"owner_pubkey": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"policy_env": {
|
|
"BUZZ_ACP_AGENTS": "10",
|
|
"BUZZ_ACP_DISPLAY_NAME": "worker",
|
|
"BUZZ_ACP_LAZY_POOL": "true",
|
|
"BUZZ_ACP_MODEL": "gpt-5",
|
|
"BUZZ_ACP_RELAY_OBSERVER": "true",
|
|
"BUZZ_ACP_SESSION_POLICY": "channel",
|
|
"BUZZ_ACP_SESSION_TITLE": "worker",
|
|
"GOOSE_MODE": "auto"
|
|
}
|
|
},
|
|
"max_turn_duration_seconds": null,
|
|
"model": "gpt-5",
|
|
"name": "worker",
|
|
"parallelism": 10,
|
|
"private_key_nsec": "nsec1vl029mgpspedva04g90vltkh6fvh240zqtv9k0t9af8935ke9laqsnlfe5",
|
|
"provider": "openai",
|
|
"relay_url": "wss://relay.example",
|
|
"respond_to": "allowlist",
|
|
"respond_to_allowlist": [
|
|
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
],
|
|
"system_prompt": null,
|
|
"turn_timeout_seconds": 300
|
|
},
|
|
"provider_config": {
|
|
"namespace": "buzz-agents-test",
|
|
"image": "ghcr.io/block/buzz-sprig@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"inactivity_seconds": 3600
|
|
}
|
|
}
|