apply_patch rejects a patch with several hunks for the same file
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 62/100
調査の方向性
Start by locating the apply_patch implementation and its patch validation path, then reproduce the reported failure with two hunks targeting one file. Check whether the parser rejects repeated file operations and whether the tool description documents the supported patch shape. Done when the tool accepts the patch or its description clearly guides the model to a valid patch, with a regression check for the reported case.
索引モデルが issue の本文から書いたものです。
説明
Release version
v0.3.0
What happened?
The agent's apply_patch tool call is rejected when one patch contains more than one hunk for the same file. The error is:
apply_patch verification failed: invalid patch: multiple operations target <file>
The agent recovers by retrying with separate patches, but each failure costs a turn and tokens. I saw this 3 times across two sessions, each time while the agent edited a single Python file.
Expected: the tool accepts several hunks for one file in one patch. If that is not supported, the tool description should tell the model to group all hunks for a file under one file operation, so the model does not produce the rejected shape.
Steps to reproduce
- Start
genie execin a project with a Python file of a few hundred lines. - Ask for two separate edits in different parts of that file in one request.
- If the model emits one patch with two operations on the same file, the call fails with the error above.
Environment
macOS (Apple silicon), Genie Code CLI installed with install.sh, Unity Gateway model provider.
- 主要言語
- 言語のデータがありません
- スター
- 13
- フォーク
- 1
- 平均マージ
- 35分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
databricks/genie-code-cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
databricks/genie-code-cli の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
FinanceFlash/unvibecode#692 ·
メンテナーはふだん 1 日以内に返信
-
found in release: 3.50 has reproducible steps team-tool tool
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
flutter/flutter#196430 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
soup sweep --param quantization=4bit,none parses none as null, so that arm always fails config validation and the sweep exits 0 on the 4bit arm alone; --sweep-config trains both対応中かも @abdumutalipabay0 が今日担当しました。 オープンbug difficulty:3
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MakazhanAlpamys/Soup#2758 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
[BUG] HTTP lifecycle dispatch treats a NO_PROXY-only environment as corporate egress and skips the resolve-and-pinned session対応中かも @bodapatisaikrishna が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信