- Fixed tool result ordering in Cursor mode by buffering results and emitting them at the correct position within assistant messages.
- Modified assistant message handling to split messages around tool results for improved readability when using Cursor tools.
- Added CursorToolResultEntry interface to track buffered tool results with text position metadata.
- Added _cursorToolResultBuffer private field to store tool results during streaming for correct ordering.
- Added _getAssistantTextLength helper method to calculate total text length from assistant message content blocks.
- Added _emitCursorSplitAssistantMessage method to split assistant messages around tool results and emit them in correct order.