Skip to content

Fix --continue picking most recently created conversation instead of most recently used#1519

Open
ikatyal2110 wants to merge 1 commit into
simonw:mainfrom
ikatyal2110:fix-continue-uses-last-used-conversation
Open

Fix --continue picking most recently created conversation instead of most recently used#1519
ikatyal2110 wants to merge 1 commit into
simonw:mainfrom
ikatyal2110:fix-continue-uses-last-used-conversation

Conversation

@ikatyal2110

Copy link
Copy Markdown

When you continue an older conversation with llm -c --conversation <id> and then run llm --continue without an id, it should resume that same conversation. Instead it was picking the most recently created conversation (sorted by conversations.id), not the most recently used one.

The fix queries responses ordered by id desc to find the conversation with the most recent response, matching what llm logs --current already does.

Fixes #1140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

llm --continue does not use the last logged conversation id

2 participants