mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
feat: Add /config refresh command (#4993)
Co-authored-by: Bryan Morgan <bryanmorgan@google.com>
This commit is contained in:
parent
e275441651
commit
0170791800
6 changed files with 168 additions and 40 deletions
|
|
@ -50,6 +50,7 @@ export const useSlashCommandProcessor = (
|
|||
openPrivacyNotice: () => void,
|
||||
toggleVimEnabled: () => Promise<boolean>,
|
||||
setIsProcessing: (isProcessing: boolean) => void,
|
||||
refreshConfig: () => Promise<void>,
|
||||
) => {
|
||||
const session = useSessionStats();
|
||||
const [commands, setCommands] = useState<readonly SlashCommand[]>([]);
|
||||
|
|
@ -158,6 +159,7 @@ export const useSlashCommandProcessor = (
|
|||
setPendingItem: setPendingCompressionItem,
|
||||
toggleCorgiMode,
|
||||
toggleVimEnabled,
|
||||
refreshConfig,
|
||||
},
|
||||
session: {
|
||||
stats: session.stats,
|
||||
|
|
@ -180,6 +182,7 @@ export const useSlashCommandProcessor = (
|
|||
toggleCorgiMode,
|
||||
toggleVimEnabled,
|
||||
sessionShellAllowlist,
|
||||
refreshConfig,
|
||||
],
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue