fix: update scripts and hooks for improved worker management and synchronization
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import { stdin } from 'process';
|
||||
import { getWorkerPort } from '../shared/worker-utils.js';
|
||||
import { ensureWorkerRunning, getWorkerPort } from '../shared/worker-utils.js';
|
||||
import { silentDebug } from '../utils/silent-debug.js';
|
||||
|
||||
export interface SessionEndInput {
|
||||
@@ -44,6 +44,9 @@ async function cleanupHook(input?: SessionEndInput): Promise<void> {
|
||||
|
||||
const { session_id, reason } = input;
|
||||
|
||||
// Ensure worker is running
|
||||
await ensureWorkerRunning();
|
||||
|
||||
const port = getWorkerPort();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user