Skip to content

Fixed: Vault defers PIN creation to first write - #1972

Open
oliv3r wants to merge 1 commit into
retrospect-addon:masterfrom
oliv3r:pindefer
Open

Fixed: Vault defers PIN creation to first write#1972
oliv3r wants to merge 1 commit into
retrospect-addon:masterfrom
oliv3r:pindefer

Conversation

@oliv3r

@oliv3r oliv3r commented May 27, 2026

Copy link
Copy Markdown
Contributor

Vault.init previously triggered the howto dialog and PIN creation flow unconditionally when no application key was present, causing the PIN setup prompt to fire on every channel entry for a fresh install.

Introduce a lazy initializer called only by set_setting and set_channel_setting. The constructor now only decrypts an existing key (prompting for the unlock PIN); it stays silent when no key is stored.

Assisted-by: Claude Sonnet 4.6 noreply@anthropic.com
Signed-off-by: Olliver Schinagl oliver@schinagl.nl

Vault.__init__ previously triggered the howto dialog and PIN creation
flow unconditionally when no application key was present, causing the
PIN setup prompt to fire on every channel entry for a fresh install.

Introduce a lazy initializer called only by set_setting and
set_channel_setting. The constructor now only decrypts an existing
key (prompting for the unlock PIN); it stays silent when no key is
stored.

Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment on it to reset.

@github-actions github-actions Bot added the stale Stale issues/PR's label Jul 26, 2026
@basrieter basrieter removed the stale Stale issues/PR's label Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants