Mohamed Boudra 31312f5396 Fix Codex MCP typecheck errors and verify thread/item mapping
WHAT:
- Fixed type narrowing for input.patch in closure (codex-mcp-agent.ts:2068)
- Removed unused fileChangeRunning variable (codex-mcp-agent.ts:2383)

RESULT:
- Server typecheck passes
- Thread/item mapping test passes when Codex API is available
- Current test failures are due to API rate limit (429 usage_limit_reached)

EVIDENCE:
- Test passed on first run: "maps thread/item events for file changes,
  MCP tools, web search, and todo lists" (28461ms)
- Debug logging confirmed events flow correctly through handleMcpEvent

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 13:41:36 +07:00
2025-12-25 11:31:56 +07:00
Description
Languages
TypeScript 98.1%
JavaScript 1.3%
Shell 0.1%
Swift 0.1%