Allow configuring context lines shown in edit diffs
Resolved 💬 3 comments Opened Jul 8, 2025 by scorphus Closed Jan 4, 2026
Ideally, it would be possible to configure how much context around an edit. I'm sure you get the idea:
⏺ Update(foo.json)
╭────────────────────────────────────────────────────
│ Edit file
│ ╭──────────────────────────────────────────────────
│ │ foo.json
│ │
│ │ 329 "lorem",
│ │ 330 "ipsum",
│ │ 331 "dolor",
│ │ 332 - "sit"
│ │ 332 + "wow sit",
│ │ 333 + "very sit"
│ │ 334 ],
│ │ 335 "meh": false,
│ │ 336 "duh": "err"
│ ╰──────────────────────────────────────────────────
│ Do you want to make this edit to foo.json?
│ ❯ 1. Yes
│ 2. Yes, and don't ask again this session (shift+tab)
│ 3. No, and tell Claude what to do differently (esc)
│ 4. Not sure, show more context around this edit (tab)
│
╰────────────────────────────────────────────────────
Quite often, those 3 lines are not nearly enough. Ctrl+R does not help (as maybe expected? or is it only me?)
Having to check the change after the fact (git diff) happens after the fact and is not helpful either.
Apologies if I miss something such as an existing config option, a workaround, an existing issue, etc. "Context", "update", "diff, "edit", etc. only lead to that many unrelated issues.
Thanks!
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗