Describe the bug
Recent updates to the Gemini CLI have changed the JSON structure of the chat sessions. The content field in the message object has changed from a simple String to an Array of Objects. This causes Splitrail's parser to fail with the following error:
Serde("invalid type: sequence, expected a string") at character 0
To Reproduce
- Use the latest version of Gemini CLI to generate some chat history.
- Run
splitrail.
- See the error in the terminal.
Expected behavior
Splitrail should handle both the legacy string format and the new multi-modal array format for the content field.
Detailed comparison
Environment:
- OS: macOS Sequoia 15.7.4
- Splitrail version: 3.3.5
- Gemini CLI version: 0.35.3
Describe the bug
Recent updates to the Gemini CLI have changed the JSON structure of the chat sessions. The
contentfield in the message object has changed from a simple String to an Array of Objects. This causes Splitrail's parser to fail with the following error:Serde("invalid type: sequence, expected a string") at character 0To Reproduce
splitrail.Expected behavior
Splitrail should handle both the legacy string format and the new multi-modal array format for the
contentfield.Detailed comparison
Previous format (Working):
Current format (Breaking):
Gemini Response:
Environment: