opencode working

This commit is contained in:
Shawn Morreau
2025-12-10 01:02:39 -05:00
parent bbda005ee9
commit ccb28d8cf5
13 changed files with 567 additions and 89 deletions
+4 -1
View File
@@ -92,13 +92,16 @@ export async function spawn(options: SpawnOptions): Promise<SpawnResult> {
});
});
child.on("error", (_error) => {
child.on("error", (error) => {
const durationMs = Date.now() - startTime;
if (timeoutId) {
clearTimeout(timeoutId);
}
// log spawn errors for debugging
console.error(`[spawn] Process spawn error: ${error.message}`);
resolve({
stdout: stdoutBuffer,
stderr: stderrBuffer,