Change summary
internal/ui/dialog/commands.go | 2 +-
internal/ui/model/ui.go | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
Detailed changes
@@ -464,7 +464,7 @@ func (c *Commands) defaultCommands() []*CommandItem {
model := cfgPrime.GetModelByType(agentCfg.Model)
if model != nil && model.SupportsImages {
commands = append(commands, NewCommandItem(c.com.Styles, "file_picker", "Open File Picker", "ctrl+f", ActionOpenDialog{
- // TODO: Pass in the file picker dialog id
+ DialogID: FilePickerID,
}))
}
}
@@ -2949,6 +2949,10 @@ func (m *UI) openDialog(id string) tea.Cmd {
if cmd := m.openReasoningDialog(); cmd != nil {
cmds = append(cmds, cmd)
}
+ case dialog.FilePickerID:
+ if cmd := m.openFilesDialog(); cmd != nil {
+ cmds = append(cmds, cmd)
+ }
case dialog.QuitID:
if cmd := m.openQuitDialog(); cmd != nil {
cmds = append(cmds, cmd)