(ctx context.Context)
| 655 | } |
| 656 | |
| 657 | func (m *model) refreshCommands(ctx context.Context) { |
| 658 | cmds := builtinCommands() |
| 659 | for name, c := range m.app.CurrentAgentCommands(ctx) { |
| 660 | if m.disabledCommands[name] { |
| 661 | continue |
| 662 | } |
| 663 | cmds = append(cmds, command{name: name, desc: c.DisplayText(), kind: cmdAgent}) |
| 664 | } |
| 665 | for _, sk := range m.app.CurrentAgentSkills() { |
| 666 | cmds = append(cmds, command{name: sk.Name, desc: sk.Description, kind: cmdAgent}) |
| 667 | } |
| 668 | m.ac.setCommands(cmds) |
| 669 | } |
| 670 | |
| 671 | func (m *model) handleConfirmKey(k key) { |
| 672 | if k.typ == keyEsc { |
no test coverage detected