native_tool_call_adapter icon indicating copy to clipboard operation
native_tool_call_adapter copied to clipboard

Architect Mode in RooCode fails

Open elysoto opened this issue 1 year ago • 2 comments

RooCode v3.28.14 using GPT-OSS-20b

While in Architect Mode, a tool call query such as "Tell me about the project." fails with the following: Similarly other modes fail like this, such as Debug

API Request Failed 1 validation error for Message content.0 Input should be a valid dictionary or instance of Content [type=model_type, input_value=[{'text': "[read_file for...ails>', 'type': 'text'}], input_type=list] For further information visit https://errors.pydantic.dev/2.12/v/model_type None

elysoto avatar Oct 21 '25 16:10 elysoto

I was able to fix this by adding the following at line #62 in app.py

    # Normalize all message content to string format for target API compatibility
    for message in request["messages"]:
        if "content" in message and isinstance(message["content"], list):
            # Convert list format to string
            message["content"] = "".join(
                item.get("text", "") for item in message["content"]
                if isinstance(item, dict) and "text" in item
            )

elysoto avatar Oct 21 '25 21:10 elysoto

I had the same issue and this fix worked for me. Thanks!

natiels avatar Oct 24 '25 19:10 natiels