You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4bfd185
Browse filesBrowse the repository at this point in the historyBrowse files
feat(comments): delete .dunk/comments.json when the review is empty (#12)
Resolving the last comment left an empty `{ "schema": 1, "comments": [] }`
file that an agent or human reviewer still had to reason about. Reads
already treat a missing file as "no comments", so `writeCommentsFile`
now deletes the file on an empty review and round-trips cleanly.
Because deletion is now part of the normal write path and the TUI and
agent CLI ping-pong on the same review, a concurrent deletion could land
between an `existsSync` check and the read. The read/fingerprint helpers
now do a single ENOENT-safe read instead, and the comments-file path has
one source of truth via `commentsFilePath`.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,10 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
8
8
9
9
## [Unreleased]
10
10
11
+
### Changed
12
+
13
+
-`.dunk/comments.json` is now deleted when the last comment is resolved instead of leaving an empty `{ "comments": [] }` file. Reads already treat a missing file as "no comments", so an empty review leaves no artifact for a coding agent or human reviewer to reason about.
0 commit comments