feat: rename workspace review command
Renamed OpenChamber review command to /workspace-review Kept built-in /review available separately Updated autocomplete and localized settings copy
This commit is contained in:
@@ -1531,7 +1531,7 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (commandName === 'review' && currentSessionId) {
|
||||
else if (commandName === 'workspace-review' && (currentSessionId || newSessionDraftOpen)) {
|
||||
try {
|
||||
await sessionActions.waitForConnectionOrThrow();
|
||||
const visibleText = await renderMagicPrompt('session.review.visible');
|
||||
|
||||
@@ -53,6 +53,8 @@ export const CommandAutocomplete = React.forwardRef<CommandAutocompleteHandle, C
|
||||
const sessionMessages = useSessionMessages(currentSessionId ?? '');
|
||||
const hasMessagesInCurrentSession = sessionMessages.length > 0;
|
||||
const hasSession = Boolean(currentSessionId);
|
||||
const hasNewSessionDraft = useSessionUIStore((state) => Boolean(state.newSessionDraft?.open));
|
||||
const canStartSessionCommand = hasSession || hasNewSessionDraft;
|
||||
|
||||
const [commands, setCommands] = React.useState<CommandInfo[]>([]);
|
||||
const [loading, setLoading] = React.useState(false);
|
||||
@@ -126,8 +128,8 @@ export const CommandAutocomplete = React.forwardRef<CommandAutocompleteHandle, C
|
||||
? [{ id: 'openchamber:summary', name: 'summary', source: 'openchamber' as const, description: t('chat.commandAutocomplete.command.summaryDescription'), isOpenChamber: true }]
|
||||
: []
|
||||
),
|
||||
...(hasSession
|
||||
? [{ id: 'openchamber:review', name: 'review', source: 'openchamber' as const, description: t('chat.commandAutocomplete.command.reviewDescription'), isOpenChamber: true }]
|
||||
...(canStartSessionCommand
|
||||
? [{ id: 'openchamber:workspace-review', name: 'workspace-review', source: 'openchamber' as const, description: t('chat.commandAutocomplete.command.workspaceReviewDescription'), isOpenChamber: true }]
|
||||
: []
|
||||
),
|
||||
];
|
||||
@@ -170,8 +172,8 @@ export const CommandAutocomplete = React.forwardRef<CommandAutocompleteHandle, C
|
||||
? [{ id: 'openchamber:summary', name: 'summary', source: 'openchamber' as const, description: t('chat.commandAutocomplete.command.summaryDescription'), isOpenChamber: true }]
|
||||
: []
|
||||
),
|
||||
...(hasSession
|
||||
? [{ id: 'openchamber:review', name: 'review', source: 'openchamber' as const, description: t('chat.commandAutocomplete.command.reviewDescription'), isOpenChamber: true }]
|
||||
...(canStartSessionCommand
|
||||
? [{ id: 'openchamber:workspace-review', name: 'workspace-review', source: 'openchamber' as const, description: t('chat.commandAutocomplete.command.workspaceReviewDescription'), isOpenChamber: true }]
|
||||
: []
|
||||
),
|
||||
];
|
||||
@@ -190,7 +192,7 @@ export const CommandAutocomplete = React.forwardRef<CommandAutocompleteHandle, C
|
||||
};
|
||||
|
||||
loadCommands();
|
||||
}, [searchQuery, hasMessagesInCurrentSession, hasSession, commandsWithMetadata, skills, t]);
|
||||
}, [searchQuery, hasMessagesInCurrentSession, hasSession, canStartSessionCommand, commandsWithMetadata, skills, t]);
|
||||
|
||||
React.useEffect(() => {
|
||||
setSelectedIndex(0);
|
||||
|
||||
@@ -1492,7 +1492,7 @@ export const settingsDict = {
|
||||
'settings.magicPrompts.page.group.sessionSummary.title': 'Session Summary',
|
||||
'settings.magicPrompts.page.group.sessionSummary.description': 'Prompts used by the /summary slash command: visible user message + hidden instructions. Non-destructive - does not compact session history.',
|
||||
'settings.magicPrompts.page.group.sessionWorkspaceReview.title': 'Workspace Review',
|
||||
'settings.magicPrompts.page.group.sessionWorkspaceReview.description': 'Prompts used by the /review slash command: visible user message + hidden instructions. Reviews current workspace changes for high-signal issues only.',
|
||||
'settings.magicPrompts.page.group.sessionWorkspaceReview.description': 'Prompts used by the /workspace-review slash command: visible user message + hidden instructions. Reviews current workspace changes for high-signal issues only.',
|
||||
'settings.magicPrompts.page.actions.resetting': 'Resetting...',
|
||||
'settings.magicPrompts.page.actions.resetAllOverrides': 'Reset All Overrides',
|
||||
'settings.magicPrompts.page.actions.resetToDefault': 'Reset to Default',
|
||||
|
||||
@@ -1261,7 +1261,7 @@ export const dict = {
|
||||
'chat.commandAutocomplete.command.redoDescription': 'Redo previously undone messages',
|
||||
'chat.commandAutocomplete.command.compactDescription': 'Compress session history using AI to reduce context size',
|
||||
'chat.commandAutocomplete.command.summaryDescription': 'Non-destructive session summary. Optional topic hint after the command.',
|
||||
'chat.commandAutocomplete.command.reviewDescription': 'Review current workspace changes for high-signal issues only.',
|
||||
'chat.commandAutocomplete.command.workspaceReviewDescription': 'Review current workspace changes for high-signal issues only.',
|
||||
'chat.commandAutocomplete.badge.skill': 'skill',
|
||||
'chat.commandAutocomplete.badge.system': 'system',
|
||||
'chat.commandAutocomplete.empty': 'No commands found',
|
||||
|
||||
@@ -1492,7 +1492,7 @@ export const settingsDict = {
|
||||
"settings.magicPrompts.page.group.sessionSummary.title": "Resumen de sesión",
|
||||
"settings.magicPrompts.page.group.sessionSummary.description": "Prompts usados por el comando /summary: mensaje visible del usuario + instrucciones ocultas. No destructivo: no compacta el historial de la sesión.",
|
||||
"settings.magicPrompts.page.group.sessionWorkspaceReview.title": "Revisión del espacio de trabajo",
|
||||
"settings.magicPrompts.page.group.sessionWorkspaceReview.description": "Prompts usados por el comando /review: mensaje visible del usuario + instrucciones ocultas. Revisa los cambios actuales del espacio de trabajo solo para problemas de alta señal.",
|
||||
"settings.magicPrompts.page.group.sessionWorkspaceReview.description": "Prompts usados por el comando /workspace-review: mensaje visible del usuario + instrucciones ocultas. Revisa los cambios actuales del espacio de trabajo solo para problemas de alta señal.",
|
||||
"settings.magicPrompts.page.actions.resetting": "Restableciendo...",
|
||||
"settings.magicPrompts.page.actions.resetAllOverrides": "Restablecer todas las sobrescrituras",
|
||||
"settings.magicPrompts.page.actions.resetToDefault": "Restablecer valores predeterminados",
|
||||
|
||||
@@ -1262,7 +1262,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.commandAutocomplete.command.redoDescription": "Rehacer mensajes previamente deshechos",
|
||||
"chat.commandAutocomplete.command.compactDescription": "Comprimir el historial de la sesión usando IA para reducir el tamaño del contexto",
|
||||
"chat.commandAutocomplete.command.summaryDescription": "Resumen no destructivo de la sesión. Pista opcional del tema después del comando.",
|
||||
"chat.commandAutocomplete.command.reviewDescription": "Revisar los cambios actuales del espacio de trabajo solo para problemas de alto impacto.",
|
||||
"chat.commandAutocomplete.command.workspaceReviewDescription": "Revisar los cambios actuales del espacio de trabajo solo para problemas de alto impacto.",
|
||||
"chat.commandAutocomplete.badge.skill": "habilidad",
|
||||
"chat.commandAutocomplete.badge.system": "sistema",
|
||||
"chat.commandAutocomplete.empty": "No se encontraron comandos",
|
||||
|
||||
@@ -1492,7 +1492,7 @@ export const settingsDict = {
|
||||
"settings.magicPrompts.page.group.sessionSummary.title": "Resumo de sessão",
|
||||
"settings.magicPrompts.page.group.sessionSummary.description": "Prompts usados pelo comando /summary: mensagem visível do usuário + instruções ocultas. Não destrutivo: não compacta o histórico da sessão.",
|
||||
"settings.magicPrompts.page.group.sessionWorkspaceReview.title": "Revisão do workspace",
|
||||
"settings.magicPrompts.page.group.sessionWorkspaceReview.description": "Prompts usados pelo comando /review: mensagem visível do usuário + instruções ocultas. Revise apenas problemas importantes nas alterações atuais do workspace.",
|
||||
"settings.magicPrompts.page.group.sessionWorkspaceReview.description": "Prompts usados pelo comando /workspace-review: mensagem visível do usuário + instruções ocultas. Revise apenas problemas importantes nas alterações atuais do workspace.",
|
||||
"settings.magicPrompts.page.actions.resetting": "Redefinindo...",
|
||||
"settings.magicPrompts.page.actions.resetAllOverrides": "Reiniciar todas as sobrescrituras",
|
||||
"settings.magicPrompts.page.actions.resetToDefault": "Reiniciar valores padrões",
|
||||
|
||||
@@ -1262,7 +1262,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.commandAutocomplete.command.redoDescription": "Refazer mensagens desfeitas anteriormente",
|
||||
"chat.commandAutocomplete.command.compactDescription": "Comprimir o histórico da sessão usando IA para reduzir o tamanho do contexto",
|
||||
"chat.commandAutocomplete.command.summaryDescription": "Resumo não destrutivo da sessão. Dica opcional do tema após o comando.",
|
||||
"chat.commandAutocomplete.command.reviewDescription": "Revisar as alterações atuais do workspace apenas para problemas de alto impacto.",
|
||||
"chat.commandAutocomplete.command.workspaceReviewDescription": "Revisar as alterações atuais do workspace apenas para problemas de alto impacto.",
|
||||
"chat.commandAutocomplete.badge.skill": "habilidade",
|
||||
"chat.commandAutocomplete.badge.system": "sistema",
|
||||
"chat.commandAutocomplete.empty": "Nenhum comando encontrado",
|
||||
|
||||
@@ -1492,7 +1492,7 @@ export const settingsDict = {
|
||||
"settings.magicPrompts.page.group.sessionSummary.title": "Підсумок сесії",
|
||||
"settings.magicPrompts.page.group.sessionSummary.description": "Промпти, які використовуються командою /summary: видиме повідомлення користувача + приховані інструкції. Неруйнівний – не стискає історію сесії.",
|
||||
"settings.magicPrompts.page.group.sessionWorkspaceReview.title": "Огляд робочого простору",
|
||||
"settings.magicPrompts.page.group.sessionWorkspaceReview.description": "Промпти, які використовуються командою /review: видиме повідомлення користувача + приховані інструкції. Переглядає поточні зміни робочого простору лише для проблем із сильним сигналом.",
|
||||
"settings.magicPrompts.page.group.sessionWorkspaceReview.description": "Промпти, які використовуються командою /workspace-review: видиме повідомлення користувача + приховані інструкції. Переглядає поточні зміни робочого простору лише для проблем із сильним сигналом.",
|
||||
"settings.magicPrompts.page.actions.resetting": "Скидання...",
|
||||
"settings.magicPrompts.page.actions.resetAllOverrides": "Скинути всі перевизначення",
|
||||
"settings.magicPrompts.page.actions.resetToDefault": "Скинути до замовчування",
|
||||
|
||||
@@ -1262,7 +1262,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.commandAutocomplete.command.redoDescription": "Повторити раніше скасовані повідомлення",
|
||||
"chat.commandAutocomplete.command.compactDescription": "Стиснути історію сесії за допомогою ШІ, щоб зменшити розмір контексту",
|
||||
"chat.commandAutocomplete.command.summaryDescription": "Неруйнівний підсумок сесії. Після команди можна додати тему.",
|
||||
"chat.commandAutocomplete.command.reviewDescription": "Перегляньте поточні зміни в робочому середовищі лише для проблем із сильним сигналом.",
|
||||
"chat.commandAutocomplete.command.workspaceReviewDescription": "Перегляньте поточні зміни в робочому середовищі лише для проблем із сильним сигналом.",
|
||||
"chat.commandAutocomplete.badge.skill": "навичка",
|
||||
"chat.commandAutocomplete.badge.system": "система",
|
||||
"chat.commandAutocomplete.empty": "Команди не знайдено",
|
||||
|
||||
@@ -1492,7 +1492,7 @@ export const settingsDict = {
|
||||
'settings.magicPrompts.page.group.sessionSummary.title': '会话总结',
|
||||
'settings.magicPrompts.page.group.sessionSummary.description': '由 /summary 斜杠命令使用的提示词:可见用户消息 + 隐藏说明。非破坏性,不会压缩会话历史。',
|
||||
'settings.magicPrompts.page.group.sessionWorkspaceReview.title': '工作区审查',
|
||||
'settings.magicPrompts.page.group.sessionWorkspaceReview.description': '由 /review 斜杠命令使用的提示词:可见用户消息 + 隐藏说明。仅审查当前工作区的高信号问题。',
|
||||
'settings.magicPrompts.page.group.sessionWorkspaceReview.description': '由 /workspace-review 斜杠命令使用的提示词:可见用户消息 + 隐藏说明。仅审查当前工作区的高信号问题。',
|
||||
'settings.magicPrompts.page.actions.resetting': '重置中...',
|
||||
'settings.magicPrompts.page.actions.resetAllOverrides': '重置全部覆盖',
|
||||
'settings.magicPrompts.page.actions.resetToDefault': '重置为默认',
|
||||
|
||||
@@ -1262,7 +1262,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.commandAutocomplete.command.redoDescription': '重做之前撤销的消息',
|
||||
'chat.commandAutocomplete.command.compactDescription': '使用 AI 压缩会话历史以减少上下文大小',
|
||||
'chat.commandAutocomplete.command.summaryDescription': '非破坏性会话总结。命令后可选填主题提示。',
|
||||
'chat.commandAutocomplete.command.reviewDescription': '仅审查当前工作区中高价值的问题。',
|
||||
'chat.commandAutocomplete.command.workspaceReviewDescription': '仅审查当前工作区中高价值的问题。',
|
||||
'chat.commandAutocomplete.badge.skill': '技能',
|
||||
'chat.commandAutocomplete.badge.system': '系统',
|
||||
'chat.commandAutocomplete.empty': '未找到命令',
|
||||
|
||||
@@ -512,14 +512,14 @@ Respond in the same language the user used most in the conversation.`,
|
||||
id: 'session.review.visible',
|
||||
title: 'Workspace Review Visible Prompt',
|
||||
group: 'Session',
|
||||
description: 'Visible user message sent by the /review command.',
|
||||
description: 'Visible user message sent by the /workspace-review command.',
|
||||
template: 'Review the changes made in this workspace.',
|
||||
},
|
||||
{
|
||||
id: 'session.review.instructions',
|
||||
title: 'Workspace Review Instructions',
|
||||
group: 'Session',
|
||||
description: 'Hidden instructions attached to the /review command. Reviews current workspace changes for high-signal issues only.',
|
||||
description: 'Hidden instructions attached to the /workspace-review command. Reviews current workspace changes for high-signal issues only.',
|
||||
template: `
|
||||
Report only real, high-signal issues introduced by these changes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user