Commit 47a6e4b
committed
Env-level toggle for --dangerously-skip-permissions
Gate the blunt permission-bypass flag behind a per-environment
setting so local/ssh envs don't default to "Claude can run anything."
Defaults:
daemon envs → bypass ON (throwaway VM, bounded blast radius)
local / ssh / coder envs → bypass OFF (your own hardware)
When bypass is OFF, autonomous tasks run with `--permission-mode
acceptEdits` instead. That silences file edits but will pause on
bash prompts / unknown MCP trust — the user answers from the task
terminal's input field (already always-visible).
- schema.ts: new `autonomous_bypass_permissions` boolean column
(default false). Migration 0005.
- POST /environments: defaults daemon=true, everything else=false;
overridable via explicit body field.
- PATCH /environments/:id: accepts updates to the flag.
- agent.ts: picks --dangerously-skip-permissions vs --permission-mode
acceptEdits based on env.autonomousBypassPermissions.
- SettingsPanel: checkbox on each env card with a warning blurb
explaining what "bypass" means for non-daemon envs (confirms via
`confirm()` dialog before enabling on a local/ssh env).
- SETUP.md: documents the one-time `claude` interactive approval
needed on strict envs so the Supabase MCP trust prompt doesn't
block autonomous runs. Chose not to commit `.claude/settings.json`
— keeping the trust decision explicit per machine.
Full backend suite: 81/81 green.1 parent a41f243 commit 47a6e4b
10 files changed
Lines changed: 1483 additions & 16 deletions
File tree
- apps/desktop/src/renderer/components/panels
- docs
- packages
- backend/src
- db
- migrations
- meta
- routes
- services
Lines changed: 53 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
648 | 653 | | |
649 | 654 | | |
650 | 655 | | |
651 | | - | |
| 656 | + | |
652 | 657 | | |
653 | 658 | | |
654 | 659 | | |
| 660 | + | |
655 | 661 | | |
656 | 662 | | |
657 | 663 | | |
| |||
668 | 674 | | |
669 | 675 | | |
670 | 676 | | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
671 | 701 | | |
672 | 702 | | |
673 | 703 | | |
| |||
754 | 784 | | |
755 | 785 | | |
756 | 786 | | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
757 | 808 | | |
758 | 809 | | |
759 | 810 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
37 | 51 | | |
38 | 52 | | |
39 | 53 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments