1 parent 1621cfa commit ac58e79Copy full SHA for ac58e79
1 file changed
lua/opencode/ui/ui.lua
@@ -200,14 +200,12 @@ function M.select_session(sessions, cb)
200
vim.ui.select(sessions, {
201
prompt = '',
202
format_item = function(session)
203
- local parts = { { session.id } }
+ local parts = {}
204
205
- if session.description then
206
- table.insert(parts, session.description)
207
- end
208
-
209
- if session.message_count then
210
- table.insert(parts, session.message_count .. ' messages')
+ if session.title then
+ table.insert(parts, session.title)
+ else
+ table.insert(parts, session.id)
211
end
212
213
local modified = util.format_time(session.modified)
0 commit comments