Skip to content

feat(input): unify command registry and user input dispatch#171

Merged
duguwanglong merged 3 commits intomainfrom
feat/unify-command-input-dispatch
Apr 24, 2026
Merged

feat(input): unify command registry and user input dispatch#171
duguwanglong merged 3 commits intomainfrom
feat/unify-command-input-dispatch

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

@xiami762 xiami762 commented Apr 23, 2026

Summary

Unifies slash/command handling across WebUI, TUI, CLI, channel, and ACP by introducing flocks.input (UserInputEvent, dispatch_user_input, OutputSink) and extending CommandDef / CommandRegistry.

Follow-up commit

Removes redundant CLI /restart wiring, trims unused helpers, and expands channel / input dispatcher / workflows tests.

Testing

  • Extended tests/channel/test_channel.py, tests/server/test_input_dispatcher.py, tests/command/test_workflows_command.py

xiami762 added 2 commits April 23, 2026 15:47
Introduce flocks.input with UserInputEvent, ParsedCommand, OutputSink, and
dispatch_user_input as the shared path for WebUI, TUI, CLI, channel, and ACP.

Extend CommandDef/CommandRegistry metadata; refactor session routes and
inbound channel handling to delegate parsing and direct/LLM/session_control
routing to the dispatcher. Wire CLI session_runner, Rex prompt hint, misc/skill
routes, dev.sh, and frontend API/prompt behavior to the unified model.

Add tests/server/test_input_dispatcher.py and extend channel/bash tests.

Made-with: Cursor
Remove redundant CLI /restart wiring in favor of unified command handling.
Drop unused input output helpers; small session/channel dispatcher tweaks.
Add coverage for channel inbound, input dispatcher, and workflows command.

Made-with: Cursor
@xiami762 xiami762 requested a review from duguwanglong April 23, 2026 09:53
@duguwanglong duguwanglong merged commit 69b9390 into main Apr 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants