Draft persistence: unsubmitted prompts are lost on focus change

Đang mở
#1,087 1 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
cli

Hướng nghiên cứu

The issue identifies the composer input and ~/.commandcode/history.jsonl, but gives no source files or tests. Start by locating where composer input is cleared on focus changes and how sessions are resumed. Done means unsubmitted text can be restored after a focus change or session resume, as described in the issue.

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

Mô tả

Feature Description

Typing a long, situation-based prompt (40+ lines) in the composer is easy to
lose: an accidental click/refocus wiped the entire input with no way back.

Unsubmitted composer text lives only in memory. Confirmed there is no draft
file in ~/.commandcode and ~/.commandcode/history.jsonl only gains an entry on
submit, so there is nothing to recover from.

Request: persist the composer draft (e.g. debounced autosave to a per-session
draft file), and restore it when the input is re-focused or the session is
resumed. Even a "restore last discarded input" binding would be enough.

Workaround I'm using now: Ctrl+G to compose in $EDITOR.

Use Case

No response

Additional Context

No response

How important is this to you?

None

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4.2k
Fork
377
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
6

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 CommandCodeAI/command-code

Tất cả issue của CommandCodeAI/command-code

Issue tương tự

Thêm issue về CLI

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.