Global agent env vars are silently dropped when the `launch` block is present

Open Beginner friendly
#7,725 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
86/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
kubernetes, rust

Research direction

Start in crates/buzz-backend-kubernetes/src/env.rs and trace the merged environment map produced by commands/agents_deploy.rs::build_deploy_payload. Compare the launch-present and launch-absent paths, then verify that global, persona, and agent variables reach the pod when a launch block is present without being duplicated.

Written by the indexing model from the issue text.

Description

Severity: medium — silent, and the global config is the documented place for
shared credentials.

crates/buzz-backend-kubernetes/src/env.rs:

if agent.launch.is_some() {
    env.extend(launch.env.clone());
} else {
    env.extend(agent.env_vars.clone());
}

The desktop always sends a launch block, so the top-level env_vars — which
commands/agents_deploy.rs::build_deploy_payload fills with the merged
global + persona + agent env — is ignored. A credential placed in the global
agent config never reaches the pod, with no error anywhere.

Expected: either merge the top-level env_vars in both branches, or stop
sending the merged map at the top level and put it only in launch.env.


Dominant language
Rust
Stars
33.7k
Forks
4.4k
Avg merge
1d 21h
Merged PRs (30d)
239

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from block/buzz

All issues in block/buzz

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.