You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Only the agent's PTY child gets a scrubbed environment; the tray spawns children with the daemon's #4306
Found while checking the Security posture design against the code (2026-11-19).
The design says every child process the daemon spawns runs with a scrubbed environment. Only the agent's PTY child does (packages/agent/src/pty/session.rs). The tray spawns ps, taskkill and the app without scrubbing (tray.rs, around lines 70, 138 and 801), so the daemon's environment, including variables that hold credentials, reaches those children.
Done when every process the daemon or tray spawns either goes through the same allow-list environment, or the design states which spawns are exempt and why, with a test that pins it. Changes under packages/agent need the agent owner's sign-off.
Activity
mstomar125 commentedon Nov 25, 2026
Decision (owner, 2026-11-25): fix it in the small-fix batch before the next Sync release.