Skip to content

🔬 Evaluate rawDiff concatenation strategy for multi-turn same-file edits #68

@Robdel12

Description

@Robdel12

Context

Discovered in #62: ReviewCanvasStatePlanner.rawDiff joins all turn diffs with \n. When multiple turns edit the same file, this produces concatenated unified diff blocks for the same path. The diff parser/renderer may handle this correctly (showing each turn's changes separately), but it hasn't been verified.

Questions

  • Does the diff renderer correctly parse multiple diff blocks for the same file path?
  • Should the review UI merge/squash same-file diffs across turns into a single coherent diff?
  • Should the per-turn view be the default, with cumulative as an option?
  • Do we properly capture/show the diff lines in the file and not make up line numbers at different indexes?

Files

  • OrbitDockNative/OrbitDock/Views/Review/ReviewCanvasStatePlanner.swift
  • Diff parsing/rendering code

Acceptance Criteria

  • Verify the current behavior with a multi-turn same-file edit scenario
  • Document the intended behavior
  • Fix if the renderer produces confusing output

Follow-up from #62: I_kwDORFu4Vs71S6MD

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readySmall task suitable for agent dispatch

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions