checkpoint: fix regression when using gemini cli outside of manual slop.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user