Skip to content

Commit 8abd7ab

Browse files
committed
lint
1 parent fe2baa1 commit 8abd7ab

2 files changed

Lines changed: 13 additions & 16 deletions

File tree

apps/array/src/main/index.ts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,11 @@ app.on("activate", () => {
379379
});
380380

381381
// Handle process signals to ensure clean shutdown
382-
const handleShutdownSignal = async (signal: string) => {
383-
console.log(`Received ${signal}, cleaning up agent subprocesses...`);
382+
const handleShutdownSignal = async (_signal: string) => {
384383
try {
385384
const agentService = container.get<AgentService>(MAIN_TOKENS.AgentService);
386385
await agentService.cleanupAll();
387-
} catch (err) {
388-
console.error("Error during signal cleanup:", err);
389-
}
386+
} catch (_err) {}
390387
process.exit(0);
391388
};
392389

@@ -395,24 +392,18 @@ process.on("SIGINT", () => handleShutdownSignal("SIGINT"));
395392
process.on("SIGHUP", () => handleShutdownSignal("SIGHUP"));
396393

397394
// Handle uncaught exceptions to attempt cleanup before crash
398-
process.on("uncaughtException", async (error) => {
399-
console.error("Uncaught exception, attempting cleanup:", error);
395+
process.on("uncaughtException", async (_error) => {
400396
try {
401397
const agentService = container.get<AgentService>(MAIN_TOKENS.AgentService);
402398
await agentService.cleanupAll();
403-
} catch (cleanupErr) {
404-
console.error("Error during exception cleanup:", cleanupErr);
405-
}
399+
} catch (_cleanupErr) {}
406400
process.exit(1);
407401
});
408402

409-
process.on("unhandledRejection", async (reason) => {
410-
console.error("Unhandled rejection, attempting cleanup:", reason);
403+
process.on("unhandledRejection", async (_reason) => {
411404
try {
412405
const agentService = container.get<AgentService>(MAIN_TOKENS.AgentService);
413406
await agentService.cleanupAll();
414-
} catch (cleanupErr) {
415-
console.error("Error during rejection cleanup:", cleanupErr);
416-
}
407+
} catch (_cleanupErr) {}
417408
process.exit(1);
418409
});

packages/agent/src/adapters/claude/claude.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,13 @@ export class ClaudeAcpAgent implements Agent {
621621
options,
622622
});
623623

624-
this.createSession(sessionId, q, input, ourPermissionMode, sessionAbortController);
624+
this.createSession(
625+
sessionId,
626+
q,
627+
input,
628+
ourPermissionMode,
629+
sessionAbortController,
630+
);
625631

626632
// Register for S3 persistence if config provided
627633
const persistence = params._meta?.persistence as

0 commit comments

Comments
 (0)