diff options
| author | Brandon Keiji <[email protected]> | 2025-06-03 02:10:54 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-02 19:10:54 -0700 |
| commit | 74801e900413c2ca48a2977680e715cd28aa76d9 (patch) | |
| tree | 54a054711f11d9dd5dc9d72aed2759b8d6e13b88 /packages/core/src/tools/tool-registry.ts | |
| parent | 447826ab40354c01667328a651f6a0f239825c64 (diff) | |
refactor: maintain 1 GeminiChat per GeminiClient (#710)
Diffstat (limited to 'packages/core/src/tools/tool-registry.ts')
| -rw-r--r-- | packages/core/src/tools/tool-registry.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/core/src/tools/tool-registry.ts b/packages/core/src/tools/tool-registry.ts index 21aec687..12aa1a83 100644 --- a/packages/core/src/tools/tool-registry.ts +++ b/packages/core/src/tools/tool-registry.ts @@ -56,10 +56,10 @@ Signal: Signal number or \`(none)\` if no signal was received. let stdout = ''; let stderr = ''; child.stdout.on('data', (data) => { - stdout += data.toString(); + stdout += data?.toString(); }); child.stderr.on('data', (data) => { - stderr += data.toString(); + stderr += data?.toString(); }); let error: Error | null = null; child.on('error', (err: Error) => { |
