feat: support for agent loop job cancelation (#2837)

This commit is contained in:
Andy Li
2025-07-02 14:31:16 -07:00
committed by GitHub
parent e9f7601892
commit f9bb757a98
17 changed files with 940 additions and 281 deletions

View File

@@ -81,7 +81,7 @@ class CLIInterface(AgentInterface):
@staticmethod
def internal_monologue(msg: str, msg_obj: Optional[Message] = None, chunk_index: Optional[int] = None):
# ANSI escape code for italic is '\x1B[3m'
fstr = f"\x1B[3m{Fore.LIGHTBLACK_EX}{INNER_THOUGHTS_CLI_SYMBOL} {{msg}}{Style.RESET_ALL}"
fstr = f"\x1b[3m{Fore.LIGHTBLACK_EX}{INNER_THOUGHTS_CLI_SYMBOL} {{msg}}{Style.RESET_ALL}"
if STRIP_UI:
fstr = "{msg}"
print(fstr.format(msg=msg))