Commit 192be2a
committed
fix: treat empty string as unset for chat.defaultAgent setting
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.1 parent bf6de44 commit 192be2a
1 file changed
Lines changed: 17 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
672 | | - | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
673 | 688 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | 689 | | |
687 | 690 | | |
688 | 691 | | |
| |||
0 commit comments