Load a config that has no age recipient #244

Merged
clawbot merged 1 commits from issue-221-recipient-optional-at-load into next 2026-10-06 15:46:14 +02:00
1 Commits
Author SHA1 Message Date
sneak 522d802ba1 Load a config that has no age recipient (closes #221)
check / check (push) Waiting to run
The README's steps for restoring on another machine failed at the first
command: `config init` wrote a placeholder recipient, and `config.Load`
rejects any recipient that does not parse. `config init` now writes an
empty `age_recipients` list, `config.Load` accepts an empty list, and
`snapshot create` refuses to start without a recipient. A malformed
recipient is still rejected at load.

The recovery-host test now builds its config with `config init` and
`config set` and reads it through `config.Load`, so it imports
`internal/cli`. On a fresh file, `config set age_recipients.0` writes the
list in flow style (`[age1...]`).

Model: opus-5-5
2026-10-06 12:46:46 +00:00