Chat pane keeps the previous server's session after switching servers

Đã đóng
#101 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Một pull request liên quan đã được merge.

  • #100 của @beppe2880 — đã merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, kotlin
Lĩnh vực
mobile

Hướng nghiên cứu

The issue names no files. Start by tracing the active-server change from Settings into the chat pane's session state holder, and compare how the selected session is retained versus reset when the server changes. PR #100 is already open against this issue, so review it before starting. Done when switching servers clears the chat pane back to "Select a session" and no transcript or errors from the old server remain.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
What happened?

With the session list and the chat side by side (unfolded foldable or tablet), switching the active server in Settings keeps the chat pane on the session opened on the previous server. The pane shows the old transcript and errors against the new server instead of going back to "Select a session".

Steps to reproduce
  1. Save two servers and open the app on a wide screen (side by side layout).
  2. Open a session on the first server so it shows in the chat pane.
  3. Settings → tap the second server to make it active, go back.
  4. The chat pane still shows the first server's session.
App version

0.9.0 (main after #98)

OpenCode server version

2.1.4

Device and Android version

7.6" foldable emulator, Android 16

Ngôn ngữ chính
Kotlin
Star
1
Fork
0
Merge trung bình
12 giờ 4 phút
Pull request đã merge (30 ngày)
59

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của beppe2880/opencode-mobile

Tất cả issue của beppe2880/opencode-mobile

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.