docs: capture CC edit-diff collapse; rename row to "Collapsed Write lines" (CLFY-23) #56

Merged
owlburtoe merged 1 commit from clfy-23-collapse-write-scope into master 2026-07-17 14:56:00 -04:00
Owner

Capture

CLFY-23 asked whether to make edit/Update rows honour "Collapsed diff lines," and flagged that Option 1 needed a capture of Claude Code's actual collapsed Update height first (capture-don't-guess). I drove Claude Code 2.1.212 in tmux and forced single Edit calls rewriting 50- and 130-line files.

Result: Claude Code does not collapse edit diffs at all — it renders them in full. No … +N lines, no ctrl+r to expand, no pager, at either size. (The earlier "History 2/2" was Claude Code's input-history indicator from my own Up-arrow presses, not a diff pager.) Full write-up: docs/plans/2026-07-17-cc-edit-diff-collapse.md.

So there is no CC "collapsed Update height" to match — the premise behind Option 1's blocker dissolves.

Decision — "which is most like CC? do that one"

Since CC shows diffs in full, the option that shows more of the diff is closer to CC. That's claudify's existing larger edit budget (32) — not collapsing edits down to the setting's default of 10, which would move Update rows away from CC. So:

  • Edit rendering is unchanged. Update rows keep their larger budget (for a typical ≤32-line edit that's the whole diff, matching CC).
  • The label is the fix: the generic Diffs row "Collapsed diff lines""Collapsed Write lines", so its name stops implying it governs Update rows. The description was already Write-scoped (CLFY-22); this aligns the label. The diffCollapsedLines settings key is unchanged — existing configs keep working.

Trade-off, stated plainly: the setting still doesn't affect Update rows — but that's now honest, and it's the CC-faithful outcome (CC never compacts edit diffs). Option 1 (a unified compaction knob) stays available as a future choice if claudify ever prioritises that over CC fidelity.

Test plan

  • bun run test — 15/15 suites green (hub test updated to the new label)
  • tsc --strict clean
  • Capture verified non-collapsing at 50 and 130 changed lines

Closes CLFY-23

## Capture CLFY-23 asked whether to make edit/Update rows honour "Collapsed diff lines," and flagged that Option 1 needed a capture of **Claude Code's actual collapsed Update height** first (capture-don't-guess). I drove Claude Code 2.1.212 in tmux and forced single Edit calls rewriting 50- and 130-line files. **Result: Claude Code does not collapse edit diffs at all — it renders them in full.** No `… +N lines`, no `ctrl+r to expand`, no pager, at either size. (The earlier "History 2/2" was Claude Code's input-history indicator from my own Up-arrow presses, not a diff pager.) Full write-up: `docs/plans/2026-07-17-cc-edit-diff-collapse.md`. So there is **no CC "collapsed Update height" to match** — the premise behind Option 1's blocker dissolves. ## Decision — "which is most like CC? do that one" Since CC shows diffs in full, the option that shows **more** of the diff is closer to CC. That's claudify's existing larger edit budget (32) — **not** collapsing edits down to the setting's default of 10, which would move Update rows *away* from CC. So: - **Edit rendering is unchanged.** Update rows keep their larger budget (for a typical ≤32-line edit that's the whole diff, matching CC). - **The label is the fix:** the generic Diffs row `"Collapsed diff lines"` → **`"Collapsed Write lines"`**, so its name stops implying it governs Update rows. The description was already Write-scoped (CLFY-22); this aligns the label. The `diffCollapsedLines` settings key is unchanged — existing configs keep working. Trade-off, stated plainly: the setting still doesn't affect Update rows — but that's now *honest*, and it's the CC-faithful outcome (CC never compacts edit diffs). Option 1 (a unified compaction knob) stays available as a future choice if claudify ever prioritises that over CC fidelity. ## Test plan - [x] `bun run test` — 15/15 suites green (hub test updated to the new label) - [x] `tsc --strict` clean - [x] Capture verified non-collapsing at 50 and 130 changed lines Closes CLFY-23
docs: capture CC edit-diff collapse; rename row to 'Collapsed Write lines'
All checks were successful
Plane Sync / Close referenced Plane work items (pull_request) Successful in 2s
76b06203e1
CLFY-23. Captured Claude Code 2.1.212's Edit/Update diff rendering by driving it
in tmux: forced single Edit calls rewriting 50- and 130-line files. Result — CC
does NOT collapse edit diffs; it renders them in full with no '+N lines' or
expand marker at either size (docs/plans/2026-07-17-cc-edit-diff-collapse.md).

So there is no CC 'collapsed Update height' to match. 'Which is most like CC?'
resolves to: the choice showing MORE of the diff is closer to CC's full render.
That is claudify's existing larger edit budget, not collapsing edits to the
setting's default of 10 (which would move Update rows away from CC). Edit
behaviour is therefore left unchanged; the fix is the label: the generic Diffs
row 'Collapsed diff lines' -> 'Collapsed Write lines', so its name stops
implying it governs Update rows (its description was already Write-scoped). The
diffCollapsedLines key is unchanged.

Closes CLFY-23
owlburtoe merged commit a9976a3c41 into master 2026-07-17 14:56:00 -04:00
owlburtoe deleted branch clfy-23-collapse-write-scope 2026-07-17 14:56:00 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
owlburtoe/pi-claudify!56
No description provided.