mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 14:01:15 +00:00
When hooks are loaded via jiti, they get a separate module instance from the main app. This means the global 'theme' variable in the hook's module is never initialized. Adding an optional theme parameter allows hooks to pass the theme from ctx.ui.custom() callback. Usage in hooks: getSettingsListTheme(theme) // theme from ctx.ui.custom callback |
||
|---|---|---|
| .. | ||
| agent | ||
| ai | ||
| coding-agent | ||
| mom | ||
| pods | ||
| tui | ||
| web-ui | ||