Skip to content

Threads and anchors: stale lines visible in the editor, a clear move, applied suggestions recorded, links that read well aloud - #58

Merged
tomeyer97 merged 2 commits into
mainfrom
cnf/s06-threads-anchors
Nov 27, 2026
Merged

tomeyer97 merged 2 commits into
mainfrom
cnf/s06-threads-anchors

Conversation

@tomeyer97

@tomeyer97 tomeyer97 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Threads and anchors get easier to read and act on. A stale note now shows in the editor itself (tinted lines, ruler mark), and its thread shows the old and new line as a wrapped word diff. Moving a note no longer depends on a toast that vanishes when you click into the editor. An applied suggestion is recorded on the note. Thread comments no longer carry percent-encoded command links that screen readers read aloud.

What was wrong Status
"Apply suggestion" stayed live after applying and nothing recorded it fixed: the message records who applied it, the link becomes "Applied ✓", a second apply does nothing
package.json:3 in an answer was not linked (root files need a folder) fixed: root file names with an extension link when :line or #L follows; e.g:3 stays text
Stale note: nothing in the editor, old line only in a scrolling box partly: stale tint and ruler mark on the lines, banner shows − old / + new wrapped with changed words marked; no separate ⚠ gutter glyph, Keep here / Move stay links
Move Here button in a toast that hides when the editor takes focus fixed: no notification; the status bar item reads "Move note here" and finishes the move on click (Enter binding is a manifest follow-up)
Screen readers hear raw markdown with URL-encoded command links fixed: comment links use short keys (command:codeNotes.link?123456); concern actions moved out of the body to thread actions (menu entries are a manifest follow-up)

Changed goldens: none

Follow-ups

  • package.json: Enter → codeNotes.completeMove while codeNotes.moving; contribute the concern commands (concernFix, concernTodo, concernFlag, concernFixed, concernDismiss) in comments/commentThread/context, shown by the thread's concern / todo / flagged context values. Until these are wired, concern actions are reachable only from the Check view's buttons, not from the thread.
  • Note merge: an applied mark written while an agent rewrites the same note at the same moment can be dropped; merging an existing message's extra fields would keep it.
  • Agent README could mention the applied field.

Stacked on #48

… applied suggestions recorded, links that read well aloud

Stale notes tint their lines and mark the ruler, and the banner shows the
old and new line as a wrapped word diff. Move Note finishes from the status
bar (no toast). Applying a suggestion is recorded on the message and cannot
run twice. Answers link root files (package.json:3). Thread command links
use short keys instead of percent-encoded JSON, and concern actions move
from the comment body to thread actions.
Signed-off-by: Torstein Meyer <107920881+tomeyer97@users.noreply.github.com>

# Conflicts:
#	test/integration/main/journeyTour.ts
@tomeyer97
tomeyer97 merged commit 3ed933f into main Nov 27, 2026
1 of 2 checks passed
@tomeyer97
tomeyer97 deleted the cnf/s06-threads-anchors branch November 27, 2026 08:53
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.

1 participant