Commit 0f4c368
committed
Fix child process leak: close ACP runtime after text generation
Wrap makeCursorAcpRuntime with Effect.acquireRelease so that
runtime.close is called as a finalizer when the Effect.scoped
region exits. Previously, the internal runtimeScope (which owns
the spawned child process) was never closed, leaking a process
on every call to generateCommitMessage, generatePrContent,
generateBranchName, or generateThreadTitle.1 parent 218cd8b commit 0f4c368
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| |||
0 commit comments