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 f5f8d52
Browse filesBrowse the repository at this point in the historyBrowse files
feat(tui): github-style bar and inline box for diff line comments
Hovering a line of an in-chat edit, patch or write block shows a + in the
gutter, and dragging the line numbers grows or shrinks a bar there with the
+ on its top line. Releasing floats a comment box right below the last picked
line instead of opening a dialog; enter sends, esc cancels.
The sent prompt drops the "Review comment on" lead-in: just the file, the line
range, the quoted lines and the comment. The bar and + use the new
diff.highlight.selected theme token, which falls back to the interactive hue.
Copy file name to clipboardExpand all lines: PATCH.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ The vertical tab subtree lists unresolved children (running, pending, permission
105
105
106
106
## Diff Line Comments (TUI)
107
107
108
-
In the session transcript, the diffs of `edit` and `apply_patch` tool calls and the numbered content of `write` calls (quoted as added lines) take review comments: pressing or dragging down the line numbers picks lines within one hunk (and one side in split view); text on the code side still selects for copying. Releasing opens a one-line comment prompt, and submitting sends a normal prompt to the viewed session (`Review comment on <file> L<a>-L<b>:`, the picked lines in a `diff` fence, then the comment), so it queues while the session works. Ranges name new line numbers, or old ones marked `(removed)` when only removed lines are picked. Picked lines use the theme token `diff.background.selected`, which defaults to `$hue.interactive.700` for themes that do not set it. `createLineSelection` (`component/line-selection.ts`) owns picking and painting on any `LineNumberRenderable`; `PatchDiff` only uses it when given `onSelectLines`; `useLineComment` (`component/line-comment.tsx`) owns the prompt and message format.
108
+
Dragging down the line numbers of an in-chat edit, patch or write block picks lines, GitHub style, and sends a comment on them to the session as a prompt.
0 commit comments