8c89b5c38d
- Extracted tool result emission logic into dedicated emitToolResult function to eliminate duplication. - Consolidated tool execution result handling to emit results immediately after execution rather than deferring to post-processing loop. - Simplified post-execution loop by delegating result emission to emitToolResult and removing redundant message construction.