Skip to content

feat(diff): add a note on a diff line to the next message (#1603) - #2505

Merged
devswha merged 6 commits into
mainfrom
feat/diff-line-feedback
Oct 31, 2026
Merged

devswha merged 6 commits into
mainfrom
feat/diff-line-feedback

Conversation

@devswha

@devswha devswha commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Closes #1603

What it does for the user

Reviewing an agent's change in the diff viewer no longer means copying the path, working out the line number and pasting the code into the message box.

  • Pointing at a line. Every logical line of a file's diff takes a note:

    • With a mouse, a hovered row shows a + beside its number.
    • A click or tap on a row picks its line, ringed as Find's match is. A bar under the rows names it ("Removed line 4") with Add a note, which is a full 44 px touch target on a phone.
    • With the keyboard, the focused diff picks lines with the arrow keys, removed lines included, and Enter begins a note. While Find is open, its active match is the line.
  • The editor. A small editor docks along the viewer's bottom edge, where a phone's keyboard meets it. It shows where the line is, the line's text and a field, with Cancel and Add to next message (Mod+Enter). Escape closes it while it is empty, and a written note is never lost to Escape.

  • Where the note waits. The note waits in the same chip as the comments on a reply (feat(chat): comment on selected reply text and send the comments with the next message (#511) #2350): "1 comment", or "2 comments" with both kinds. It goes first in that pane's next message, and nothing is sent until you press Send:

    > Diff note on src/money.ts, old side, line 4 (removed)
    > PC home-server, repository /home/me/checkout-api
    > Compared as captured: working tree on HEAD 4f2a9c1d…, patch 9b1e…
    > ```
    >   return amount * 100;
    > ```
    Keep the rounding of negative amounts.
    
    Go ahead.
    
  • The comparison is frozen when the note is begun, so a diff that changes later does not move it. The quote records:

    • two full commits for a commit comparison;
    • HEAD, the base and the merge base for a branch comparison;
    • HEAD and the patch's identity (64-bit FNV-1a of the patch text) for the working tree or the index.
  • The fence is longer than any run of backticks in the line, so the line cannot close it.

  • Too long is refused. A note that would take the next message past the composer's 20,000-character limit, counting the draft and the comments already waiting, is refused in the editor with a message. The draft and the waiting comments stay unchanged.

  • Only the diff's own pane takes the note. That means the PC and pane the diff was opened from, never the pane selected now. Add a note and the + are disabled, and the bar says why, in these cases:

    • the diff has no pane, or the pane has closed;
    • the PC is not connected;
    • no agent is running in the pane;
    • the device can only watch;
    • every mount of the pane on this page only watches it while another window types in it.

One model for "comments go with your next message"

The brief asked to reuse #2350's mechanism unless the issue's composer-draft block was clearly better. I reused it, and the draft block would have been worse:

  • A shell never types the note. feat(chat): comment on selected reply text and send the comments with the next message (#511) #2350 sends a message carrying comments with agent_only: true, which the bridge refuses where no agent is in front. A block appended to the ordinary draft would be typed into a shell like any text. A fence or > line typed there runs as shell syntax, and > truncates a file.
  • The rest comes for free. The store already reserves comments for a send in flight, follows a pane moved to a new ID, syncs across tabs and clears exactly the comments a sent message carried.
  • Nothing is overwritten. The draft itself is never edited: the length check counts the draft and the waiting comments.

The only change to the store is an optional source: "diff" on a comment. A stored entry with any other source is dropped. With source: "diff" the chip says "comments" instead of "comments on the reply". No server endpoint and no HTTP/WS contract changes.

Design precedent

The + on a hovered diff line follows GitHub's and Codex's review gutter. It differs in collecting the note for the next message instead of posting a review thread. The DESIGN.md entry names this.

I looked at @polaroidkidd's file-diff-viewer branch (discussion #1385) for the gutter button's design. No code was adapted from it: this PR's + is the @pierre/diffs gutter-utility slot drawn by RepoDiff.tsx.

How it was verified

  • Unit tests, src/lib/diffLineNotes.test.ts, written failing first:
    • a removed line near the end of a 4,000-line diff names its PC, repository, comparison, path, old side and line 3990;
    • a hovered or tapped row maps to its logical line, including an unchanged row on the old side in split;
    • backtick runs get a longer fence;
    • each scope's captured comparison;
    • the length refusal at the exact limit;
    • each disabled reason.
  • Unit tests, src/lib/replyComments.test.ts: a diff note keeps its mark, and an unknown mark is dropped.
  • Demo regression, new scripts/diff-line-notes-demo-regression.ts, enrolled in the browser lane. It runs on the unmodified app over the demo transport, with the Codex palette. Every case passes, with no page errors.
    • 1280, dark and light:
      • the + begins a note on the removed line, and the stored quote matches;
      • the arrow keys walk every logical line and stop at the first;
      • Enter begins a note, and Escape closes it while empty and keeps it when written;
      • closing the viewer leaves the chip;
      • a note past the limit is refused with the message, and the draft and the waiting note are unchanged;
      • the next message carries the note first, then the typed text, with agent_only: true, and storage clears.
    • 390 on a touch screen, dark and light, English and Korean: a tap picks the line, Add a note and the editor's button are at least 44 px, and the note waits in the chip.
    • A pane with no agent: the bar gives the reason, and neither the + nor Add a note begins a note.
  • Screenshots of each state at 1280 and 390, dark and light, Korean on the phone, were looked at.
  • bun run check fast passes: workflow syntax, generated types and themes, typecheck, build, and 10,029 unit tests.

Reviews

Adversarial, read-only reviews by omo-native-code-reviewer and Codex Terra 6.1 (Fast, xhigh). The tests that fail before each fix are in diffLineNotes.test.ts, paneObserving.test.ts and the demo regression.

  • Round 1 asked for changes; nothing was delivered to the wrong pane.
    • Codex: 2 HIGH, 6 MEDIUM, 2 LOW. omo: 2 MEDIUM, 9 LOW.
    • Fixed in fc3c0ac3:
      • a branch note records the patch's identity, since a branch diff includes the working tree;
      • a window that only watches the pane takes no note;
      • an unreachable PC says so;
      • another line's + keeps a written note;
      • a line clicked while Find is open beats Find's match, and the arrow keys start from the match (matched by side and line, since the matches are copies);
      • the length check leaves out comments a send in flight carries;
      • the fence is counted in a loop, so a huge line cannot throw;
      • a drag that selects code picks no line;
      • Escape in the find bar closes Find first.
  • Round 2 (Codex, fc3c0ac3 only) confirmed those fixes and raised one MEDIUM: a split mounting the same pane twice overwrote its watch state. It also noted that reachability was read from a snapshot kept after a disconnect. Both were fixed in 9c236fd3: each mount reports its own role, and reachability comes from the PC's connection state.
  • Round 3 (Codex, 9c236fd3 only): PASS, no new CRITICAL, HIGH or MEDIUM.

Known limits

  • The note goes with the pane's Chat message, not a terminal send. It goes with the next message sent from the pane's Chat, not with text typed in the terminal lens, as with feat(chat): comment on selected reply text and send the comments with the next message (#511) #2350's comments. A slash command, a ! line or an answer to a question leaves it waiting, and the confirmation says so. Codex agreed this is acceptable as a documented limit.
  • Split view rings the other column. An unchanged line clicked in the old column is ringed in the new one. It is the same logical line, and the quote is right.
  • The demo regression checks English sentences. scripts/diff-line-notes-demo-regression.ts asserts the English (and some Korean) UI sentences, as its neighbours do.

Validation

  • bun run check fast passes on the head: 10,030 unit tests, typecheck, build, and generated types and themes.
  • bun scripts/diff-line-notes-demo-regression.ts passes all 7 cases.
  • Not run locally: the integration lane and Native Windows. They are left to CI.

A line of a file's diff takes a note for the agent: the + beside a hovered row, a click or tap
on the row and the bar's Add a note, or the arrow keys and Enter. The note waits with the
comments on a reply (#2350's store, marked source: diff) for the diff's own pane, and goes first
in its next message, sent agent_only: where the line is, the comparison as read, and the line in
a fence no backtick run can close. A note past the composer's limit is refused; a pane with no
agent, closed, or a watching device takes none and says why.

Closes #1603
…ranch patch in diff notes

Review fixes for the diff line notes (#1603): a branch note records the patch's identity, as a
branch diff includes the working tree; a window that only observes the pane, or an unreachable PC,
takes no note and says why; another line's + keeps a written note; a clicked line wins over Find's
match and the arrow keys start from the match; the length check leaves out comments a send in
flight carries; the fence is counted in a loop; a drag that selects code picks no line; Escape in
the find bar closes Find first. The confirmation names the pane's Chat, where the note is sent.
A split may mount a pane twice on two connections: each mount now reports its own role, and a
diff note is refused only while every mount only watches the pane. An unreachable PC is read
from its connection state, not a snapshot kept after it went away. The confirmation says a
slash command, a ! line or an answer goes without the note.
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 16bdda5 and 9c236fd.

Files selected for processing: 24
  • DESIGN.md
  • changelog.d/diff-line-notes.md
  • docs/development.md
  • scripts/ci-browser.sh
  • scripts/diff-line-notes-demo-regression.ts
  • src/App.tsx
  • src/components/PaneTerminal.tsx
  • src/components/ReplyComments.tsx
  • src/components/RepoDiff.tsx
  • src/components/RepoDiffViewer.css
  • src/components/RepoDiffViewer.tsx
  • src/lib/diffLineNotes.test.ts
  • src/lib/diffLineNotes.ts
  • src/lib/i18n.test.ts
  • src/lib/i18n/composer.ja.ts
  • src/lib/i18n/composer.ko.ts
  • src/lib/i18n/composer.zh.ts
  • src/lib/i18n/files.ja.ts
  • src/lib/i18n/files.ko.ts
  • src/lib/i18n/files.zh.ts
  • src/lib/paneObserving.test.ts
  • src/lib/paneObserving.ts
  • src/lib/replyComments.test.ts
  • src/lib/replyComments.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

Summary

Summary by CodeRabbit

  • New Features
    • Add notes to selected repository diff lines. Notes include quoted line context and are attached to the next message alongside reply comments.
    • Notes are sent only when the message is sent; drafts are preserved, and notes that exceed the message limit are refused.
    • Note controls explain when the originating pane cannot receive a note.
  • Tests
    • Added browser regression coverage for line selection, note creation, and availability across desktop and mobile.

The diff viewer now lets users select a line, write a quoted note, and save it with the originating pane’s reply comments for its next message. Notes are blocked for ineligible panes and refused when they exceed the message limit. Browser regression coverage exercises desktop and phone interactions.

Changes: Diff-line notes

Layer / File(s) Summary
Capture and store diff-line notes
src/lib/diffLineNotes.ts, src/lib/replyComments.ts, src/components/ReplyComments.tsx, src/lib/diffLineNotes.test.ts, src/lib/replyComments.test.ts, src/lib/i18n/composer.*.ts
The new helpers capture comparison and line context, format safe quotes, and check message length. Reply comments accept a diff source, and the chip uses a general comment label for sourced comments.
Track pane eligibility
src/lib/paneObserving.ts, src/lib/paneObserving.test.ts, src/components/PaneTerminal.tsx, src/App.tsx, src/lib/i18n/files.*.ts, src/lib/i18n.test.ts
Mounted panes report observation state. The app supplies the diff viewer with a translated block reason based on pane availability, watcher role, observation, and connectivity.
Select lines and write notes
src/components/RepoDiffViewer.tsx, src/components/RepoDiff.tsx, src/components/RepoDiffViewer.css, scripts/diff-line-notes-demo-regression.ts, scripts/ci-browser.sh, docs/development.md, changelog.d/diff-line-notes.md, DESIGN.md
The viewer supports line selection and note editing across input methods, and renders blocked controls and note status. Browser checks cover note capture, saving, submission, and pane restrictions. The browser CI lane runs the regression script. The changelog and design notes describe the feature.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related issues

  • devswha/ovis#2356 — Diff notes use the existing reply-comment queue and next-message path; this change does not modify the queue’s move or sent-comment cleanup behavior.
  • devswha/ovis#1503 — Diff notes are stored under the owning pane’s key, and this change does not add remapping when pane moves occur outside the current browser.

Possibly related PRs

  • devswha/ovis#2350 — It adds the per-pane reply-comment store and next-message delivery path that this change extends.
Merge Risk: Minimal · previous review 9c236

No confirmed issue currently blocks merging, subject to normal checks.

Pre-merge checks: Passed 2 · Failed 3

Failed Failed checks: 3 warnings

Check name Status Explanation Resolution
Linked Issues check Warning Issue #1603 requires the formatted note to live only in the owning pane's ordinary composer draft. The issue also excludes a persistent comment list or separate send-comments queue. The reviewed code … Store the formatted diff note in the owning pane's ordinary composerDrafts draft. Preserve existing draft text and reject overflow without changes. Remove the diff-note path through ReplyCommentStore and the separate queue/chip behavior…
Out of Scope Changes check Warning The PR adds source: "diff" to ReplyComment, persists diff notes in ReplyCommentStore, changes ReplyCommentsChip labels, and routes notes through the existing queued-comment send flow. Issue #1… Remove the diff-note integration with ReplyCommentStore and ReplyCommentsChip. Use the owning pane's normal composer draft as the only storage and delivery path.
Docstring Coverage Warning Docstring coverage is 65.38% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 2 passed
Check name Status Explanation
Title check Passed The title clearly identifies the primary change: adding notes on diff lines to the next message.
Description check Passed The description explains the user-facing behavior, design decisions, known limits, linked issue, validation results, and skipped checks. It uses “## What it does for the user” instead of the template’…
Full details: Description check

Explanation

The description explains the user-facing behavior, design decisions, known limits, linked issue, validation results, and skipped checks. It uses “## What it does for the user” instead of the template’s “## Change” heading, but the required change information is present.

Full details: Linked Issues check

Explanation

Issue #1603 requires the formatted note to live only in the owning pane's ordinary composer draft. The issue also excludes a persistent comment list or separate send-comments queue. The reviewed code calls replyComments.add from RepoDiffViewer; ReplyCommentStore persists the note, and Composer later converts queued comments into the sent message. This does not add the note to composerDrafts and does not meet the required delivery model. The line selection, captured quote, limit check, and manual send behavior otherwise support the issue objectives.

Resolution

Store the formatted diff note in the owning pane's ordinary composerDrafts draft. Preserve existing draft text and reject overflow without changes. Remove the diff-note path through ReplyCommentStore and the separate queue/chip behavior. Add or update tests for draft persistence, overflow, and normal Send delivery.

Full details: Out of Scope Changes check

Explanation

The PR adds source: "diff" to ReplyComment, persists diff notes in ReplyCommentStore, changes ReplyCommentsChip labels, and routes notes through the existing queued-comment send flow. Issue #1603 explicitly excludes a persistent comment list and a separate send-comments queue. These changes are therefore outside the linked issue's allowed scope, even though they support the same user feature.

Resolution

Remove the diff-note integration with ReplyCommentStore and ReplyCommentsChip. Use the owning pane's normal composer draft as the only storage and delivery path.

Full details: Docstring Coverage

Explanation

Docstring coverage is 65.38% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 26 functions across 20 files. (4 skipped: 4 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@devswha

devswha commented Oct 31, 2026

Copy link
Copy Markdown
Owner Author

Review by the merge pass at 9c236fd (omo code reviewer on Claude plus a Codex Terra pass). No HIGH: lines with ``` fences, a lone \r hiding a fake note, paths with `\n```` or U+2028 and `</user_message>` all stay inside the `> ` quote and a longer fence; the size is capped at 20 000; `agent_only` holds, nothing is auto-sent or typed into the terminal; watch and observing devices are blocked; the comparison is frozen on full commit ids. Tests 43/0, conventions 31/0, typecheck clean, browser script 7/7.

Please fix before merge (one small round):

  1. MEDIUM, reproduced: src/lib/diffLineNotes.ts:64 replaces newlines in a path with spaces, so the distinct files a\nb and a b quote the same and a note can name the wrong file. Encode the path losslessly (e.g. JSON-quote it when it holds a control character).
  2. MEDIUM, reproduced: src/lib/replyComments.ts:147 strips a whitespace-only diff line when it serialises, so the agent gets different line content.
  3. MEDIUM, not reproduced end-to-end: src/lib/paneObserving.ts:14 treats a pane that isn't mounted as interactive, so a restored diff can take a note without knowing whether its connection would be watch-only. Fail closed (treat unknown as observing) or check at send time.
  4. Tests: src/lib/diffLineNotes.test.ts:38 and scripts/diff-line-notes-demo-regression.ts:34 pin the wording of what is sent to the agent; this repo's rule is to assert the machine-consumed parts (path, line numbers, quoted content, fence) and not the prose.

LOW, for the merge note: the patch hash takes 84 ms per note on a 1 MB patch (diffLineNotes.ts:32); RepoDiffViewer.tsx:292 duplicates the draft key prefix; replyComments.ts:34 drops stored entries with an unknown source.

…ane in diff notes

Merge-pass round on #2505: the quote names the path, PC and repository as JSON strings, so a
newline is not read as a space; a whitespace-only line is written as a JSON string, which the
message's quote lines keep; a pane this window has not mounted takes no note until its role is
known; the tests read the quote's parts instead of its wording.
A mounted pane reported itself as typing before its connection had a role; it now reports
watching only once observe is acknowledged and typing only once its attach is ready for input,
and a diff note waits until then.
@devswha

devswha commented Oct 31, 2026

Copy link
Copy Markdown
Owner Author

Delta review by the merge pass at fa8271e: no HIGH. The lossy path, the stripped whitespace line and the interactive-by-default pane no longer reproduce; the new tests fail on 9c236fd; fences, </user_message>, a lone \r, U+2028 and paths with " or \ all stay inside their JSON strings and the fence; tests, typecheck and the browser script pass.

One tiny push before merge, please:

  1. MEDIUM, reproduced: the tests still pin the quote's wording ("Diff note on…", "PC …, repository …", "JSON") in src/lib/diffLineNotes.test.ts:39-41,48 and scripts/diff-line-notes-demo-regression.ts:113. This repo's rule is that tests never pin prompt wording: assert the parsed path, PC, repository, line numbers, quoted content and fence instead.
  2. LOW, cheap to fold in: JSON.stringify leaves U+2028, U+2029 and U+0085 raw in names (src/lib/diffLineNotes.ts:63-64); they stay inside the quotes, but a reader that breaks lines on them drops the > prefix. Escape them.

LOW, for the merge note: an open pane after idle release, held by another bridge or during a wake probe says "Open the pane … first" (fails closed, clears once input is ready; only the wording is off); a lone \r in a line becomes a new line inside the fence (src/lib/replyComments.ts:146).

…rators in names

The tests and the demo regression read a note's quote by its JSON names, the values left in its
first line and its fence, not by its wording. Names escape U+2028, U+2029 and U+0085, which JSON
leaves raw and some viewers break a line at.
@devswha

devswha commented Oct 31, 2026

Copy link
Copy Markdown
Owner Author

Merging d9b9ec9 (closes #1603; the owner picked it for 0.4.22 and OK'd the screenshots): a + on a diff line adds a note on that line to the next message, quoted with its path, PC, repository, side, line and the line itself, through #2350's reply comment store; it is sent with the message as agent-only text, never typed into the terminal and never sent by itself. Review by the merge pass (omo code reviewer on Claude plus Codex Terra): fences, </user_message>, a lone \r, U+2028 and crafted paths stay inside the quote and fence; the size is capped; watch and observing devices take no note; the comparison is frozen on full commit ids. Its MEDIUMs (lossy paths, a stripped whitespace line, an unmounted pane treated as typing, tests pinning the quote's wording) were fixed in fa8271e and {H[:8]}; delta re-checked clean. LOW noted: an open pane after idle release, held by another bridge or during a wake probe says to open the pane first (fails closed); a lone \r in a line becomes a new line inside the fence; the patch hash takes 84 ms per note on a 1 MB patch.

@devswha
devswha merged commit f5370d5 into main Oct 31, 2026
13 checks passed
@devswha
devswha deleted the feat/diff-line-feedback branch October 31, 2026 21:47
@devswha devswha mentioned this pull request Oct 31, 2026
devswha added a commit that referenced this pull request Nov 2, 2026
## Release 0.4.22

The release PR, prepared by step 1 of
[docs/development.md#releasing](https://github.com/devswha/ovis/blob/main/docs/development.md#releasing)
on main `41492320` (#2453 the last merge), refreshed to main `99a6671f`
(#2582 the last merge).

**Do not merge yet:** the owner tests main and judges the final build
before release. No tag and no Release run from this PR's author.

- **Version:** `version` is 0.4.22 in `package.json` and
`herdr-plugin.toml`.
- **Changelog:** `bun scripts/changelog-fold.ts 0.4.22` (2026-10-31,
local) folded 20 fragments into the 2026-10-31 section of `CHANGELOG.md`
(23 entries with the hand entry), linked their PRs and deleted the
fragments; `changelog.d` holds only `README.md`.
- `by @login` on every outside contributor's PR link: #2453 @jokkopucko,
#2452 @jokkopucko, #2442 @nahwan-kim, #2463 @zerodice0, #2468
@Yoonwoo-Ha, #2065 @rabbitson87 (both entries), #2466 @jpcarranza94,
#2467 @jpcarranza94, #2457 @YuuuXie, #2420 @cheol-95 (both entries),
#2459 @Haeminway1, #2450 @briantcl1992, #2448 @briantcl1992.
- One outside PR had no fragment and got an entry by hand: #2448
(installer test no longer finds the host's Node, Maintenance).
- Issue reporters: #2442's entry credits @Ploppy3, who asked for
herdr-core support in #2439. The other fixed issues were filed by the
PR's own author (#2460 @zerodice0, #2464 @jpcarranza94, #2419 @cheol-95,
#2089 @rabbitson87) or the maintainer (#2444), so the PR credit covers
them.
- Two fragments ran past the changelog's width (#2443, #2446); their
entries are re-wrapped, words unchanged.
- Folded after the PR opened (merge of main `653613cb`, by hand per the
release steps): #2474 (Pi Chat message with leading/trailing spaces, a
tab or a trailing `@mention` no longer stuck "waiting for transcript",
Fixed), credited `reported by @BeerBelly69` (he reported issue #2454;
the PR is the maintainer's, so the earlier `by @BeerBelly69` was
corrected in `90536524`). Its fragment is deleted; `changelog.d` holds
only `README.md`. The release summaries are unchanged: their fixed list
is already at five lines.
- Folded in a second refresh (merge of main `98c1f5e0`, by hand): #2475
(a reconnecting or reloading browser gets back its follow-up's lost
"sent" receipt, Fixed), credited `reported by @christso`, who filed
#2421 and proposed the approach. Its fragment is deleted; `changelog.d`
holds only `README.md`. The release summaries are unchanged (fixed list
already at five lines).
- Folded in a third refresh (merge of main `af20e0a4`, by hand): #2490
(Chat keeps its messages mounted when the pane's skill names load, so a
decoded image no longer drops back to its loading slot, Fixed), credited
`by @nocstah` (outside PR, no linked issue); #2483 (a Copilot turn stays
whole when its pictures pass the page window, Fixed); #2479 (Chat shows
the pictures in a Copilot CLI session, Added); #2482 (Chat shows the
picture attached to a Hermes prompt, Added). #2483, #2479 and #2482 are
maintainer PRs; #2483's issue #2478 is the maintainer's, so no reporter
credit. #2480 (site only) had no fragment. Their fragments are deleted;
`changelog.d` holds only `README.md`. The release summaries are
unchanged: the fixed list is already at five lines, and the two new
picture features stay in the changelog only (the new list has room for
them if the owner wants them there).
- Folded in a fourth refresh (merge of main `4ca7d24d`, by hand): #2481
(Grok pictures in Chat), #2477 (svg figures, `reported by @affeek`, who
filed #2441 and co-authored the PR), #2498 (dollar math, `reported by
@kjohnsen`, #2407), #2484 (Expand thinking / Collapse work defaults,
`reported by @altgans and @Ploppy3`, #2346 and #2228) under Added; #2494
(`by @todor-a`), #2491 (`by @nocstah`), #2487, #2486, #2472 (`reported
by @matiemer`, #2462) and #2476 (relay session uses the server's port)
under Fixed. 10 fragments deleted; `changelog.d` holds only `README.md`.
Every entry's credit was re-checked with GraphQL (PR author, closing
issues' authors, commit authors): #2487's #2374, #2486's #2485 and
#2483's #2478 are the maintainer's, so no reporter credit.
- Folded in a fifth refresh (merge of main `f5370d54`, by hand): #2503
(Claude question card steps and Back, `reported and co-authored by
@jpcarranza94`, who filed #2465 and co-authored the fix), #2502 (tab
name from its first message, `reported by @vibewriter-hand`, #2019) and
#2505 (a note on a diff line goes into the next message; #1603 is the
maintainer's, so no credit) under Added; #2506 (OmO, Codex and Hermes
question cards move between questions without answering; it closes no
issue, so no credit) under Fixed. 4 fragments deleted; `changelog.d`
holds only `README.md`. #2499's hand-written relay entry is kept. All
four PRs are the maintainer's; credits re-checked with GraphQL (PR
author, closing issues' authors, commit authors).
- Sixth refresh (merge of main `feb3ae09`, head `e3b0dc37`): main had no
fragment left to fold. #2504 (the owner's PR, no fragment) gets a hand
entry under Added next to #2499's: the PC side of the relay, which
answers the relay's server proof, `/api/relay` start/stop routes
restricted to the owner and to direct connections, and a relay QR from
`plugin pair`; off by default with no Settings switch yet. No credit
(maintainer PR). It stays out of the release summaries (off by default,
no UI).
- Seventh refresh (merge of main `a683e3ff`, head `7855c73c`): folded
#2509's two fragments by hand, two entries under Added (the phone side
of the relay: the hosted shell that pairs from the PC's relay QR and
opens the app end-to-end encrypted; files and chat images through the
relay) and one under Fixed (the iOS and Android apps no longer show the
hosted shell's home-screen hint). Each says the relay is off by default.
#2499's entry now says Ovis uses the relay only once a PC's relay link
is started. No credit (maintainer PR). The fragments are deleted;
`changelog.d` holds only `README.md`. The relay stays out of the release
summaries.
- Eighth refresh (merge of main `0b215abf`, head `f76f3ae4`): folded
#2514's three fragments by hand under Fixed (relay connection limits and
the 30 s wait for an absent PC, proof of the PC's relay key, the hosted
shell's copy-on-select and relay-control requests) and added a hand
entry for #2514 under Added: remote access through the Ovis relay can be
turned on in **Settings → Phone & devices** (off by default), with the
iOS and Android apps opening a relay-paired PC from its link;
app.ovis.sh is deployed separately. #2499, #2504 and #2509's entries no
longer say there is no Settings switch: they now say the relay is turned
on in Settings. No credit (maintainer PR). Also folded #2511 (Claude
task-list scan on file workers, Fixed, `by @duytbp`) and #2518 (feedback
typed on Claude Code's plan card keeps Claude planning, Fixed, `by
@jpcarranza94`, who also reported #2517, so no separate reporter
credit). #2515 is docs only, no fold. 5 fragments deleted; `changelog.d`
holds only `README.md`.
- Ninth refresh (merge of main `fbb97b62`, head `44048d5f`, fold in the
merge commit): folded 23 fragments by hand: 7 entries under Added
(#2514's rewritten relay-identity entry, which replaces its old Fixed
entry about the PC's relay key; #2519 Letta model pill `by @homebodify`;
#2522 relay bulk window and the relay overview, self-hosting and
hosted-shell attestation; #2524 DeepSeek Harness in the catalog), 3
under Changed (#2533 Connect a phone dialog and the `tailscale serve`
box; #2539 chat pictures shown whole) and 26 under Fixed: #2508; #2512
`by @lifeofpi-ux`; #2516; #2521, #2526, #2531, #2538, #2541, #2543,
#2545, #2547, #2549 and #2551 `by @jpcarranza94`; #2527 `reported by
@duytbp` (#2510); #2532; #2535 `reported by @devtm1123` (#2513). #2532's
#2523 is the maintainer's; @jpcarranza94's issues (#2525, #2537, #2540,
#2542, #2544, #2546, #2548, #2550) are covered by his PR credit. #2529
(perf) is not merged and stays out of 0.4.22. 23 fragments deleted;
`changelog.d` holds only `README.md`.
- Tenth refresh (merge of main `afdfb1e0`, head `1cfcfab7`, fold in the
merge commit), on the owner's OK for both: folded #2567 (Connect a phone
shows three choice cards and opens on the relay whenever it is offered,
with the relay's switch on its card on a tailnet; maintainer PR, no
credit) under Changed and #2555 (the New workspace folder picker's
compact row; `by @iwangjie`, no linked issue) under Fixed. 2 fragments
deleted; `changelog.d` holds only `README.md`. The IMPROVED summary line
now says the relay needs no Tailscale, in en, ko, ja and zh.
- Eleventh refresh (merge of main `2b620462`, head `13fa0181`, fold in
the merge commit), on the owner's go for each: folded 13 entries from 12
fragments by hand. Changed: #2562 (a chat starts loading when the press
begins, `by @jpcarranza94`), #2574 (Quote a selection into the message
box), #2578 (the relay's switch, reset and failures only in Connect a
phone). Fixed: #2564 and #2560 (two entries) `by @jpcarranza94`; #2554
`by @iwangjie`; #2577; #2576 (the session-bound conversation cache,
fixing the two HIGHs the post-merge Codex Terra review reproduced in
#2562 and #2545); #2572 `reported by @rkqksk` (#2557); #2570 `reported
by @nathanvale` (#2566); #2571 `reported by @altgans` (#2568); #2575
`reported by @matiemer` (#2558). @jpcarranza94's own issues (#2559,
#2561, #2563) are covered by his PR credit. 12 fragments deleted;
`changelog.d` holds only `README.md`. IMPROVED summary: "Select words in
a Chat reply to quote them into your message." replaces the spacing
line, in en, ko, ja and zh.
- Twelfth refresh (merge of main `64ae5e72`, head `3ae2133e`), on Dori's
go: folded #2580 under Fixed (the Cloudflare relay closes both ends of a
pair after a frame send fails, so they reconnect at once; maintainer PR,
no credit) and deleted its fragment. #2579 (guide only) has no fragment.
Summaries unchanged.
- Thirteenth refresh (merge of main `99a6671f`, head `aebaabbf`), on
Dori's go: folded #2582 under Fixed (`by @iwangjie`: the folder picker's
Show hidden waits for a loading folder; the path bar wraps at very
narrow widths) and deleted its fragment. Summaries unchanged.
- Maintainer PRs without a fragment and without a user-facing change
have no entry: #2436 (relay crypto/mux foundations, not wired yet),
#2445 (CI contract test against a pinned hc).
- **Release summaries:** en, ko, ja and zh each have 8 new, 8 improved
and 8 fixed lines (8 is the most a list the app reads may hold, 90
characters a line). New: remote access through the Ovis relay, turned on
in Settings (off by default), with app.ovis.sh shipping separately
(#2514); pictures in Chat for Copilot, Grok and Hermes (#2479, #2481,
#2482); svg figures (#2477); math with dollar signs (#2498); Portal
sign-in with watch-only visitors (#2065); DeepSeek Harness in Settings →
Agents with its conversations in Chat on Linux (#2524, #2453); tab names
from the first message (#2502); notes on diff lines (#2505). Improved:
Expand thinking / Collapse work defaults (#2484), Chat spacing that
follows the font size (#2491), key bar drag reorder (#2463), same-host
links in an in-app popup on phones (#2459), Claude question cards with
steps and Back (#2503), OmO, Codex and Hermes cards with Back and Next
(#2506), one Connect a phone dialog (#2533), pictures shown whole
(#2539). Fixed: panes again on Safari 16.4–17.3 and iOS 16.4+ (#2535),
Stop with a queued follow-up keeps the stopped message (#2547), a first
message reaches Claude Code (#2526), Codex Chat after a finished answer
(#2443), question cards show at once and stay (#2543), Chat no longer
redraws turns or jumps (#2538, #2545), a setting kept across a quick
reload (#2487), Claude's plan card in narrow panes (#2541). Moved to the
changelog only to fit the 8-line lists: Codex behind Kiro (#2420), Pi
messages with spaces (#2474), the Claude question card between questions
(#2466, #2467, now covered by the question-card line), short-phone
overlap (#2494), cross-tab settings (#2486), the Antigravity note
(#2472), plus the subagent poll perf (#2527), relay transport (#2516),
herdr-core no-watch (#2512) and the other Fixed entries above.
- **Remote bundle:** `REMOTE_BUNDLE_VERSION` rises from 40 to 41 because
the bundle inputs (`server/`, `shared/`, `bun.lock`) changed since
remote-v40. After merge: push `remote-v41` on the merged commit and wait
for the Remote PC bundles workflow before running Release.
- **Telemetry:** `telemetry/worker.ts` and `shared/telemetry.ts` are
unchanged since `telemetry/deployed.json`; no Worker deploy.

## Validation

- `bun scripts/release-guards.ts --base v0.4.21`: before the bump it
asked to raise `REMOTE_BUNDLE_VERSION` from 40 to 41 and nothing else;
after it, "Release 0.4.22: remote bundle, telemetry Worker and release
metadata are in order."
- `UNIT_TEST_WORKERS=4 dori heavy rel0422 -- bun run check fast` on this
branch: workflow syntax, generated types and themes, typecheck, build,
unit tests all ok. Unit: 9827 pass, 0 fail, 41 skip in 623 files.
- After folding #2474 (head `3de63b49`): `bun scripts/release-guards.ts
--base 653613c` "Release 0.4.22: remote bundle, telemetry Worker and
release metadata are in order."; `UNIT_TEST_WORKERS=4 dori heavy
refresh2473 -- bun run check fast` all ok, unit 9827 pass, 0 fail, 41
skip in 623 files.
- After folding #2475 and correcting the #2474 credit (head `90536524`):
`bun scripts/release-guards.ts --base 653613c` "Release 0.4.22: remote
bundle, telemetry Worker and release metadata are in order.";
`UNIT_TEST_WORKERS=4 dori heavy refresh2473b -- bun run check fast` all
ok, unit 9851 pass, 0 fail, 41 skip in 623 files.
- After folding #2490, #2483, #2479 and #2482 (head `0da3756d`;
`e6eb7df6` removed the fragments and `0da3756d` adds their CHANGELOG
entries, which that commit left out): `bun scripts/release-guards.ts
--base 98c1f5e` "Release 0.4.22: remote bundle, telemetry Worker and
release metadata are in order."; `UNIT_TEST_WORKERS=4 dori heavy
refresh2473c -- bun run check fast` all ok, unit 9855 pass, 0 fail, 41
skip in 623 files (with `TMPDIR` off the quota'd `/tmp` tmpfs; an
earlier run with the default `TMPDIR` hit `EDQUOT` there).
- After the fourth refresh (head `af31fa98`): `bun
scripts/release-guards.ts --base v0.4.21` and `--base origin/main` both
"Release 0.4.22: remote bundle, telemetry Worker and release metadata
are in order." main still has `REMOTE_BUNDLE_VERSION` 40 (no commit
since v0.4.21 touches it) and `remote-v41` is not tagged yet, so this
PR's 41 stays the one raise. `UNIT_TEST_WORKERS=4 dori heavy rel2473 --
bun run check fast` all ok, unit 9973 pass, 0 fail, 41 skip in 624
files.
- After the fifth refresh (head `b602a998`, merge of main `f5370d54`):
`bun scripts/release-guards.ts --base v0.4.21` and `--base origin/main`
both "Release 0.4.22: remote bundle, telemetry Worker and release
metadata are in order." (`REMOTE_BUNDLE_VERSION` stays 41).
`UNIT_TEST_WORKERS=4 dori heavy rel2473c -- bun run check fast` all ok,
unit 10107 pass, 0 fail, 41 skip in 631 files.
- After the sixth refresh (head `e3b0dc37`, merge of main `feb3ae09`):
`bun scripts/release-guards.ts --base v0.4.21` and `--base origin/main`
both "Release 0.4.22: remote bundle, telemetry Worker and release
metadata are in order." (`REMOTE_BUNDLE_VERSION` stays 41).
`UNIT_TEST_WORKERS=4 dori heavy rel2473d -- bun run check fast` all ok,
unit 10123 pass, 0 fail, 41 skip in 632 files.
- After the seventh refresh (head `7855c73c`, merge of main `a683e3ff`):
`bun scripts/release-guards.ts --base v0.4.21` and `--base origin/main`
both "Release 0.4.22: remote bundle, telemetry Worker and release
metadata are in order." (`REMOTE_BUNDLE_VERSION` stays 41).
`UNIT_TEST_WORKERS=4 dori heavy rel2473e -- bun run check fast` all ok,
unit 10314 pass, 0 fail, 41 skip in 644 files.
- After the eighth refresh (head `f76f3ae4`, merge of main `0b215abf`):
`bun scripts/release-guards.ts --base v0.4.21` and `--base origin/main`
both "Release 0.4.22: remote bundle, telemetry Worker and release
metadata are in order." #2514's and #2511's `server/` changes land
before `remote-v41` is tagged, so `REMOTE_BUNDLE_VERSION` stays 41.
`UNIT_TEST_WORKERS=4 dori heavy rel2473g -- bun run check fast` all ok,
unit 10363 pass, 0 fail, 41 skip in 649 files.
- After the ninth refresh (head `44048d5f`, merge of main `fbb97b62`):
`bun scripts/release-guards.ts --base v0.4.21` and `--base origin/main`
both "Release 0.4.22: remote bundle, telemetry Worker and release
metadata are in order." (`REMOTE_BUNDLE_VERSION` stays 41; `remote-v41`
is not tagged yet). `UNIT_TEST_WORKERS=4 dori heavy rel2473 -- bun run
check fast` all ok, unit 10511 pass, 0 fail, 41 skip in 654 files;
`server/release-notes.test.ts` and `src/lib/updateNotes.test.ts` 52
pass.
- After the tenth refresh (head `1cfcfab7`, merge of main `afdfb1e0`):
`bun scripts/release-guards.ts --base v0.4.21` and `--base origin/main`
both "Release 0.4.22: remote bundle, telemetry Worker and release
metadata are in order." (`REMOTE_BUNDLE_VERSION` stays 41; both PRs are
client-only). `UNIT_TEST_WORKERS=4 dori heavy rel2473j -- bun run check
fast` all ok, unit 10511 pass, 0 fail, 41 skip in 654 files;
`server/release-notes.test.ts` and `src/lib/updateNotes.test.ts` 52
pass.
- After the eleventh refresh (head `13fa0181`, merge of main
`2b620462`): `bun scripts/release-guards.ts --base v0.4.21` and `--base
origin/main` both "Release 0.4.22: remote bundle, telemetry Worker and
release metadata are in order." (`REMOTE_BUNDLE_VERSION` stays 41;
`remote-v41` is not tagged). `UNIT_TEST_WORKERS=4 dori heavy rel2473k --
bun run check fast` all ok, unit 10551 pass, 0 fail, 41 skip in 656
files; `server/release-notes.test.ts` and `src/lib/updateNotes.test.ts`
52 pass.
- After the twelfth refresh (head `3ae2133e`, merge of main `64ae5e72`):
both release guards "in order" (`--base v0.4.21` and `--base
origin/main`); `UNIT_TEST_WORKERS=4 dori heavy rel2473l -- bun run check
fast` all ok, unit 10553 pass, 0 fail, 41 skip in 656 files;
release-notes tests 52 pass.
- After the thirteenth refresh (head `aebaabbf`, merge of main
`99a6671f`): both release guards "in order" (`--base v0.4.21` and
`--base origin/main`); `UNIT_TEST_WORKERS=4 dori heavy rel2473m -- bun
run check fast` all ok, unit 10553 pass, 0 fail, 41 skip in 656 files;
release-notes tests 52 pass.
- Not run: `bun run check full` (integration and browser), left to CI;
no hands-on test of main, which is the owner's.

This is a release-metadata PR: it changes no code path. Per the release
steps, merge it after CI and the owner's go, then push `remote-v41`,
wait for its bundles, and run Release with `0.4.22`.






 [exit 0]
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.

Diff: add feedback on a specific diff line straight into the message draft

1 participant