Skip to content

Preserve diffr context when applying review lenses - #495

Merged
sidkmenon merged 1 commit into
codex/whiteboard-diffr-startupfrom
codex/whiteboard-diffr-lens-context
Sep 23, 2026
Merged

sidkmenon merged 1 commit into
codex/whiteboard-diffr-startupfrom
codex/whiteboard-diffr-lens-context

Conversation

@sidkmenon

@sidkmenon sidkmenon commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Whiteboard lenses can hide enclosing function context that diffr deliberately retained. Carry context scope boundaries through the structural diff provider and retain visible context around selected code without expanding through collapsed provider regions.

Complements devdotfast/diffr#34: that change improves the context emitted by diffr; this change preserves it when Whiteboard applies a lens.

Validation: all 23 existing lens and structural-diff tests pass.

@sidkmenon
sidkmenon added this pull request to stack #496 September 23, 2026 17:40
@sidkmenon
sidkmenon marked this pull request as ready for review September 23, 2026 17:41
@sidkmenon
sidkmenon merged commit 788475d into main Sep 23, 2026
1 of 2 checks passed
@sidkmenon
sidkmenon deleted the codex/whiteboard-diffr-lens-context branch September 23, 2026 18:10
sidkmenon added a commit that referenced this pull request Sep 23, 2026
Restore the repository exactly to
`5d5181f252011727621013b44a0f4cffeafaa5cf`, before the Whiteboard rename
stack, so the user-facing rename can be rebuilt separately with a
narrower scope.

This reverts #478, #479, #480, #481, #482 and the subsequently merged
#475, #494, #495. No branding, migrations, or later fixes are
selectively retained; reapplication belongs in follow-up PRs. No new
release was cut from these changes.

Validation: the resulting Git tree is identical to the target commit
(`a6e9beb4849072e538563e89449422f690c57fd8`), and the working tree is
clean. The target tree previously passed [Review Desktop
CI](https://github.com/devdotfast/review/actions/runs/35859829627).
Tests have not been rerun locally; this PR will run CI again.
sidkmenon added a commit that referenced this pull request Sep 23, 2026
Applying a review lens could hide enclosing function context
intentionally retained by diffr. Carry syntax scope boundaries through
the structural provider and retain the visible context surrounding
selected code, without expanding collapsed provider regions.

Reapplies #495 after the rollback using existing Review paths and
imports.

Validation: all 23 existing lens and structural-diff tests passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants