Add comprehensive tests for CLI functionality and CodexLens compatibility

- Introduced tests for stale running fallback in CLI watch functionality to ensure proper handling of saved conversations.
- Added compatibility tests for CodexLens CLI to verify index initialization despite compatibility conflicts.
- Implemented tests for Smart Search MCP usage to validate default settings and path handling.
- Created tests for UV Manager to ensure Python preference handling works as expected.
- Added a detailed guide for CCW/Codex commands and skills, covering core commands, execution modes, and templates.
This commit is contained in:
catlog22
2026-03-08 17:30:39 +08:00
parent 4254eeeaa7
commit 9aa07e8d01
32 changed files with 2954 additions and 154 deletions

View File

@@ -12,7 +12,10 @@ import { router } from './router';
import queryClient from './lib/query-client';
import type { Locale } from './lib/i18n';
import { useWorkflowStore } from '@/stores/workflowStore';
import { useActiveCliExecutions } from '@/hooks/useActiveCliExecutions';
import { useCliStreamStore } from '@/stores/cliStreamStore';
import { useExecutionMonitorStore } from '@/stores/executionMonitorStore';
import { useTerminalPanelStore } from '@/stores/terminalPanelStore';
import { useActiveCliExecutions, ACTIVE_CLI_EXECUTIONS_QUERY_KEY } from '@/hooks/useActiveCliExecutions';
import { DialogStyleProvider } from '@/contexts/DialogStyleContext';
import { initializeCsrfToken } from './lib/api';
@@ -55,6 +58,10 @@ function QueryInvalidator() {
useEffect(() => {
// Register callback to invalidate all workspace-related queries on workspace switch
const callback = () => {
useCliStreamStore.getState().resetState();
useExecutionMonitorStore.getState().resetState();
useTerminalPanelStore.getState().resetState();
queryClient.invalidateQueries({ queryKey: ACTIVE_CLI_EXECUTIONS_QUERY_KEY });
queryClient.invalidateQueries({
predicate: (query) => {
const queryKey = query.queryKey;