mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-07 07:22:21 +02:00
keep artifact turns alive after shell evidence
This commit is contained in:
@@ -5592,9 +5592,12 @@ async def stream_preview(*, endpoint_url, model, messages, headers, turn_contrac
|
||||
shell_terminal_response = shell_listing_terminal_response(
|
||||
output, user_text=latest_user,
|
||||
) or shell_output_terminal_response(output)
|
||||
if shell_terminal_response:
|
||||
artifact_pending = bool(
|
||||
required_artifacts and not successful_artifact_write
|
||||
)
|
||||
if shell_terminal_response and not artifact_pending:
|
||||
structured_terminal_response = shell_terminal_response
|
||||
else:
|
||||
elif not artifact_pending:
|
||||
# Successful mutating shell commands commonly have
|
||||
# no stdout. The executor's ``(no output)`` sentinel
|
||||
# is evidence, not a useful user-facing answer. Give
|
||||
|
||||
Reference in New Issue
Block a user