Skip to content
← Back to release · 2.1.274
New features / v2.1.274

[Claude Code on the web] Diff against any branch

CHANGELOG · original

[Claude Code on the web] Added a "Compare against" branch picker to a cloud session's diff view, so you can diff its changes against any branch instead of only the base branch
Open official changelog ↗

Documentation

Documentation excerpt

Review changes

After Claude pushes its changes to a branch, the Changes card in the panel beside the chat shows the lines added and removed, such as +42 -18. Click the line counts on the Changes card to open the diff view.

  • To show the panel when it's hidden, click Activity panel or Show session rail in the session's title bar, or Show session rail in the bar's ⋮ menu.
  • You can also open Changes as a pane.

In the diff view, you can comment on lines and compare against another branch:

  • Comment: leave inline comments on specific lines, then send the comments to Claude with your next message
  • Compare: the diff view compares the session's changes against its base branch by default. To compare against any other branch in the repository, select Compare against and pick one

Claude Code computes these diffs from raw git blob content, so diff drivers and textconv filters configured in the repository don't apply.

These steps are covered elsewhere:

Troubleshoot a missing file in the diff view

A file you expected can be missing from the diff view's file list when it compares against the base branch, whether or not the session has pushed changes:

  • No changes pushed yet: the list has Claude's own edits, but not changes made by commands Claude ran, such as a formatter
  • Changes pushed: the list has pushed commits, but not changes made after the last push

To add a missing change to the list, ask Claude to commit and push.

Documentation snapshot · 2026-11-20

Change details