fix(command): add missing command handler wiring and lint fixes

Wire SetCommandHandler into ChannelInboundProcessor so slash commands
are intercepted before reaching the LLM. Also apply lint fixes across
command package (strconv.Itoa, comment formatting, unused code removal)
and remove obsolete tool-call-browser.vue component.
This commit is contained in:
Acbox
2026-03-11 19:05:55 +08:00
parent ab82a72639
commit bb26d18757
10 changed files with 64 additions and 52 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ type ParsedCommand struct {
}
// Parse parses a raw command string into its components.
// Expected format: /resource [action] [args...]
// Expected format: /resource [action] [args...].
func Parse(text string) (ParsedCommand, error) {
text = strings.TrimSpace(text)
if !strings.HasPrefix(text, "/") {