[Request] Auto-refresh editor when files change on disk (with conflict prompt for unsaved local edits)
还没有人认领这个 Issue。
评估
调研方向
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:
- 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.
- 主要语言
- Swift
- 星标
- 4k
- 派生
- 376
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
thebaselab/codeapp 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
thebaselab/codeapp#1356 ·
-
难度 3/5 1-2 天 新手友好度 52/100
thebaselab/codeapp#1355 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
thebaselab/codeapp#1353 ·
-
难度 4/5 3-5 天 新手友好度 48/100
thebaselab/codeapp#1350 ·
-
难度 4/5 3-5 天 新手友好度 42/100
thebaselab/codeapp#1349 ·
查看 thebaselab/codeapp 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
openwatersio/slackwater-ios#976 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
openwatersio/slackwater#591 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
compiler-explorer/compiler-explorer#9738 ·
维护者通常 2 天内回复