mirror of https://github.com/aliasrobotics/cai.git
Fix virtualization CAI_STREAM=True errors with tool outputs
This commit is contained in:
parent
ee1fccbc89
commit
80c5b5e1fe
|
|
@ -744,7 +744,8 @@ async def _run_local_async(command, stdout=False, timeout=100, stream=False, cal
|
|||
# The SDK will handle ALL display when CAI_STREAM=false
|
||||
streaming_enabled = os.getenv("CAI_STREAM", "false").lower() == "true"
|
||||
|
||||
# Only display if we're in streaming mode AND parallel mode
|
||||
# Only display panels if we're in streaming mode or parallel mode
|
||||
# In streaming mode, the Live panels are handled by the streaming system
|
||||
if streaming_enabled and is_parallel:
|
||||
# Display the completed tool output
|
||||
from cai.util import cli_print_tool_output
|
||||
|
|
|
|||
|
|
@ -2825,9 +2825,10 @@ def cli_print_tool_output(
|
|||
# Check if we're in a container environment
|
||||
is_container = bool(os.getenv("CAI_ACTIVE_CONTAINER", ""))
|
||||
|
||||
# In parallel mode OR container mode, use static panels
|
||||
if is_parallel or is_container:
|
||||
# In parallel mode or container mode, use static panels to avoid Live context conflicts
|
||||
# In parallel mode, use static panels
|
||||
# For container mode, use Live panels to allow real-time updates
|
||||
if is_parallel:
|
||||
# In parallel mode, use static panels to avoid Live context conflicts
|
||||
# Check if we already printed this panel (shouldn't happen but be safe)
|
||||
if call_id not in _LIVE_STREAMING_PANELS:
|
||||
# For container mode with streaming, if this is the initial call but we already
|
||||
|
|
|
|||
Loading…
Reference in New Issue