feat: Increase indexing timeout to 30 minutes for large codebases

- /api/codexlens/init: 5min → 30min
- smart-search init action: 5min → 30min
- executeInitWithProgress: 5min → 30min
- executeCodexLens default: 1min → 5min

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-12-18 09:48:55 +08:00
parent d5d6f1fbbe
commit ae07df612d
3 changed files with 153 additions and 4 deletions

View File

@@ -428,7 +428,7 @@ function parseProgressLine(line: string): ProgressInfo | null {
* @returns Execution result
*/
async function executeCodexLens(args: string[], options: ExecuteOptions = {}): Promise<ExecuteResult> {
const { timeout = 60000, cwd = process.cwd(), onProgress } = options;
const { timeout = 300000, cwd = process.cwd(), onProgress } = options; // Default 5 min
// Ensure ready
const readyStatus = await ensureReady();

View File

@@ -349,7 +349,7 @@ async function executeInitAction(params: Params): Promise<SearchResult> {
const result = await executeCodexLens(args, {
cwd: path,
timeout: 300000,
timeout: 1800000, // 30 minutes for large codebases
onProgress: (progress: ProgressInfo) => {
progressUpdates.push(progress);
lastProgress = progress;
@@ -1170,7 +1170,7 @@ export async function executeInitWithProgress(
const result = await executeCodexLens(args, {
cwd: path,
timeout: 300000,
timeout: 1800000, // 30 minutes for large codebases
onProgress: (progress: ProgressInfo) => {
progressUpdates.push(progress);
lastProgress = progress;