gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

fix(acp): run exit cleanup when stdin closes

Open codefromthecrypt opened this issue 2 months ago • 4 comments

Summary

ACP mode does not receive SIGTERM/SIGINT signals like interactive mode, the best signal is STDIN being closed. Run exit cleanup on that to flush telemetry.

Tested with: npm run test:integration:sandbox:none -- --testNamePattern="should flush telemetry"

Pre-Merge Checklist

  • [ ] Updated relevant documentation and README (if needed)
  • [x] Added/updated tests (if needed)
  • [ ] Noted breaking changes (if any)
  • [ ] Validated on required platforms/methods:
    • [ ] MacOS
      • [x] npm run
      • [ ] npx
      • [ ] Docker
      • [ ] Podman
      • [ ] Seatbelt
    • [ ] Windows
      • [ ] npm run
      • [ ] npx
      • [ ] Docker
    • [ ] Linux
      • [ ] npm run
      • [ ] npx
      • [ ] Docker

codefromthecrypt avatar Dec 11 '25 15:12 codefromthecrypt