cmd_add blank-prompt decision uses pre-prompt stale config #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found: full codebase audit 2026-10-15, by reading src/app.rs cmd_add.
Confidence: medium (needs two concurrent adds to trigger).
Location: src/app.rs:596,630-668.
existingis snapshotted before the interactive prompt from the startup-loaded cfg, but the locked Config::update closure reloads fresh config. Blank-means-keep vs blank-means-open is decided by the stale flag: a network created concurrently after our load gets its password wiped by our blank.Suggested fix: recompute existence inside the update closure from the fresh cfg.