Repository navigation
Commit ebc8e04
committed
fix(desktop): never reattach a previous installation's volumes on a fresh install
A desktop install set up again after its folder was deleted refused to
reuse only the old database. Every other volume the previous install
left was reattached silently: Compose project volumes (agent-workspace,
agent-profiles, spire-*) and the supervisor's per-Bot volumes
(<ns>-workspace-<bot>, <ns>-profile-<bot>). Default Bot ids are stable
across installs, so a new Bot opened the old Bot's files and Chromium
profile, including its website sign-ins.
On Start, a verified-fresh installation (no usable key, no database URL,
no saved model) now lists every leftover it can prove it owns: Compose
volumes and containers by project label, supervisor volumes and
containers by all three supervisor labels in this namespace. Start is
refused with one confirmed reset that removes the stopped containers,
then the volumes, bound to the exact set shown. A running owned
container blocks the reset and nothing is removed. Installations with
their saved key keep their data as before.1 parent f1961c3 commit ebc8e04
8 files changed
Lines changed: 1639 additions & 167 deletions
File tree
- desktop
- src-tauri/src
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
39 | 54 | | |
40 | 55 | | |
41 | 56 | | |
| |||
46 | 61 | | |
47 | 62 | | |
48 | 63 | | |
| 64 | + | |
49 | 65 | | |
50 | 66 | | |
51 | 67 | | |
| |||
57 | 73 | | |
58 | 74 | | |
59 | 75 | | |
| 76 | + | |
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
63 | 92 | | |
64 | 93 | | |
65 | 94 | | |
| |||
0 commit comments