fix(acp): run exit cleanup when stdin closes (#14953)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Allen Hutchison <adh@google.com>
Co-authored-by: Allen Hutchison <allen@hutchison.org>
This commit is contained in:
Adrian Cole
2026-01-15 06:02:44 +08:00
committed by GitHub
parent b14cf1dc30
commit 7e6817da5b
6 changed files with 133 additions and 9 deletions
+3 -3
View File
@@ -114,10 +114,10 @@ export async function createContentGenerator(
): Promise<ContentGenerator> {
const generator = await (async () => {
if (gcConfig.fakeResponses) {
return new LoggingContentGenerator(
await FakeContentGenerator.fromFile(gcConfig.fakeResponses),
gcConfig,
const fakeGenerator = await FakeContentGenerator.fromFile(
gcConfig.fakeResponses,
);
return new LoggingContentGenerator(fakeGenerator, gcConfig);
}
const version = await getVersion();
const model = resolveModel(