kimi-code/apps
qer 318c964f07
refactor(web): extract slash-command menu into a composable (#1026)
Move the slash menu's open/items/active state, the filter logic, and item
selection out of Composer into useSlashMenu. The composable takes the text
ref, textarea ref, autosize, a skills getter, and the emit/history-push
callbacks as deps.

The composer keeps the keydown orchestration (arrow keys, Enter/Tab, Escape)
because it also juggles the mention menu and history recall; it consumes the
returned open/items/active refs directly and calls update/select. The
destructured refs are aliased back to the original names so the rest of the
component is unchanged.

Composer.vue: 2058 -> 2035 lines. Adds unit tests for useSlashMenu. No
behavior change.
2026-06-23 18:17:48 +08:00
..
kimi-code feat(tui): add Alt+S to switch model for current session only (#1020) 2026-06-23 17:14:43 +08:00
kimi-web refactor(web): extract slash-command menu into a composable (#1026) 2026-06-23 18:17:48 +08:00
vis feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00