feat(cli): graceful fallback for keyring failures#5808
Conversation
|
@DOsinga, this fix should work. I tested this using LLM, but wasn't able to replicate the said error on my machine as yesterday. Tried disabling even the keyring, but Edit: I added fallback for DBus error as well, look at the comment down below. I tested this manually. It seems to be working but this DCO check is killing me. I think I messed up my commit messages. |
|
i guess we should handle this as well Error: Failed to access keyring: Platform secure storage failure: DBus error: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS insteadEdit: Managed to setup docker. Seems to be working. |
72b571e to
0475b4c
Compare
155c442 to
c2011bc
Compare
caaa13e to
87cd6dc
Compare
84c4a2f to
4f32af7
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity for 23 days. What happens next?
Thank you for your contribution! 🚀 |
|
Need a look on this |
DOsinga
left a comment
There was a problem hiding this comment.
I like this; but I think we should cut down on the logging and make sure we actually write the value to non keyring.
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
- Fixed type mismatches in keyring fallback functions - Added ConfigError::FallbackToFileStorage variant - Refactored keyring fallback logic into helper methods - Avoided pre-checking secret existence during configure setup - Added proper user feedback for file-based storage fallback Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Added a reusable store_secret_with_fallback() function Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
4f32af7 to
4a83e5a
Compare
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
5a9ac4a to
0cb267e
Compare
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com> # Conflicts: # crates/goose-cli/src/commands/configure.rs
5c49a52 to
98808fa
Compare
|
When merging with As a result, the The core fallback logic in @DOsinga This PR has been open for a while, and ongoing changes in |
…time Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
1e0a8d0 to
01986c9
Compare
|
sorry forgot to press the button |
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
e237e39 to
2cbda18
Compare
No worries! |
* main: fix: require auth when running goose on non loopback address (#6478) chore(deps): bump hono from 4.11.3 to 4.11.4 in /ui/desktop (#6485) feat(cli): graceful fallback for keyring failures (#5808) fix: support global .gooseignore and negation patterns (#6157) docs: manual config for jetbrains (#6490) fix: Recipe slash command doesn't work with single optional parameter (#6235) fix(openrouter): Handle Gemini thoughtSignature for tool calls (#6370) docs: fix extensions page (#6484) Allow customizing the new line keybinding in the CLI (#5956) Ask for permission in the CLI (#6475) docs: add Ralph Loop tutorial for multi-model iterative development (#6455) Remove gitignore fallback from gooseignore docs (#6480) fix: clean up result recording for code mode (#6343) fix(code_execution): handle model quirks with tool calls (#6352) feat(ui): support prefersBorder option for MCP Apps (#6465) fixed line breaks (#6459) Use Intl.NumberFormat for token formatting in SessionsInsights (#6466) feat(ui): format large and small token counts for readability (#6449) fix: apply subrecipes when using slash commands (#6460)
…ased * 'main' of github.com:block/goose: fix(code_execution): serialize record_result output as JSON (#6495) perf(google): avoid accumulating thoughtSignatures across conversation history (#6462) fix(openai): make tool_call arguments optional and fix silent stream termination (#6309) fix: Improve error messages for invalid tool calls (#6483) fix: require auth when running goose on non loopback address (#6478) chore(deps): bump hono from 4.11.3 to 4.11.4 in /ui/desktop (#6485) feat(cli): graceful fallback for keyring failures (#5808) fix: support global .gooseignore and negation patterns (#6157) docs: manual config for jetbrains (#6490) fix: Recipe slash command doesn't work with single optional parameter (#6235) fix(openrouter): Handle Gemini thoughtSignature for tool calls (#6370) docs: fix extensions page (#6484) Allow customizing the new line keybinding in the CLI (#5956) Ask for permission in the CLI (#6475) docs: add Ralph Loop tutorial for multi-model iterative development (#6455) Remove gitignore fallback from gooseignore docs (#6480) fix: clean up result recording for code mode (#6343) fix(code_execution): handle model quirks with tool calls (#6352) feat(ui): support prefersBorder option for MCP Apps (#6465) fixed line breaks (#6459)
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com> Signed-off-by: fbalicchia <fbalicchia@cuebiq.com>
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
Summary
Add automatic fallback to file-based storage when keyring is unavailable.
Provides user-friendly warnings and security guidance while maintaining configuration functionality.
Type of Change
AI Assistance
Testing
Related Issues
Fixes #5790