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

Aperta
#1,331 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
ios, swift
Ambito
frontend, mobile

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Swift
Stelle
4k
Fork
376
Merge medio
1m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di thebaselab/codeapp

Tutte le issue di thebaselab/codeapp

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.