Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/src/utils/tool_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async function main() {
'[tool_runner] Successfully parsed JSON args:',
JSON.stringify(parsedArgs)
);
} catch (err) {
} catch {
// If not valid JSON, use as-is
console.log(
'[tool_runner] Args not valid JSON, using as raw strings:',
Expand Down
14 changes: 7 additions & 7 deletions host/src/browser/cdp/chrome_cdp_launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function checkExistingChromeInstance(port: number): Promise<boolean> {
const { execSync } = await import('child_process');
try {
execSync(`nc -z localhost ${port}`);
} catch (e) {
} catch {
console.log(`Port ${port} is not open, no Chrome instance found`);
return false;
}
Expand Down Expand Up @@ -92,7 +92,7 @@ async function connectToExistingChrome(
const output = execSync(`lsof -i:${port} -t`).toString().trim();
pid = parseInt(output, 10);
console.log(`Found Chrome process with PID: ${pid}`);
} catch (e) {
} catch {
console.log(`Could not determine PID of Chrome on port ${port}`);
}

Expand Down Expand Up @@ -123,7 +123,7 @@ async function connectToExistingChrome(
`Chrome process ${pid} still running, using SIGKILL`
);
execSync(`kill -KILL ${pid}`);
} catch (e) {
} catch {
// Process not found, which means it's already terminated
console.log(
`Chrome process ${pid} successfully terminated`
Expand Down Expand Up @@ -304,7 +304,7 @@ export async function launchChrome(

const chromeVersion = execSync(chromeCommand).toString().trim();
console.log(`Detected Chrome version: ${chromeVersion}`);
} catch (e) {
} catch {
console.log(
'Could not detect Chrome version, but continuing anyway'
);
Expand Down Expand Up @@ -448,7 +448,7 @@ export async function shutdownChrome(
const { execSync } = await import('child_process');
execSync(`ps -p ${pid} > /dev/null 2>&1`);
return true; // Process exists
} catch (e) {
} catch {
return false; // Process doesn't exist
}
};
Expand Down Expand Up @@ -624,7 +624,7 @@ export async function getChromeInfo(): Promise<{
.toString()
.trim();
pid = parseInt(output, 10);
} catch (e) {
} catch {
// Ignore error
}

Expand All @@ -638,7 +638,7 @@ export async function getChromeInfo(): Promise<{
getDefaultChromeUserDataDir(),
};
}
} catch (e) {
} catch {
// Ignore errors and return not running
}
}
Expand Down
2 changes: 1 addition & 1 deletion host/src/browser/cdp/chrome_profile_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export function isChromeRunning(): boolean {
}
}
return false;
} catch (error) {
} catch (_error) {
// If the command fails, assume Chrome is not running
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion host/src/setup/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function getRecentDirectories(baseDir: string, limit: number = 10): string[] {
name: dir.name,
mtime: stats.mtime.getTime(),
};
} catch (error) {
} catch (_error) {
// Skip directories we can't access
return null;
}
Expand Down
Loading