Switching user creates irrecoverable error
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
Describe the bug
If I accidentally do a few turns of a conversation with the wrong user account and try to switch it, I get unending Execution failed: 400 input item ID does not belong to this connection (Request ID: 00000-782d3778-5111-4f61-b546-ce63a4f73223) errors. I try restarting the session and it won't work. I think if I resume a session with wrong user and notice, I can rewind the conversation to before the "poisoned" message and it will stop giving the error. My guess is the issue stems from how messages are cached or something and it is user specific? Unfortunately, you make the user setup a huge pain and it's always using last user so I'm constantly running into this. You need to make it easier to control users (e.g. let me set default user or resolve user before blazing a new trail ahead or allow command line to specify user) and to recover if I accidentally use the wrong one for a bit.
Affected version
1.0.84-3
Steps to reproduce the behavior
- Start a conversation as one user (e.g. personal) and send a message
- Switch to another user (e.g. enterprise) and send another message
This consistently causes issues for me.
Expected behavior
- I should be given more control over how user is selected for a session especially through
/configand--useroptions - If I do use incorrect user for a bit, I should be able to switch the user and keeps working without any error. I'm ok if you have to do everything uncached whatever, just let me continue the conversation!
Additional context
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện việc chuyển đổi tài khoản qua hai bước bằng phiên bản bị ảnh hưởng, sau đó kiểm tra hành vi của phiên quanh /config và tùy chọn --user. Công việc được xem là hoàn tất khi việc chuyển đổi người dùng không còn tạo ra các lỗi ID input-item lặp lại và cuộc hội thoại có thể tiếp tục hoặc được khôi phục mà không cần khởi động lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100