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

オープン
#1,331 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
ios, swift
領域
frontend, mobile

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Swift
スター
4k
フォーク
376
平均マージ
1分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

thebaselab/codeapp のほかの issue

thebaselab/codeapp の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。