[Request] Auto-refresh editor when files change on disk (with conflict prompt for unsaved local edits)
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
- 25/100
Hướng nghiên cứu
The issue names no files or entry points. Start by finding where the app opens a file for the editor and how it reads files over SSH/SFTP, then check whether any file-change notification already exists. Done means an external change to an open file with no unsaved edits refreshes the tab, and a conflicting unsaved buffer shows a prompt. The conflict-prompt design is not settled, so confirm the expected options with maintainers before building it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Use case / Example:
- Open a project on an SSH/SFTP-mounted filesystem.
- Edit a file externally — for example via a terminal session, or an AI coding agent like Claude Code / Claude Remote making changes directly on disk.
- Switch back to Code App: the editor still shows the old, stale content. Changes made outside the app aren’t picked up automatically.
Proposed behavior:
- When a file is modified on disk (detected via filesystem watcher / SFTP polling), the open editor tab should automatically refresh to reflect the new content — as long as there are no unsaved local changes.
- If the local buffer has unsaved changes that conflict with the on-disk version, prompt the user with options such as:
- Keep local changes (overwrite disk)
- Load disk version (discard local changes)
- View diff / merge manually
Why this matters:
This is increasingly common with AI coding assistants and remote dev workflows that edit files directly on disk outside the editor’s control. Without auto-refresh, users risk working on stale files or unknowingly overwriting external changes when they save.
- Ngôn ngữ chính
- Swift
- Star
- 4k
- Fork
- 376
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 1
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
- Đọ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.
Issue khác của thebaselab/codeapp
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
thebaselab/codeapp#1356 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
thebaselab/codeapp#1355 · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
thebaselab/codeapp#1353 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
thebaselab/codeapp#1350 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
thebaselab/codeapp#1349 ·
Tất cả issue của thebaselab/codeapp
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openwatersio/slackwater-ios#976 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
openwatersio/slackwater#591 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
compiler-explorer/compiler-explorer#9738 ·
Maintainer thường phản hồi trong vòng 2 ngày