Multiple eca__edit_file calls to the same in parallel can be harmful
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by tracing how the edit system handles multiple eca__edit_file calls targeting the same file in one message; the issue does not name implementation files or tests. Reproduce the reported corruption, then determine whether edits use a stale snapshot or interleave. Done means same-file edits are handled safely or rejected before corrupting the file.
索引モデルが issue の本文から書いたものです。
説明
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Please avoid AI slops, be concise, and focus on what matters for this issue.
Describe the bug
This is how agent described the problem when it encountered it:
after two eca__edit_file calls to the same file sent in one message, the file ends up
mangled (2026-09-13: run.sh got a duplicated tail with both the new and old `exec` line, plus a
partial duplicated line mid-file). Intermittent: batching sometimes works.
Cause: the second edit is applied against a stale snapshot, or the pair interleaves.
Fix: send same-file edits one per message; or prefer a single eca__write_file with the full
content, or one edit whose original spans all changes (net paren/line change of zero avoids the
editor's bracket auto-fixer reverting a change). Different files in one message are fine.
We should make the edit system smarter (or at least fail to avoid this).
- 主要言語
- Clojure
- スター
- 1k
- フォーク
- 82
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 16
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
editor-code-assistant/eca のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
editor-code-assistant/eca#661 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
editor-code-assistant/eca#657 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
editor-code-assistant/eca#652 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
editor-code-assistant/eca#648 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
editor-code-assistant/eca#644 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
editor-code-assistant/eca の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nrepl/piggieback#163 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
clojure-emacs/orchard#436 ·
-
Priority:P3
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
metabase/metabase#85025 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Page titles with `$$`, `$&`, `` $` `` or `$'` change when block refs are resolved対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
measured/expr fails for array-typed locals: tag from getCanonicalName ("long[]") cannot be resolvedオープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
hugoduncan/criterium#156 ·