mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-06 16:31:12 +08:00
feat: Add CLI session pause and resume functionality with UI integration
This commit is contained in:
@@ -63,6 +63,7 @@ function getStoreState() {
|
||||
upsertCliSession: cliSessions.upsertSession,
|
||||
removeCliSession: cliSessions.removeSession,
|
||||
appendCliSessionOutput: cliSessions.appendOutput,
|
||||
updateCliSessionPausedState: cliSessions.updateSessionPausedState,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -195,6 +196,22 @@ export function useWebSocket(options: UseWebSocketOptions = {}): UseWebSocketRet
|
||||
break;
|
||||
}
|
||||
|
||||
case 'CLI_SESSION_PAUSED': {
|
||||
const { sessionKey } = data.payload ?? {};
|
||||
if (typeof sessionKey === 'string') {
|
||||
stores.updateCliSessionPausedState(sessionKey, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 'CLI_SESSION_RESUMED': {
|
||||
const { sessionKey } = data.payload ?? {};
|
||||
if (typeof sessionKey === 'string') {
|
||||
stores.updateCliSessionPausedState(sessionKey, false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 'CLI_OUTPUT': {
|
||||
const { executionId, chunkType, data: outputData, unit } = data.payload;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user