mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-28 08:52:45 +00:00
fix: wire control-ui steer and redirect (#54625) (thanks @fuller-stack-dev)
* feat(ui): wire /steer slash command to sessions.steer RPC * feat(ui): wire /steer (soft inject) and /redirect (hard restart) slash commands * test: use generic subagent names in steer/redirect tests * fix(ui): exempt steer/redirect from busy-queue and guard sessions.list failures * fix(ui): skip 'all' wildcard in steer/redirect target resolution * test: register slash-command-executor test in vitest config * fix(ui): restrict steer target to subagent keys and active sessions Address two review issues in resolveSteerTarget: P2: Replace resolveKillTargets with a dedicated resolveSteerSubagent that matches only on subagent key suffix or label, not agent id. This prevents false-positive targeting when the first word collides with an agent id (e.g. "/steer main refine plan"). P1: Filter out ended sessions (endedAt set) so stale subagents with reused names are not targeted. * fix(ui): use shared generateUUID for steer idempotency key * fix: restore telegram test to upstream state (merge artifact) * fix(ui): track redirected run so Abort works and concurrent sends are blocked * fix(ui): skip run tracking when /redirect targets a subagent session * fix(ui): block idle steer runs * fix(ui): dedupe steer slash command * fix(ui): show pending steer state * fix: wire control-ui steer and redirect (#54625) (thanks @fuller-stack-dev) * fix: tighten steer target resolution (#54625) (thanks @fuller-stack-dev) --------- Co-authored-by: Ayaan Zaidi <hi@obviy.us>
This commit is contained in:
@@ -88,6 +88,7 @@ export default defineConfig({
|
||||
"ui/src/ui/controllers/sessions.test.ts",
|
||||
"ui/src/ui/views/sessions.test.ts",
|
||||
"ui/src/ui/app-gateway.sessions.node.test.ts",
|
||||
"ui/src/ui/chat/slash-command-executor.node.test.ts",
|
||||
],
|
||||
setupFiles: ["test/setup.ts"],
|
||||
exclude: [
|
||||
|
||||
Reference in New Issue
Block a user