If extract_last is set, start with the last row
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.
An alternative approach would be to treat
-ras-n 1since it effectively throws away all the rows except the last one.
Yeah, that's a great idea - I prefer that fix.