Skip to content

If model response with content without ToolCalls, conversation would be stopped. #1896

@shayue-wt

Description

@shayue-wt

# Finish conversation if LLM produced content (awaits user input)
# Continue if only reasoning without content (e.g., GPT-5 codex thinking)
if has_content:
logger.debug("LLM produced a message response - awaits user input")
state.execution_status = ConversationExecutionStatus.FINISHED
return

As descripted as title, it doesn't make sense to stop conversation even when the models don't return valid tools but has contents return, especially with openhands --headless -t mode.

When addressing some difficult requirements, model maybe not give some tools back during the middle steps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions