WIP motion 2

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 14:56:58 -04:00
1 parent ec26a33995
commit eb6e0752d6
47 files changed
+1067 -20

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
package mujica
import (
"fmt"
"log/slog"
"github.com/egoist/mygo/ui"
@@ -66,7 +67,7 @@ func ToolRegistryPanel(c *ui.Context, s *ListState[string], tools []AgentTool, o
ui.Text(c, t.Description).FontSize(FontSize(c, theme.CaptionSize)).TextColor(k.TextMuted).SingleLine()
})
on := t.Enabled
Switch(c, &on, "", SwitchOptions{Description: t.Name}).Label(t.Name)
Switch(c, &on, "", SwitchOptions{}).Label(fmt.Sprintf(msg(c, "tool_registry_panel.enable"), t.Name))
if on != t.Enabled && !row.IsDisabled() {
res.toggled, res.on = t.Name, on
slog.Debug("mujica: tool registry toggle", "tool", t.Name, "on", on)