From 5e5c88979fb73a936b4a81db3c66f27fb0b8b6e2 Mon Sep 17 00:00:00 2001 From: roboomp Date: Wed, 1 Jul 2026 00:07:30 +0000 Subject: [PATCH] style: bun run fix --- packages/coding-agent/src/stt/asr-client.ts | 4 +--- packages/coding-agent/test/issue-1940-repro.test.ts | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/coding-agent/src/stt/asr-client.ts b/packages/coding-agent/src/stt/asr-client.ts index 18bd4f908..1779e6556 100644 --- a/packages/coding-agent/src/stt/asr-client.ts +++ b/packages/coding-agent/src/stt/asr-client.ts @@ -132,9 +132,7 @@ export class SttClient { #refed = false; #spawnWorker: () => RefCountedWorkerHandle; - constructor( - spawnWorker: () => RefCountedWorkerHandle = spawnSttWorker, - ) { + constructor(spawnWorker: () => RefCountedWorkerHandle = spawnSttWorker) { this.#spawnWorker = spawnWorker; } diff --git a/packages/coding-agent/test/issue-1940-repro.test.ts b/packages/coding-agent/test/issue-1940-repro.test.ts index 8fa266947..c4012054a 100644 --- a/packages/coding-agent/test/issue-1940-repro.test.ts +++ b/packages/coding-agent/test/issue-1940-repro.test.ts @@ -3,6 +3,7 @@ import { SttClient } from "@oh-my-pi/pi-coding-agent/stt/asr-client"; import type { SttWorkerInbound, SttWorkerOutbound } from "@oh-my-pi/pi-coding-agent/stt/asr-protocol"; import { TinyTitleClient } from "@oh-my-pi/pi-coding-agent/tiny/title-client"; import type { TinyTitleWorkerInbound, TinyTitleWorkerOutbound } from "@oh-my-pi/pi-coding-agent/tiny/title-protocol"; + class FakeTinyWorker { terminated = false; refCalls = 0;