mission control for agent skills
Go agent-skillsagent-toolsai-agentsai-toolsai-workflowclaude-codeclicoding-agentscommand-line-tooldeveloper-toolsgoopencodeproductivity-toolsskill-discoveryskill-managementskillsterminal-appterminal-uituiworkflow-automation
fix: preserve full registry preview scroll
Alvin Unreal1841d718d47d
diff --git a/internal/tui/update_test.go b/internal/tui/update_test.goindex 919d05f..0f38ca4 100644--- a/internal/tui/update_test.go+++ b/internal/tui/update_test.go@@ -753,6 +753,15 @@ func TestTUIRegistryPreviewScroll(t *testing.T) {if !strings.Contains(viewScrolled, "line 06") && !strings.Contains(viewScrolled, "line 07") {t.Fatalf("expected scrolled preview content, got:\n%s", viewScrolled)}++ for range 20 {+ modelTmp, _ = m.Update(tea.KeyMsg{Type: tea.KeyCtrlD})+ m = modelTmp.(appModel)+ }+ viewScrolledDeep := m.View()+ if !strings.Contains(viewScrolledDeep, "line 40") {+ t.Fatalf("expected full preview to remain available after scrolling, got:\n%s", viewScrolledDeep)+ }}func TestTUIRegistryResultsScrollWithSelection(t *testing.T) {diff --git a/internal/tui/view.go b/internal/tui/view.goindex 49ab5bb..279dc65 100644--- a/internal/tui/view.go+++ b/internal/tui/view.go@@ -2137,7 +2137,10 @@ func (m appModel) registryModalOverlay(layout appLayout) string {rightContentLines = appendRegistryPreviewLines(rightContentLines, "Description:", matchedDesc, rightWidth, 5)}if matchedPreview != "" {- rightContentLines = appendRegistryPreviewLines(rightContentLines, "Preview:", matchedPreview, rightWidth, 12)+ // The right pane is already scrollable. Do not pre-truncate the+ // SKILL.md preview here, otherwise ctrl-u/d can only scroll through+ // the first few rendered lines while the rest of the pane stays empty.+ rightContentLines = appendRegistryPreviewLines(rightContentLines, "Preview:", matchedPreview, rightWidth, 0)}if previewLoading {