Skip to content

fix(miner): grant the claude-cli driver Read/Bash access, not just edits - #6856

Merged
JSONbored merged 1 commit into
mainfrom
fix/claude-cli-permission-mode-6840
Jul 17, 2026
Merged

fix(miner): grant the claude-cli driver Read/Bash access, not just edits#6856
JSONbored merged 1 commit into
mainfrom
fix/claude-cli-permission-mode-6840

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

  • --permission-mode acceptEdits only auto-approves file EDIT tool calls — it never granted Read or Bash, so a real headless attempt (which needs both to explore the repo and run tests before finishing) got every one of those calls denied with no TTY to resolve an interactive prompt, silently producing zero real work on every attempt.
  • Adds --allowedTools Read Bash alongside the existing acceptEdits mode. Confirmed via a live end-to-end reproduction: zero denials, a real fix + regression test committed by the driver — deliberately narrower than --permission-mode bypassPermissions, which would also disable edit-scope confirmation and any other safety rail, not just this specific gap.

Closes #6840

Test plan

--permission-mode acceptEdits only auto-approves file EDIT tool calls
-- it never granted Read or Bash, so a real headless attempt (which
needs both to explore the repo and run tests before finishing) got
every one of those calls denied with no TTY to resolve an interactive
prompt, silently producing zero real work on every attempt.

Adds --allowedTools Read Bash alongside the existing acceptEdits
mode, confirmed via a live end-to-end reproduction (zero denials, a
real fix and regression test committed) -- deliberately narrower than
--permission-mode bypassPermissions, which would also disable edit
confirmation and any other safety rail, not just this specific gap.

Closes #6840
@JSONbored JSONbored self-assigned this Jul 17, 2026
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
loopover-ui 664aebe Commit Preview URL

Branch Preview URL
Jul 17 2026, 08:48 AM

@JSONbored
JSONbored merged commit 615dd46 into main Jul 17, 2026
15 checks passed
@JSONbored
JSONbored deleted the fix/claude-cli-permission-mode-6840 branch July 17, 2026 08:54
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 17, 2026
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.64%. Comparing base (10aad0d) to head (664aebe).
⚠️ Report is 6 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6856   +/-   ##
=======================================
  Coverage   93.64%   93.64%           
=======================================
  Files         684      684           
  Lines       68193    68193           
  Branches    18707    18707           
=======================================
  Hits        63857    63857           
  Misses       3350     3350           
  Partials      986      986           
Flag Coverage Δ
shard-1 43.68% <100.00%> (ø)
shard-2 36.84% <100.00%> (+0.01%) ⬆️
shard-3 32.84% <0.00%> (+0.21%) ⬆️
shard-4 34.86% <100.00%> (+0.02%) ⬆️
shard-5 31.69% <100.00%> (+0.14%) ⬆️
shard-6 45.43% <0.00%> (-0.31%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...loopover-engine/src/miner/cli-subprocess-driver.ts 100.00% <100.00%> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

claude-cli driver's --permission-mode acceptEdits denies every Read/Bash call, silently blocking all real work

1 participant