[Request] Auto-refresh editor when files change on disk (with conflict prompt for unsaved local edits)

Đang mở
#1,331 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
ios, swift
Lĩnh vực
frontend, mobile

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:

  1. Open a project on an SSH/SFTP-mounted filesystem.
  2. 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.
  3. 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

  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 thebaselab/codeapp

Tất cả issue của thebaselab/codeapp

Issue tương tự

Thêm issue về Swift

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.