Skip to content

mission control for agent skills

Discovery polish (3/3): enter acts in modal, drop dead status const

Alvin Unreal2a8ee02ab871
diff --git a/internal/tui/tui.go b/internal/tui/tui.go
index 7fa6ca0..f4f23e1 100644
--- a/internal/tui/tui.go
+++ b/internal/tui/tui.go
@@ -29,10 +29,9 @@ const (
type DiscoveryStatus string
const (
- DiscoveryNotChecked DiscoveryStatus = "not_checked"
- DiscoveryLoading DiscoveryStatus = "loading"
- DiscoveryReady DiscoveryStatus = "ready"
- DiscoveryFailed DiscoveryStatus = "failed"
+ DiscoveryLoading DiscoveryStatus = "loading"
+ DiscoveryReady DiscoveryStatus = "ready"
+ DiscoveryFailed DiscoveryStatus = "failed"
)
type DiscoveredSkill struct {
diff --git a/internal/tui/update.go b/internal/tui/update.go
index 8510c60..3f5b2c6 100644
--- a/internal/tui/update.go
+++ b/internal/tui/update.go
@@ -116,7 +116,9 @@ func (m appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m.startSkillActionByID(child.skill, "remove")
}
}
- case "c":
+ case "c", "enter":
+ // Act on the selected child: open the action picker (install for
+ // an available skill, open/update/remove for an installed one).
m.detailModal = false
m.commands = true
m.action = 0
diff --git a/internal/tui/view.go b/internal/tui/view.go
index beeb4a5..f03efc8 100644
--- a/internal/tui/view.go
+++ b/internal/tui/view.go
@@ -1165,7 +1165,7 @@ func (m appModel) detailModalTitle() string {
func (m appModel) detailModalHelpLine() string {
if m.modalSource != "" {
- return "esc/q close · ↑/↓ select skill · d scan · c actions · o/u/x installed actions"
+ return "esc/q close · ↑/↓ select · enter/c actions · d scan · o/u/x installed"
}
return "esc/q close · o open in editor · c command picker · ↑/↓ scroll"
}