checkpoint: fix regression when using gemini cli outside of manual slop.

This commit is contained in:
2026-02-25 19:01:42 -05:00
parent fcb83e620c
commit f728274764
2 changed files with 24 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ import subprocess
import json
import sys
import time
import os
class GeminiCliAdapter:
def __init__(self, binary_path="gemini"):
@@ -24,13 +25,17 @@ class GeminiCliAdapter:
accumulated_text = ""
env = os.environ.copy()
env["GEMINI_CLI_HOOK_CONTEXT"] = "manual_slop"
process = subprocess.Popen(
command,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
shell=True
shell=True,
env=env
)
try: