apply_patch changes have no Undo
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with src/main/tools/apply_patch.ts and trace how write_file and edit_file return undo records, then follow the existing edit:undo handling. The proposal calls for backups and post-change hashes per changed file, with a single undo refused if any file has changed since; deleted and moved files also need records. Done means multi-file patches can be undone together while preserving that safety check.
索引モデルが issue の本文から書いたものです。
説明
Suggestion from the 2026-10-07 code review (not a bug).
write_file and edit_file return an undo record, so their cards offer Undo. apply_patch (src/main/tools/apply_patch.ts) returns none, so a multi-file patch can't be undone from the transcript, even though it is the tool the model is told to use for larger changes.
Proposal
Return one backup per changed file (before bytes plus the hash after the change) and let edit:undo restore them together. Refuse the undo when any file no longer matches, as single-file undo already does. Deleted and moved files need their own records.
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 2
- 平均マージ
- 5時間 28分
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PierrunoYT/patch のほかの issue
-
enhancement platform: windows priority: low severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PierrunoYT/patch#198 ·
メンテナーはふだん 1 日以内に返信
-
priority: medium security severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
PierrunoYT/patch#66 ·
メンテナーはふだん 1 日以内に返信
-
bug platform: macos priority: low severity: low tests
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
PierrunoYT/patch#218 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement priority: low security severity: low
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
PierrunoYT/patch#211 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement platform: windows priority: low security severity: low
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
PierrunoYT/patch#207 ·
メンテナーはふだん 1 日以内に返信
PierrunoYT/patch の issue をすべて見る
似ている issue
-
bug priority:low ready-for-dev
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/data-liberation-agent#685 ·
メンテナーはふだん 1 日以内に返信
-
Business
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
txn2/mcp-data-platform#2063 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 77/100
Crosstalk-Solutions/project-nomad#1427 ·
メンテナーはふだん 2 日以内に返信