Skip to content

Conversation

@patvice
Copy link
Owner

@patvice patvice commented Nov 25, 2025

Summary

  • propagate stop_reason from Ruby LLM messages into sampling_create_message, mapping snake_case values to the camelCase MCP expects and defaulting to endTurn when absent.
  • add thorough coverage in messages_spec for the new stop-reason behavior, including schema validation.
  • introduce ClientSyncHelpers.wait_for_tool and use it in the cancellation integration specs so they wait for the tool to be announced before executing, eliminating the race.

@patvice patvice merged commit bb50f9b into main Nov 25, 2025
4 checks passed
@patvice patvice deleted the sample-correct-stop-response branch November 25, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants