Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor: 3.15.19 (de07bee81cefe43461ebf4f40c3d2d78d15052a0)
OS: Linux 7.0.0-28-generic x86_64
Run Mode: Allowlist (NOT “Allowlist with Sandbox”, NOT Auto-Review)
Plan: Teams (team admin). Auto Run Configuration is Enterprise-only in the dashboard.
Expected
- A command already on Command Allowlist runs with no approval card
- Always Run persists that command so the next run is silent
- The approval card must not ask to Always Run a binary that is already a chip on the list
Actual
-
Always Run sometimes does not persist. Clicked Always Run for
systemctl --user is-system-runningmultiple times.composerState.yoloCommandAllowlistin~/.config/Cursor/User/globalStorage/state.vscdbdid not gainsystemctl(count stayed 102; newest werehostname/free). Later it appeared (count 103) after another attempt / manual Add commands. Same UI action, inconsistent write. -
Card asks to re-add tools already on the allowlist. With both
systemctlandpython3already chips, agent ran:
systemctl --user is-system-running && python3 - <<‘PY’read ~/.config/Cursor/User/globalStorage/state.vscdb
PY
UI still showed “Always run these commands” listingsystemctlandpython3. -
Bare allowlisted command works. After
systemctlwas on the list, baresystemctl --user is-system-runningmatched allowlist and ran with no card. List is loaded; compound / some Always Run paths are wrong.
Also: "$HOME/.dotnet/dotnet" --version prompted despite $HOME/.dotnet/dotnet already allowlisted; Always Run saved a second quoted chip.
Repro
- Settings → Agents → Approvals: Run Mode = Allowlist
- Ensure
systemctlandpython3are on Command Allowlist - Agent runs a compound
systemctl … && python3 <<'PY'… - Observe prompt offering Always Run for
systemctl/python3again - Separately: Always Run on some cards does not appear in yoloCommandAllowlist afterward
Related staff-acked threads on Always Run / chained allowlist matching (redirects, ; chains) on 3.14.x.
Steps to Reproduce
- Cursor Settings → Agents → Approvals & Execution → Run Mode = Allowlist (not “Allowlist with Sandbox”, not Auto-Review).
- Add
systemctlandpython3to Command Allowlist (or confirm they are already chips). - In Agent chat, have the agent run: systemctl --user is-system-running
→ Often shows Always Run; clicking Always Run sometimes does NOT addsystemctlto yoloCommandAllowlist in state.vscdb. - Manually ensure
systemctlandpython3are on the allowlist. - Have the agent run a compound command:
systemctl --user is-system-running && python3 - <<‘PY’
print(“ok”)
PY - Observe approval card offering “Always run these commands” for
systemctland/orpython3even though both are already on the list. - Have the agent run bare
systemctl --user is-system-runningagain → may run silently (allowlist match), showing the list is loaded but matching/Always Run for compound (and some Always Run clicks) is wrong.
Expected Behavior
- Commands already on Command Allowlist never show an approval card.
- Always Run always persists the command to the allowlist so the next identical run is silent.
- Approval cards must not ask to Always Run a binary that is already a chip on the list.
Operating System
Linux
Version Information
Cursor: 3.15.19
Commit: de07bee81cefe43461ebf4f40c3d2d78d15052a0
OS: Linux 7.0.0-28-generic x86_64
For AI issues: which model did you use?
Auto Cost
For AI issues: add Request ID with privacy disabled
Request ID: 18cffb08-6a66-4f6b-be02-f86d4f84b2cc
Additional Information
Teams plan (team admin). Run Mode Allowlist without sandbox. Allowlist chips persist in composerState.yoloCommandAllowlist. Bare allowlisted commands can match; compound commands and some Always Run clicks still prompt / fail to persist. Related: quoted “$HOME/.dotnet/dotnet” vs $HOME/.dotnet/dotnet.
Agent/chat id: a4dcb4a1-ff8b-4db5-bd63-119e873f75e3
Does this stop you from using Cursor
No - Cursor works, but with this issue
