magnificent-hairdresser-38202
11/17/2025, 7:30 PMkimi-k2-thinking model (see code).
@adventurous-tiger-32098 since your code assumes linear history, I don’t think it would work for thinking models because token_ids includes thinking tokens while prompt_token_ids doesn’t. If you make OpenHands agent send back reasoning content in litellm::completions call, they would align, but then you might hit the problem @quick-honey-73477 mentioned: qwen3 template strips previous turns’ reasoning contents.
Solution: either use step-wise training in SkyRL, or use a non-thinking model.adventurous-tiger-32098
11/17/2025, 7:44 PMprompt_token_ids does seem to include the thinking tokens from past turns. I issue I found for Qwen3 models is that when they initialized to use tool calling, they will not generate non-thinking non-tool tokens, which is why I turned on thinking for them.magnificent-hairdresser-38202
11/17/2025, 7:48 PMInteresting, maybe I am reading openhands code wrong? It looks like it doesn’t include thinking contents except fordoes seem to include the thinking tokens from past turns.prompt_token_ids
kimi-k2-thinking model. Relevant code:
https://github.com/OpenHands/software-agent-sdk/blob/7046e760ddb4a70f59f779f9c308f[…]32645e9/openhands-sdk/openhands/sdk/llm/utils/model_features.py
https://github.com/OpenHands/software-agent-sdk/blob/7046e760ddb4a70f59f779f9c308f0b9232645e9/openhands-sdk/openhands/sdk/llm/message.py#L295-L297adventurous-tiger-32098
11/17/2025, 7:51 PMchilly-france-44439
11/17/2025, 7:52 PMSolution: either use step-wise training in SkyRL, or use a non-thinking model.irrc we discussed in today's meeting, maybe we can start with non-thinking model just for simplicity?
acceptable-holiday-21046
11/17/2025, 7:57 PMmagnificent-hairdresser-38202
11/17/2025, 8:07 PMthought attribute is just response content, not reasoning_content: https://github.com/OpenHands/software-agent-sdk/blob/7046e760ddb4a70f59f779f9c308f[…]5e9/openhands-sdk/openhands/sdk/event/llm_convertible/action.py
Your trajectory does show reasoning_content is null. Interestingly, I see some <think> blocks in the content, I wonder if there’s a templating/parsing issue on vllm/litellm sidebusy-branch-28834
11/18/2025, 12:27 AMreasoning-parser: qwen3 to the YAML config file if you are using vLLM. When I use agent-sdk with qwen3, the reasoning content is parsed into a separate block which are not included in agent's prompts for subsequent stepsmagnificent-hairdresser-38202
11/25/2025, 6:26 PM--reasoning-parser to start vLLM as documented in https://docs.vllm.ai/en/latest/features/reasoning_outputs/#quickstartmagnificent-hairdresser-38202
11/25/2025, 6:27 PMbusy-branch-28834
11/25/2025, 6:28 PM