Skip to content

Conversation

mibeco
Copy link
Contributor

@mibeco mibeco commented Sep 27, 2025

When users run 'q settings chat.defaultAgent ""' to reset their default agent (as documented), the empty string was being treated as a valid agent name, causing an error message on every chat session start.

This change treats empty strings as 'no default set', allowing users to cleanly reset to the built-in default agent without error messages.

Fixes the misleading behavior described in the AWS documentation where setting an empty string should reset to built-in default silently. (The documentation is also being revised, but we should take care of this edge case anyway.)

Includes test to verify empty string handling behavior.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When users run 'q settings chat.defaultAgent ""' to reset their default
agent (as documented), the empty string was being treated as a valid
agent name, causing an error message on every chat session start.

This change treats empty strings as 'no default set', allowing users
to cleanly reset to the built-in default agent without error messages.

Fixes the misleading behavior described in the AWS documentation where
setting an empty string should reset to built-in default silently.

Includes test to verify empty string handling behavior.
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.

1 participant