Commit a9716f1
fix: warn on effective controller removal in canister settings update
When --proxy is set, the proxy canister is the effective controller
making management calls. The self-removal warning now checks the proxy
principal instead of the caller's identity, preventing false prompts
(and "not a terminal" errors in tests) when adding controllers to
proxy-deployed canisters. Warning messages are also updated to be
accurate for each case.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 8f17032 commit a9716f1
File tree
2 files changed
+20
-4
lines changed- crates/icp-cli
- src/commands/canister/settings
- tests
2 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
195 | 198 | | |
196 | | - | |
| 199 | + | |
197 | 200 | | |
198 | 201 | | |
199 | | - | |
200 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
201 | 213 | | |
202 | 214 | | |
203 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
| 393 | + | |
392 | 394 | | |
393 | 395 | | |
394 | 396 | | |
| |||
1459 | 1461 | | |
1460 | 1462 | | |
1461 | 1463 | | |
| 1464 | + | |
| 1465 | + | |
1462 | 1466 | | |
1463 | 1467 | | |
1464 | 1468 | | |
| |||
0 commit comments