Commit 8b3b7be
committed
fix(panel): make Remove work for panel and compose bots
- Delete the mounted config path instead of assuming `bots/<name>/`, fixing removal of Compose services with custom-named directories and flat-layout bots
- Reject "keep files" Remove on config-only bots (no container) to prevent silent no-ops that left the row on the fleet page
- Add safety checks to prevent deleting shared config when another live bot claims the same directory
- For flat-layout bots, delete derived-only secrets to avoid wiping neighbours' canonical secrets (e.g., `turnkey-api.key`); add `find_beside_derived()` helper to enforce this
- Update Remove dialog flow to clarify intent: first confirm container removal (if present), then separately ask about config deletion
- Add tests for Compose path resolution, flat-layout deletion, config-only bots, shared directories, and Turnkey secret handling1 parent c094415 commit 8b3b7be
7 files changed
Lines changed: 457 additions & 38 deletions
File tree
- src/panel
- http
- web/src/pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments