mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
Add privacy notice slash command (#2059)
This commit is contained in:
parent
4fbffdf617
commit
a2a46c7c67
13 changed files with 468 additions and 15 deletions
|
|
@ -76,6 +76,7 @@ export const useSlashCommandProcessor = (
|
|||
toggleCorgiMode: () => void,
|
||||
showToolDescriptions: boolean = false,
|
||||
setQuittingMessages: (message: HistoryItem[]) => void,
|
||||
openPrivacyNotice: () => void,
|
||||
) => {
|
||||
const session = useSessionStats();
|
||||
const gitService = useMemo(() => {
|
||||
|
|
@ -254,6 +255,13 @@ export const useSlashCommandProcessor = (
|
|||
openEditorDialog();
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'privacy',
|
||||
description: 'display the privacy notice',
|
||||
action: (_mainCommand, _subCommand, _args) => {
|
||||
openPrivacyNotice();
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'stats',
|
||||
altName: 'usage',
|
||||
|
|
@ -1022,6 +1030,7 @@ export const useSlashCommandProcessor = (
|
|||
setQuittingMessages,
|
||||
pendingCompressionItemRef,
|
||||
setPendingCompressionItem,
|
||||
openPrivacyNotice,
|
||||
]);
|
||||
|
||||
const handleSlashCommand = useCallback(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue