llm icon indicating copy to clipboard operation
llm copied to clipboard

If extract_last is set, start with the last row

Open yn-academia opened this issue 10 months ago • 1 comments

llm logs -r

will return back the last response, but will load up in memory the last three rows.

llm logs -r --xl

will load up in memory the last three responses, and will return back the last command block of the first row that has command blocks.

I found this confusing in my workflow. I would type in llm logs -r, see the command that i would want, then type in llm logs -r --xl and get a different command extracted. This oughta fix that.

An alternative approach would be to treat -r as -n 1 since it effectively throws away all the rows except the last one.

yn-academia avatar Mar 08 '25 08:03 yn-academia

An alternative approach would be to treat -r as -n 1 since it effectively throws away all the rows except the last one.

Yeah, that's a great idea - I prefer that fix.

simonw avatar Mar 22 '25 23:03 simonw