Wire up hook custom message renderers to TUI

- CustomMessageComponent accepts optional CustomMessageRenderer
- If hook provides a renderer, call it and use returned Component inside Box
- Falls back to default rendering (label + Markdown) if no renderer or null returned
- renderSessionContext gets renderer from hookRunner and passes to component
This commit is contained in:
Mario Zechner 2025-12-26 23:32:22 +01:00
parent 7b94ddf36b
commit ba11622d0c
2 changed files with 3 additions and 1 deletions

View file

@ -89,3 +89,4 @@ Location: `packages/coding-agent/CHANGELOG.md`, `packages/ai/CHANGELOG.md`, `pac
5. **Add new [Unreleased] section** at top of CHANGELOG.md for next cycle, commit it
**CTRICIAL**: NEVER use sed/cat to read a file or a range of a file. Always use the read tool (use offset + limit for ranged reads).