Mohamed Boudra d883436395 fix: replace undefined with null in ACP MCP tool responses
Replace all undefined values with null in agent MCP tool responses to prevent JSON serialization issues that break the MCP client.

Changes:
- Update AgentInfo interface to use `| null` instead of optional `?` syntax
- Convert undefined to null in listAgents(), getCurrentMode(), getAvailableModes()
- Update all Zod schemas from .optional() to .nullable()
- Fix tool responses in create_coding_agent and set_agent_mode

This ensures all MCP tool responses properly serialize optional fields as null instead of undefined, preventing client-side errors.

🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2025-10-21 16:34:11 +02:00
Description
Languages
TypeScript 98.1%
JavaScript 1.3%
Shell 0.1%
Swift 0.1%