Refactor /resume command to use dialog instead of standalone Ink app

This commit is contained in:
Alexander Farber
2025-12-12 21:34:26 +01:00
parent 2de50ae436
commit 12877ac849
9 changed files with 471 additions and 75 deletions

View File

@@ -66,6 +66,7 @@ interface SlashCommandProcessorActions {
openModelDialog: () => void;
openPermissionsDialog: () => void;
openApprovalModeDialog: () => void;
openResumeDialog: () => void;
quit: (messages: HistoryItem[]) => void;
setDebugMessage: (message: string) => void;
dispatchExtensionStateUpdate: (action: ExtensionUpdateAction) => void;
@@ -417,6 +418,9 @@ export const useSlashCommandProcessor = (
case 'approval-mode':
actions.openApprovalModeDialog();
return { type: 'handled' };
case 'resume':
actions.openResumeDialog();
return { type: 'handled' };
case 'help':
return { type: 'handled' };
default: {