We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d91679 commit 6eaed8aCopy full SHA for 6eaed8a
plain/plain/cli/agent.py
@@ -1,3 +1,4 @@
1
+import os
2
import shlex
3
import subprocess
4
@@ -20,6 +21,11 @@ def prompt_agent(
20
21
True if the agent command succeeded (or no agent command was provided),
22
False if the agent command failed.
23
"""
24
+ # Check if running inside an agent and just print the prompt if so
25
+ if os.environ.get("CLAUDECODE") or os.environ.get("CODEX_SANDBOX"):
26
+ click.echo(prompt)
27
+ return True
28
+
29
if print_only or not agent_command:
30
click.echo(prompt)
31
if not print_only:
0 commit comments