Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename to existing named session causes critical error - bug #56

Open
nslieske opened this issue Dec 10, 2023 · 0 comments
Open

rename to existing named session causes critical error - bug #56

nslieske opened this issue Dec 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@nslieske
Copy link

User: /rename devopsx
Renaming conversation (enter empty name to auto-generate)
Traceback (most recent call last):
File "/home/noah/.local/bin/gptme", line 8, in
sys.exit(main())
^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/noah/.local/lib/python3.11/site-packages/gptme/cli.py", line 168, in main
chat(
File "/home/noah/.local/lib/python3.11/site-packages/gptme/cli.py", line 242, in chat
if msg.role == "user" and execute_cmd(msg, log):
^^^^^^^^^^^^^^^^^^^^^
File "/home/noah/.local/lib/python3.11/site-packages/gptme/commands.py", line 71, in execute_cmd
for resp in handle_cmd(msg.content, log, no_confirm=True):
File "/home/noah/.local/lib/python3.11/site-packages/gptme/commands.py", line 99, in handle_cmd
rename(log, new_name, ask=not no_confirm)
File "/home/noah/.local/lib/python3.11/site-packages/gptme/commands.py", line 203, in rename
log.rename(new_name, keep_date=False)
File "/home/noah/.local/lib/python3.11/site-packages/gptme/logmanager.py", line 293, in rename
raise FileExistsError(f"Conversation {name} already exists.")
FileExistsError: Conversation devopsx already exists.

@ErikBjare ErikBjare added the bug Something isn't working label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants