Skip to content

fix(cli): display platform-correct secrets path in keyring config dialog#8328

Open
SushaanthSrinivasan wants to merge 1 commit intoblock:mainfrom
SushaanthSrinivasan:fix/configure-secrets-path-display
Open

fix(cli): display platform-correct secrets path in keyring config dialog#8328
SushaanthSrinivasan wants to merge 1 commit intoblock:mainfrom
SushaanthSrinivasan:fix/configure-secrets-path-display

Conversation

@SushaanthSrinivasan
Copy link
Copy Markdown

@SushaanthSrinivasan SushaanthSrinivasan commented Apr 5, 2026

Summary

  • The keyring configuration dialog in goose configure hardcoded ~/.config/goose/secrets.yaml in warning and confirmation messages
  • This path is only correct on Linux — on Windows the actual path is C:\Users\<user>\AppData\Roaming\Block\goose\config\secrets.yaml, on macOS it's ~/Library/Application Support/Block/goose/
  • Replaced hardcoded string with Paths::config_dir().join("secrets.yaml"), which is already imported and used elsewhere in the same file

Fixes #8326

Before / After

Before (hardcoded Unix path on Windows):
old

After (correct platform path):
new

Test plan

  • Built and tested on Windows 11 — path now shows correct platform path
  • Compilation verified on Linux (WSL) via cargo check

The keyring configuration dialog hardcoded `~/.config/goose/secrets.yaml`
in its warning and confirmation messages. This path is only correct on
Linux. On Windows and macOS, the actual secrets file is in a different
location determined by the platform's config directory conventions.

Replace the hardcoded string with `Paths::config_dir().join("secrets.yaml")`
which is already imported and used elsewhere in the same file.

Fixes block#8326

Signed-off-by: SushaanthSrinivasan <SushaanthSrinivasan@users.noreply.github.com>
@SushaanthSrinivasan SushaanthSrinivasan force-pushed the fix/configure-secrets-path-display branch from 69aa402 to c907fa3 Compare April 5, 2026 19:32
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.

fix(cli): keyring config dialog shows hardcoded Unix path instead of platform-specific secrets path

1 participant