﻿# bb diff review: Viewed state belongs to a file revision

Treat bb Viewed state as attention to a particular diff state; when the file or integrated patch changes, reconnect review coverage to the new artifact.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/bb-diff-reviewed-revision-state/
Language: en

A Viewed marker helps a developer track attention during diff review. Its meaning depends on whether the file has changed since it was inspected. bb’s changelog describes collapsing viewed files until they change, which connects review progress to the evolving artifact rather than to a permanent judgment about a filename.

## A review marker records attention to a state

Imagine a parser file that a developer reads and marks as viewed. At that moment, the mark helps distinguish the examined diff from files still awaiting attention. It does not state that the parser is correct under every input. The changelog documents the interface behavior, while the engineering meaning remains narrower: a particular change was inspected. Keeping that meaning bounded prevents an organizational convenience from being presented as a test result or a general approval of future edits.

## A later edit changes the review target

An agent can modify the parser after the first inspection. The new diff is a different object, even though its path is unchanged. The documented collapse-until-change behavior makes that distinction useful in the interface. A developer can return to the changed region and ask whether the new correction addresses the original finding. Git worktrees provide the related context of checked-out file state: sharing a filename across branches does not establish that each branch contains the same revision.

## Display filters affect what is visible

The changelog also discusses whitespace filtering in diff review. A display choice can make a change easier to read, but it should not silently redefine the application’s correctness criteria. In a whitespace-sensitive file, a reviewer may need to examine changes hidden by a convenience filter. This is an engineering inference rather than a claim that every filtered diff is unsafe. The relevant question is whether the selected view preserves the evidence needed to assess the particular file and behavior.

## Tie the final report to the reviewed artifact

A useful completion note identifies the version or patch that was examined and any later correction that was checked. The Viewed state helps organize the review process; the final evidence explains the outcome. The orchestration guide supplies related context for bounded review tasks and findings. This distinction matters when a manager combines several agents’ edits: a file reviewed before integration may need attention where the combined artifact changed, even if each participant previously marked its own local view as examined.

## Primary sources

- [bb changelog](https://getbb.app/changelog).

- [Git worktree documentation](https://git-scm.com/docs/git-worktree).

- [Orchestrate your coding agents](https://getbb.app/guides/orchestrate-coding-agents).

Related engineering context: [Choosing an AI development stack](/journal/local-ai-app-stack-selection/); [Git state and undo](/journal/aider-git-dirty-tree-undo/).
