We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b20078 commit 2b8b10dCopy full SHA for 2b8b10d
src/gptcmd/cli.py
@@ -452,10 +452,7 @@ def do_retry(self, arg):
452
Resend up through the last non-assistant, non-sticky message to GPT.
453
This command takes no arguments.
454
"""
455
- if not self._current_thread or (
456
- len(self._current_thread) == 1
457
- and self._current_thread[0].role == "assistant"
458
- ):
+ if not any(m.role != "assistant" for m in self._current_thread):
459
print("Nothing to retry!")
460
return
461
if self._current_thread != self._detached:
0 commit comments