co-mono/packages/coding-agent/docs
Prateek Sunal 9b2aa4a683
Hooks can render custom status (#385)
* Add ctx.ui.setStatus(key, text) API for hooks to display status in footer

- Add setStatus to HookUIContext interface
- Implement in interactive mode (FooterComponent)
- Implement in RPC mode (fire-and-forget)
- Add no-op implementations for headless contexts
- Multiple statuses displayed on single line, sorted by key
- Supports ANSI styling (hooks handle their own colors)

* Remove setStatus from changelog for now

* Fix hook status API to follow TUI rules

- Sanitize status text: replace newlines, tabs, carriage returns with spaces
- Truncate combined status line to terminal width using truncateToWidth
- Update JSDoc to document sanitization and truncation behavior
- Remove unused createHookUIContext method
- Add missing setStatus to test mock

* Add setStatus to changelog

* Use dim ellipsis for hook status truncation for consistency with footer style

---------

Co-authored-by: Mario Zechner <badlogicgames@gmail.com>
2026-01-01 21:35:37 +01:00
..
compaction.md Update custom-compaction example to use serializeConversation 2025-12-31 13:24:23 +01:00
custom-tools.md Add setEditorText/getEditorText to hook UI context, improve custom() API 2026-01-01 00:04:56 +01:00
extension-loading.md Update extension-loading.md with install/remove/update commands 2025-12-26 20:51:15 +01:00
hooks.md Hooks can render custom status (#385) 2026-01-01 21:35:37 +01:00
rpc.md Update rpc.md to match actual implementation 2025-12-31 13:53:45 +01:00
sdk.md Fix sdk.md and rpc.md to match actual API 2025-12-31 13:50:01 +01:00
session-tree-plan.md Update session-tree-plan.md: tree selector details, theme.md done, add Before Release section 2025-12-30 22:42:25 +01:00
session.md Update hooks.md and session.md for consolidated HookContext 2025-12-31 02:40:31 +01:00
skills.md Add creation hints to docs and update system prompt 2025-12-31 13:16:44 +01:00
theme.md Add thinkingText theme token, fix streaming toggle bug 2026-01-01 00:25:04 +01:00
tree.md feat(coding-agent): implement /tree command for session tree navigation 2025-12-30 22:42:22 +01:00
tui.md Add creation hints to docs and update system prompt 2025-12-31 13:16:44 +01:00