Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 23, 2026

Files under individual commits in the "Commits" section displayed "Mark as Viewed" checkboxes. These checkboxes should only appear on files in the top-level "Files" section, as the viewed state applies to the current file version, not historical snapshots.

Changes

  • FileChangeNode.checkboxState: Made optional to support files without checkboxes
  • FileChangeNode.isUnderCommitNode(): Added helper that walks parent hierarchy to detect if node is under a CommitNode (identified by contextValue === 'commit')
  • FileChangeNode.updateViewed(): Conditionally sets checkboxState to undefined for files under commits
  • DirectoryTreeNode.allChildrenViewed(): Handle optional checkboxState when computing folder checkbox state
  • TreeUtils.processCheckboxUpdates(): Skip files without checkboxState when processing bulk checkbox changes

Behavior

Before: Files under commits show checkboxes; checking them marks the file as viewed globally
After: Only files in the top-level "Files" section show checkboxes

Original prompt

This section details on the original issue you should resolve

<issue_title>Mark as Viewed: Marking a file as views on an older commit marks the file as viewed for all versions of the file</issue_title>
<issue_description>Image</issue_description>

<agent_instructions>Don't show the mark as viewed checkboxes on files under commit nodes.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits January 23, 2026 17:35
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix marking file as viewed on older commits Hide "Mark as Viewed" checkboxes on files under commit nodes Jan 23, 2026
Copilot AI requested a review from alexr00 January 23, 2026 17:41
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.

Mark as Viewed: Marking a file as views on an older commit marks the file as viewed for all versions of the file

2 participants