Skip to content

fix(sidebar): draw a finish opened here as ready, as herdr's own client does - #1342

Merged
devswha merged 29 commits into
mainfrom
fix/sidebar-opened-done-ready
Oct 19, 2026
Merged

devswha merged 29 commits into
mainfrom
fix/sidebar-opened-done-ready

Conversation

@devswha

@devswha devswha commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Change

Fixes #1279.

  • Replace browser guesses based on herdr's recency counter with optional server finish_id and finish_epoch fields. Finish counters follow the final client-visible status after completion, launched-agent, OmO and GJC overrides. Recovery observations reach the tracker before refresh, and stale missing rosters cannot retire newer observations.
  • Draw an opened DONE as ready only when its actual content is presented on a visible page. Drawers, dialogs, popup viewers and visible composer suggestions block acknowledgement; hidden/inert split siblings do not. Crashed, loading, failed, held and missing content cannot count.
  • Require parsed current-terminal output. Attachment loss revokes queued parses even while the socket remains open. Every shared-attachment joiner now receives readiness before retained replay, including observers and recovering attachments. A retained renderer re-arms on resume so a quiet valid replay does not get invalidated by a recovery it missed.
  • Preserve the owner's d824de99 scrolled-away rule. Deferred/superseded jumps do not count as arrival. All geometry observers respect pending older-position navigation; short chats and restored positions can reach the end without a scroll event. A 1 px rounding allowance is shared by end detection and the jump affordance. Fractional paging keeps upward intent.
  • Bind a completed answer to a finish within its PC/pane/server epoch. A later finish needs both a different answer and a later native completion timestamp; older answers, equal/missing times and late metadata on the same answer do not count. New presentation keys receive an unconditional revalidation. A compact answer fingerprint is saved with read records and survives renderer/page lifetimes; observed higher finish IDs cannot be poisoned by a later stale lower event.
  • Require completion evidence for every agent, not only Claude/Codex. Claude end_turn, Codex final_answer, Pi/OMP/OmO/GJC stopReason: stop, OpenCode finish: stop, and Grok turn_completed expose native final-answer evidence. Informational/local-command notices after a completed answer do not start new work; real user messages and runtime wakes are not skipped.
  • Keep one localStorage key per (PC, epoch, pane), reconcile same-pane writes toward the maximum, and cap keys oldest-first without roster pruning. Saved reads survive disconnects; offline rosters hide badges and cannot acknowledge new content. Save-time cleanup runs only after a real write. A stale lower finish ID within the same epoch remains read.
  • Preserve raw status/recency for Agents ordering, including legacy counter-rollback reset. Restore tests for nonnumeric/null counters, counterless rows, removal of synthetic counters and empty-roster pruning.
  • Retain the earlier CI fixes: Settings crash injection occurs on the actual tap; unavailable conversation fixtures stay DONE until terminal output is presented. Fix the later pane-paging CI regression without changing its assertions. Keep main's contextMenuKey import from scripts/context-menu-key.ts.

Why this is safe

  • Finish identity: working, blocked and question states are never drawn ready; BG retains precedence. Reading WORKING records no finish. Native overrides and recovery cannot reuse an earlier finish solely because herdr's recency counter did not change.
  • Content identity: an independently read native completion establishes the initial answer baseline. Subsequent finish IDs must advance the completed-answer identity and native completion time. A 304 for another key, unchanged/older answer, trailing notice or late tool-result decoration cannot establish a new finish. Proof is retained with seen records. If intermediate IDs were missed, the first completion is only a baseline until another newer answer arrives; missing older proof is likewise conservative.
  • Conservative agent support: Devin, Hermes and Agy adapters do not currently supply the required completion marker. Their chat keeps the dot rather than guessing from status; Terminal can acknowledge displayed output. Older bridges lacking finish IDs/epochs also keep dots. There is no "transcript-derived status" exemption.
  • Replay order: readiness is separate from input permission. Both owners and observers get the attachment's actual readiness before replay. Recovery requires new output, while a retained renderer can also accept a ready replay from the previous bridge's replay-before-ready order.
  • Epochs and stale IDs: counters only increase inside an epoch. Therefore a saved ID greater than a delayed roster's ID safely suppresses an already superseded dot. Other epochs use separate keys. Every web-server restart or update creates a new epoch and brings read DONE dots back; this deliberate trade-off is unchanged and is stated plainly in the changelog.
  • Browser-local storage: tabs writing different panes cannot overwrite each other. Cleanup removes known departed epochs and caps oldest keys, never another tab's panes based on one roster. Storage loss can bring dots back; it is not used to infer completion.
  • No browser focus RPC, automatic input resend, coding-agent hook/settings change, generated-protocol edit, rebase or force push.

Validation

Started from exact head b08de018726e490dc51ad237fae2e0fc929bc5ca in /tmp/merge-pass/rework-1342; the main checkout stayed read-only.

Final head: c08831b4acc611419ec6be94a02c1c0719fed28f. The committed tracked diff and the new registry test match the final check report's content fingerprints; the commits did not alter the verified source.

Fail-before evidence

  • The shared registry unit tests failed for all four owner/observer and ready/recovering combinations before readiness was moved before replay.
  • A previous completed answer incorrectly acknowledged the next finish in the browser. The fixed cases cover 11 transcript source labels, a new answer and trailing informational notice; units also cover 304s, newly allocated unchanged bodies, epoch separation, persisted proof and stale lower events.
  • Removing the retained-renderer reset reproduces a timeout on a quiet replay. The test checks that the same DOM renderer was retained and blocks conversation fallback from masking terminal readiness.
  • Removing notice handling, generic-agent restrictions, previous-answer binding and new-key revalidation failed 12 unit checks. The final code restores all guards.
  • The stale-lower-ID assertion failed under exact equality and passes under the same-epoch monotonic rule.
  • The shared-attachment contract helpers now wait for positive readiness, rather than mistaking the new explicit ready: false receipt for permission to type. Existing OpenCode response expectations include its native final-answer marker.
  • Earlier rounds reproduced resync counter reuse, stale-roster reissuance, covered/unready acknowledgements, deferred jumps, hidden sibling popups and no-scroll restoration. Those regressions remain in the suite.
  • The unchanged pane-paging script reproduced CI run 39294142834 locally before its product fix; fractional, desktop and iPad cases then passed.

Checks

  • bun run check fast: passed, 4,562 tests, 0 failures, 8 existing skips, 351 files. Typecheck, production build, generated-file freshness and workflow syntax passed.
  • Changed unit files passed individually, with core-module mocks isolated to their own process. The four frontend evidence/cache/order/hook files also passed together (72 tests).
  • Isolated ui-regression.ts and gjc-status-browser-regression.ts: passed completely on the final source. GJC's six native-status scenarios passed.
  • Isolated reattach, attach-held, attach-output, API, collector, pending-input, machine-refresh, machine-relay, machine-proxy, OpenCode and Claude-session contracts: 248 passed, 0 failed across 11 files.
  • All 28 scripts/*-demo-regression.ts scripts passed on the frozen source. The registered lane passed 26/26, with BROWSER_RETRY=0 and no flaky results; the separate font-swap and keyboard-viewport scripts also passed. Results: /tmp/merge-pass/rework-1342-b08-final-demos/browser-logs/summary.json.
  • Release guards against origin/main: passed, Not a release ... nothing to check. REMOTE_BUNDLE_VERSION remains 31; the release shipping these server changes needs a newly published remote bundle.

An earlier UI run under concurrent demo load timed out selecting upload files; the final isolated run passed with no UI assertion changed. Other intermediate failures exposed stale readiness/phase expectations and a fixture mixing forced finish IDs with the demo's own status events; the tests now wait for positive readiness and keep the fixture's HTTP/event identities consistent.

All herdr-backed checks use isolated test sessions, disposable state and loopback ports. No PR merge or GitHub comment is made. The harness's nested-agent limit prevents an additional reviewer in this session; code and screenshot inspection are performed directly.

…nt does

herdr keeps DONE until one of its own clients shows the pane, so a finish
read only in the web UI kept its dot until someone visited the pane in the
TUI. Bring back the per-browser seen record #1120 removed with Quiet opened
finishes, without the setting: the pane on screen while the page is visible
is recorded at herdr's state_change_seq, and a DONE still at that counter
draws as ready in the Agents list and the workspace roll-up. Its next
finish moves the counter and draws the dot again.

The first-use seed that started the old setting quiet is gone: a PC with no
record starts with nothing opened, so no finish is hidden that was never
opened here. Restart handling, stand-in carry and storage rules are the
ones the setting had. Nothing calls pane.focus.

Fixes #1279

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 18, 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
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 37628e59-358c-4802-aa91-21d2de79fc56

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
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b29fc234-c86d-4ff8-9517-96ebc70c6a93
📥 Commits

Reviewing files that changed from the base of the PR and between 135cb15 and 6613b27.

📒 Files selected for processing: 31
  • DESIGN.md
  • changelog.d/sidebar-opened-finish-ready.md
  • docs/development.md
  • scripts/droplet-demo-regression.ts
  • scripts/render-crash-demo-regression.ts
  • scripts/sidebar-activity-demo-regression.ts
  • scripts/ui-regression.ts
  • server/api.contract.test.ts
  • server/core/status.ts
  • server/finishes.test.ts
  • server/finishes.ts
  • server/gjc-status.test.ts
  • server/machines-refresh.test.ts
  • server/machines.ts
  • server/omo-status.test.ts
  • shared/protocol.ts
  • site/demo/transport.ts
  • src/App.tsx
  • src/components/ChatView.tsx
  • src/components/MachineSidebar.tsx
  • src/components/PaneTerminal.tsx
  • src/lib/panePresentation.test.ts
  • src/lib/panePresentation.ts
  • src/lib/seenFinishes.ts
  • src/lib/sidebarActivity.hook.test.ts
  • src/lib/sidebarActivity.tsx
  • src/lib/sidebarOrder.test.ts
  • src/lib/sidebarOrder.ts
  • src/lib/snapshot.test.ts
  • src/lib/snapshot.ts
  • tsconfig.tools.json
🚧 Files skipped from review as they are similar to previous changes: 3
  • docs/development.md
  • changelog.d/sidebar-opened-finish-ready.md
  • src/lib/sidebarOrder.test.ts

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

📝 Summary

Summary by CodeRabbit

  • New Features
    • Finished agents appear ready in the Agents list after you open their pane and its content is visible and ready. A subsequent finish restores the DONE indicator.
    • Read state is saved per browser and machine, and shared across tabs in that browser.
  • Behavior Notes
    • Hidden, blocked, loading, or otherwise unavailable pane content does not mark a finish as read.
    • Read state is scoped to the machine session and is cleared when a machine is removed or its session restarts.

The server now assigns finish IDs and epochs to completed panes. The browser records a finish as seen when the selected pane is connected, visible, and presented, then displays that finish as idle. A later finish restores the DONE display.

Changes: Opened-finish acknowledgement flow

Layer / File(s) Summary
Finish identity and snapshot propagation
shared/protocol.ts, server/finishes.ts, server/core/status.ts, server/machines.ts, src/lib/snapshot.ts
Status frames and snapshots carry finish IDs and epochs. The server tracks transitions into DONE, reconciles recovery state, and updates local and remote snapshots.
Pane presentation eligibility
src/App.tsx, src/components/ChatView.tsx, src/components/PaneTerminal.tsx, src/lib/panePresentation.ts
The app tracks the presented pane. Chat and terminal content report presentation only after their readiness checks pass.
Seen records and sidebar status
src/lib/seenFinishes.ts, src/lib/sidebarActivity.tsx, src/lib/sidebarOrder.ts, src/components/MachineSidebar.tsx
The browser stores seen finish IDs by PC, epoch, and pane. The sidebar changes a matching DONE finish to idle when the pane is eligible, while background-wait status remains unchanged.
Regressions and behavior documentation
server/*test.ts, src/lib/*test.ts, scripts/*regression.ts, site/demo/transport.ts, DESIGN.md, changelog.d/sidebar-opened-finish-ready.md, docs/development.md, tsconfig.tools.json
Tests and demo transport cover finish metadata, presentation checks, seen-record behavior, and displayed status. Documentation describes finish identity, acknowledgement conditions, and storage rules.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: kilhyeonjun, haeminway1

Merge Risk: ⚪ Minimal · up to 6613b

When a finished agent pane is opened and its content is actually shown, the web sidebar now displays it as ready. A later finish shows DONE again. Read state is stored per browser and scoped to each PC and server restart. No concrete defect was found, and the worst plausible failure is an incorrectly shown or cleared status dot, so the change appears ready to merge.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Out of Scope Changes check Warning scripts/render-crash-demo-regression.ts changes the Settings crash injection and Back-navigation assertion. This test change does not implement or verify issue #1279 finish acknowledgement, READY di… Remove the unrelated render-crash-demo-regression.ts correction from this pull request, or move it to a separate pull request.
Docstring Coverage Warning Docstring coverage is 27.27% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 44 functions across 28 files. (4 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the primary sidebar behavior change: displaying an opened finish as ready.
Linked Issues check Passed Issue #1279 requires browser-local acknowledgement for a viewed DONE pane, READY display until a later finish, and no server focus action. The reviewed changes provide server-issued finish_id and `f…
Description check Passed The pull request description includes the required Change and Validation sections. It clearly explains the behavior, safety constraints, linked issue, regression coverage, contract-test coverage, and …
Full details: Linked Issues check

Explanation

Issue #1279 requires browser-local acknowledgement for a viewed DONE pane, READY display until a later finish, and no server focus action. The reviewed changes provide server-issued finish_id and finish_epoch values, exact per-PC and per-epoch storage, visible-content and overlay gates, and status mapping to READY. A new finish ID restores DONE. Sidebar, server, storage, chat, and browser regression tests cover these requirements.

Full details: Description check

Explanation

The pull request description includes the required Change and Validation sections. It clearly explains the behavior, safety constraints, linked issue, regression coverage, contract-test coverage, and validation results.

Full details: Out of Scope Changes check

Explanation

scripts/render-crash-demo-regression.ts changes the Settings crash injection and Back-navigation assertion. This test change does not implement or verify issue #1279 finish acknowledgement, READY display, finish identities, or read-state storage. The other listed protocol, storage, UI, documentation, and regression changes have a direct connection to the issue.

Resolution

Remove the unrelated render-crash-demo-regression.ts correction from this pull request, or move it to a separate pull request.

Full details: Docstring Coverage

Explanation

Docstring coverage is 27.27% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 44 functions across 28 files. (4 skipped: 4 unsupported.)

Resolution

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

✨ Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • 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

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

Ran the browser checks on a MacBook Air (macOS 27.0.1, arm64, Chrome, its own isolated test herdr session; fresh clones of this branch at 135cb15 and of main at b5cdbdb):

  • scripts/ui-regression.ts: the Agents-row check this PR changed ("delayed machines poll preserves newer streamed pane status") passes. The script then stops at "returning from Agents paints the current pane". main stops at the same step on this Mac, so that failure is not from this PR.
  • scripts/sidebar-activity-demo-regression.ts: on this Mac, main and this branch both stop at the same untouched step. Line 195 waits for the workspace menu that Shift+F10 should open, and on macOS Chrome it never opens. With that key replaced by a right-click in the local clone only (and its keyboard-focus assert dropped), all 8 steps pass, including the new ones: an opened DONE reads as ready, through a reload, until the next finish, and the workspace roll-up drops it too.
  • scripts/gjc-status-browser-regression.ts: 6/6 pass.
  • scripts/droplet-demo-regression.ts: pass.

Keep finishes unread behind the phone drawer or a zoomed pane, and drop ambiguous stand-in carry across counter advances and connection gaps. Invalidate loaded records on proven restarts and merge marks from other browser tabs. Cover the review cases with real-hook and demo regressions, including persistent raw DONE on reload.
A chat scrolled back to older turns, or showing New messages, no longer
reports its content as presented, so the answer a finish lands at the end
is not acknowledged until the reader returns to it. Adds a sidebar demo
regression that fails without the gate.
Load saved acknowledgements for display regardless of connection state, while allowing new view writes only when connected. Run retention cleanup only after an actual storage write.
Separate follow intent from endpoint presentation across deferred jumps, resize and restored positions. Observe late virtual row layout and ignore invisible retained sibling popups.
@devswha

devswha commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

# Conflicts:
#	scripts/sidebar-activity-demo-regression.ts
@devswha

devswha commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Revoke presentation across attachment recovery and queued parses. Keep older navigation in control of geometry observers, require native final answers for hook-driven DONE, and expose a jump for the same endpoint tolerance used by acknowledgement.
devswha and others added 5 commits October 20, 2026 04:57
Persist answer evidence by PC, pane and epoch; require later native completion for later finish IDs and bypass ETags for new keys. Respect informational notices, resume retained output lifetimes, and keep stale lower IDs read.
# Conflicts:
#	server/core/status.ts
Restore main attach behavior: replay first, then signal readiness only when the attachment is ready. Do not send early negative receipts that existing clients treat as attach completion. Keep unread-dot accuracy follow-up separate.
…t recovery

A readiness receipt bumped the output generation, so output parsed during recovery skipped the write callback entirely, including secret-prompt detection: a password typed then was kept as an ordinary held draft. Readiness now bumps a separate lifetime that only withholds the proof that the output is current; the parse and the masked-prompt check run as on main.
@devswha

devswha commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

Merging a500d71. After the reworks, the merge pass fixed a queued-input regression (3aab987, positive readiness again only after the replay, as on main) and a secret-input regression (a500d71, masked-prompt detection keeps running through attachment recovery). CodeRabbit did not review this head (its review allowance ran out). Merged on the required checks, the merge pass's reviews and local verification (check fast, all server contracts incl. submit/keys-lifecycle, secret-input regression). The remaining unread-dot accuracy issues are tracked in #1430, as the maintainer decided.

@devswha
devswha merged commit 69f0959 into main Oct 19, 2026
17 checks passed
@devswha
devswha deleted the fix/sidebar-opened-done-ready branch October 19, 2026 21:03
devswha added a commit that referenced this pull request Oct 19, 2026
…n scroll input

The 48 px follow allowance alone changed nothing: #1342's branch turns any upward move over 1 px while following into reading intent first. A growing composer causes such a move without any input. Upward moves within 500 ms of wheel, touch, pointer or key input in the transcript still count from the first pixel (#1342's rule, covered by the near-end sidebar case); others keep following within 48 px. The end presentation stays exact in measureEnd.
devswha added a commit that referenced this pull request Oct 19, 2026
…ranscript (#1431)

## Change

Fixes the main CI failure after #1342 (run 39324428972):
`scripts/composer-fit-demo-regression.ts` timed out waiting for the chat
to stay at the bottom while a multiline draft grows the composer (twice
in CI, and 5/5 locally on main 69f0959; f736a9c, just before #1342,
passes all 25 cases).

#1342 added a branch to `ChatView.onScroll` that turns any upward move
over 1 px while following into reading intent, so a near-end wheel of 20
px stops following (the sidebar's near-end case relies on that). A
growing composer shrinks the transcript viewport and causes such an
upward move before the bottom correction lands, without any input, so
the chat stopped following and stayed above the end.

Now an upward move counts as reading from the first pixel only within
500 ms of the reader's own scroll input in the transcript (wheel, touch,
pointer, keys); otherwise the follow intent keeps main's 48 px
allowance. The end presentation the unread dot relies on is still
measured exactly (`measureEnd`, 1 px), so a finish counts as seen only
once its end is on screen.

The first commit (48 px for the follow assignment alone) was a no-op, as
the review found: the branch above decided first.

## Validation

- `bun scripts/composer-fit-demo-regression.ts`: 25 PASS, three runs in
a row (main and the first commit: 0/3).
- `bun scripts/sidebar-activity-demo-regression.ts`: 41 PASS, including
near-end (a 20 px wheel shows New messages).
- `HERDR_TEST_MODE=unit bun test src/lib/panePresentation.test.ts
src/lib/sidebarActivity.hook.test.ts src/lib/chatScrollMemory.test.ts
src/conventions.test.ts`: 46 pass.

---------

Co-authored-by: devswha <[email protected]>
devswha added a commit that referenced this pull request Oct 20, 2026
…1463)

## Change

A finish read in one browser is now read in every browser of the same
server. Until now the DONE
dot's read record (#1342) lived in each browser's localStorage, so
opening a finished agent on the
phone left its dot lit on the desktop, and the other way around. Pins
already sync through the
server (`/api/preferences`); read finishes now do the same.

- `shared/seen.ts`: the record `{ pc, epoch, pane, id, answer? }`, its
validation and the merge
rule the browser already used (greatest finish ID per `(PC, epoch,
pane)`; an equal ID only gains
  a missing answer fingerprint).
- `server/seen.ts`: `SeenStore` keeps the records in
`<stateDir>/seen.json` (500, oldest first
out, written through a temp file like `preferences.json`). `GET
/api/seen` lists them,
`POST /api/seen` records one. A watching device's POST is refused by the
existing read-only
  gate in `index.ts`.
- `/api/machines/events` carries a new `seen` event: every record when
the stream opens, then
  each change.
- Client: `useSidebarActivityState` sends each presented finish once per
page (again with its
answer fingerprint once chat has it, and again after a failed send). A
received `seen` event is
written into localStorage through the same max-finish rule, so it can
mark a finish read but
  never bring a dot back. *When* a finish counts as read is unchanged.
- An older server without the route (404) and a watching device (403)
keep the record local, as
  before. The demo transport answers the route.

herdr's own TUI still keeps its own record: herdr can mark a pane seen
only through `pane.focus`,
which moves the TUI's focus (#996). The accuracy follow-ups in #1430 are
separate and not touched
here.

Design follows the shared pins (`/api/preferences` + the `preferences`
event) rather than adding a
new transport. DESIGN.md's read-state entry is updated; changelog
fragment
`changelog.d/shared-read-finishes.md`.

This adds an HTTP route and an SSE event type, so it waits for a real
CodeRabbit review.

## Validation

- `bun run check fast`: workflow syntax, generated files, typecheck,
build and unit tests pass
  (5,080 unit tests pass, 0 fail, 8 skipped).
- New `server/seen.test.ts`: merge rule, cap, damaged file, GET/POST
validation, and the events
  stream (all records on connect, then each change).
- `server/device-access.contract.test.ts`: a watching device can GET
`/api/seen` and its POST is
  refused with `read_only`.
- `src/lib/sidebarActivity.hook.test.ts`: a presented finish is sent
once and again after a
failure; a received record draws the pane ready and a lower or
other-epoch record changes
  nothing.
- Browser check against an isolated herdr session and server, three
headless Chromium contexts
(separate storage): with an agent DONE in both A and B, A opens the pane
(POST 200, `seen.json`
holds it), and B's dot clears while B never opens the pane; a browser C
opened afterwards starts
with it read; the agent's next finish is DONE again everywhere. No page
errors. (Scratch script,
  not committed.)

---------

Co-authored-by: devswha <[email protected]>
@devswha devswha mentioned this pull request Oct 22, 2026
devswha added a commit that referenced this pull request Oct 22, 2026
## Change

Release 0.4.13: everything merged since 0.4.12 (136 commits, 109
changelog entries). Metadata only; no code changes in this PR.

Left out of this release on purpose (still open): #1542, #1597, #1598,
#1579, and the outside contributors' PRs not yet reviewed or held (#1427
#1442 #1516 #1520 #1521 #1527 #1528 #1530 #1540 #1560 #1629 #1632
#1634).

### Metadata
- `package.json` and `herdr-plugin.toml`: 0.4.13.
- CHANGELOG: 87 `changelog.d/` fragments folded into `[0.4.13] -
2026-10-22` by `scripts/changelog-fold.ts`, with `by @login` credits on
the 36 links of outside contributors' PRs; `changelog.d/` holds only
README.md. Docs/test-only PRs without a fragment (#1395-#1398, #1439,
#1440) are not listed, as before.
- `release-summaries.json`: 0.4.13 in en/ko/ja/zh (8 new, 6 improved, 8
fixed; equal in every language, each <= 90 chars). The first line tells
that the app is now called Ovis (#1454) and installs and updates as
before.
- `REMOTE_BUNDLE_VERSION` 31 -> 32: `server/` and `shared/` changed
since remote-v31.
- Telemetry: `telemetry/worker.ts` and `shared/telemetry.ts` are
unchanged since the recorded deploy, so no Worker redeploy.

### After merge
1. Push `remote-v32` on the merge commit and wait for **Remote PC
bundles** to publish it.
2. Merge nothing touching `server/`, `shared/`, `bun.lock` or `patches/`
until the Release run is done.
3. `gh workflow run release.yml --ref main -f version=0.4.13`.

## Validation
- `bun scripts/release-guards.ts`: "Release 0.4.13: remote bundle,
telemetry Worker and release metadata are in order."
- `bun scripts/release-notes.ts 0.4.13` renders the three English lists
and the folded changelog.

<details><summary>Changelog (0.4.13)</summary>


### Added
- Claude Code, grok and Antigravity messages in Chat offer Rewind in
terminal: it sends nothing,
preserves your draft and opens the pane's terminal with a hint to run
the agent's own `/rewind`.
Chat follows the native conversation when the agent records its new
branch.
  ([#1500](#1500))
- Chat sends wait while Claude Code's rewind dialog is open in the
terminal, so a message cannot
  land in the dialog's own text field.
  ([#1500](#1500))
- Sending a bare `/goal` to Claude Code from Chat now shows its goal
status (the condition and how
long it has run, or that no goal is set) in a card with Close, instead
of leaving the dialog in
  the terminal.
  ([#1450](#1450))
- Command Code (`cmd`) agent panes now show their conversation in the
web UI: transcript
resolution from `~/.commandcode/projects/`, `/tree` branch projection,
model and context
window from Command Code's catalog, permission prompts, and skill
discovery.
([#1399](#1399) by
@diegolhambi)
- An ordinary command sent from Chat says what became of it under its
bubble, from evidence only:
accepted, waiting for your answer (with a way to the card), done with
what showed it, runs in
the terminal (with Open Terminal), or no result seen. A command the
agent keeps no transcript
  turn for still shows its sent row. A terminal screen that
changed after the send folds under the chip as an unconfirmed preview,
never proof that the
command finished. Terminal-only commands instead leave one quiet row
with Ran in terminal and
Open Terminal, without outcome chips or unconfirmed previews. Hermes
informational result cards
  keep showing what the agent printed.
  ([#1450](#1450))
- Settings → Terminal → Follow herdr's focus: when herdr moves to
another pane (a click in its
window, `herdr tab focus`, a script), this device opens that pane too.
Off by default, and set per
  device, so a phone open on another pane stays there.
  ([#1432](#1432))
- Hermes `/help`, `/status`, `/version`, `/profile` and `/reload-skills`
sent from Chat show what
Hermes printed in a card closed with Dismiss, which sends nothing to the
pane.
  ([#1450](#1450))
- Chat lists the commands and skills an OpenCode v2 pane's own
background service reports for its
folder, refreshed when they change, and settles a command it sent from
that session's own events.
The service is only read, never started, and only when it is the process
its service.json names.
  ([#1489](#1489))
- An `@skill` sent from Chat to OpenCode v2, at once or queued, is typed
through OpenCode's own
autocomplete so the skill is attached; when the row does not show, the
message says the skill
  went as plain text and points to the terminal.
  ([#1489](#1489))
- An OpenCode 1.x question is a card in Chat with each option and its
description, answered from
  the card.
  ([#1489](#1489))
- Chat lists a Codex pane's skills as the running Codex daemon of that
pane's own Codex home reports
them (Codex 0.157 or later; on Linux, or when the server's Codex home is
set), and a gjc pane's
skills as the SDK broker it is bound to reports them, asked through the
gjc CLI in the background.
The daemon and the broker are never started for this; without one, the
skills read from disk stay.
  ([#1489](#1489))
- New workspace and New tab start an agent with its model, effort and
first message where the
agent's command line takes them (Claude Code and Codex: `--model` and
the effort level; Codex also
takes the message as its own argument, behind `--` so a message like
`logout` is never a command).
For Claude Code and every other agent the message is queued on the PC as
the pane's first pending
message and sent once when the agent is ready, through the page that
started it; it shows as a
pending message that can be discarded or sent now. If that page
disconnects, reloads or leaves the tab
first, the message is held, never sent on its own, until someone sends
it now or discards it. A message the PC
could not queue, or one an older PC ignores, stays in the new tab's
message box and the dialog says
so. Pending first messages are kept in memory: restarting the web UI's
server drops them. A Codex
message with a tab or a line break is sent as the first message rather
than on its command line,
and the PC refuses launch arguments with control characters, an unknown
effort level or a model
  that is not one word. Under the message, the agent's skills in the
folder are listed before it runs, each a chip that puts the skill as the
agent types it into the
message (`$name`, `/name`, or `@name` for OpenCode 2). A first message
to OpenCode attaches its
`@skill` as any Chat send does; before OpenCode has a session nothing
tells its version, so the `@`
  is sent as the plain text it is.
In a desktop window the chat's composer can show a New tab with an
agent… button that opens the
dialog on the pane's workspace; it is off until turned on in Settings →
Chat → Composer (New tab
  button), and the tab menu opens the dialog either way.
  ([#1512](#1512))
- omp's `/handoff` runs from Chat, with or without focus instructions:
while omp writes the
handoff document, Chat shows a card that cancels it, and afterwards Chat
stays on the same
  conversation, which omp compacts in place.
  ([#1450](#1450))
- omp's model picker shows in the chat as a card, as Claude Code's,
Codex's and OmO's lists do: pick
a model and it is picked for the session, the model in use named on the
card. `/model` sent from
an omp chat opens it: the chat sends it as `/switch`, because omp's own
`/model` opens its role
  hub, whose picks are saved as the default for later sessions.
([#1377](#1377) by
@evanwy0223)
- OpenCode 2.0 or later: its questions are answered from the chat's
prompt card through OpenCode's
own background service instead of keystrokes, one question at a time
with Back to change an earlier
answer, and sent together after the last. Permissions, OpenCode 1 and
other prompts keep the
  existing generic fallback card and Terminal.
([#1257](#1257) by
@bardiz12)
- HTTP requests and WebSocket handshakes now carry request IDs and write
bounded completion
records in the app's state directory, so the owner can correlate a
response with its request.
  ([#1558](#1558))
- A workspace's row menu has Earlier sessions…: the sessions each agent
kept for the workspace's
folder, read from the agent's own store on the PC, newest first with the
title, the first prompt
and the time. Resume starts the agent on that session in a new tab of
the workspace; a session a
pane already shows is opened by selecting that pane instead. Picking
`/resume` in the chat's menu
opens the same list, and the terminal command's row offers it. A PC
whose bridge cannot list
  sessions yet has no such item.
  ([#1494](#1494))
- Agent rows show what herdr plugins report on a pane, such as the Quota
plugin's usage left or a
task's progress, in a small dim line under the row. They follow the
`$name` tokens of your herdr
`[ui.sidebar.agents]` rows (every token where none are set), change
live, and say a long value
whole in the tooltip and in a phone's ⋯ sheet. A line a plugin reports
for the agent now updates
  as soon as herdr says it.
  ([#1341](#1341))
- `HERDR_WEB_TAILSCALE_HTTPS_PORT` names the HTTPS port the installer
publishes the app on with
`tailscale serve`, so 443 can stay free for something else. Settings →
Phone & devices suggests
that port too. When another service already uses it, the installer stops
and says so instead of
taking another port, which would move the address an installed app
opens.
  ([#1433](#1433))

### Changed
- The chat's `/` menu lists the commands that run in the terminal apart,
last, under Terminal
commands, each with a Terminal badge, as the PC's command catalog
describes them. Pick or type
one and send it normally: once accepted, the pane's own terminal opens
over the chat, in this
browser only, while the chat stays where you were reading and the pane
stays on Chat. A head
says what ran, with Back to Chat and Keep Terminal; the header's Chat,
Ctrl/Cmd+Shift+J and a
phone's Back return too, and Escape goes to the agent. On a desktop the
message box stays under
the terminal, dimmed; on a phone the key bar takes its place. Claude
Code's panels (`/config`,
`/permissions`, `/theme` and the like) can bring the chat back by
themselves when you close them,
once Claude records it; other agents' recorded screens do once their
input row is back, and the
  rest return by hand. A Ran in terminal row's
Open Terminal shows the terminal over the chat again. Busy commands stay
queued; only an
explicit Send now opens the terminal, never automatic delivery. Refused
sends keep their draft
and note. Watch-only devices never send or open it, and /resume still
opens Earlier sessions.
Commands the agent's own menu hides are not listed, but still go when
typed by hand.
  ([#1441](#1441))
- For an OpenCode pane whose skills are `@` attachments, the `@` menu
lists them under Skills
  before the files, and picking one inserts the skill's id.
  ([#1441](#1441))
- Growing OMP and Claude Code tasks now parse appended transcript
records incrementally, reducing
repeated work when long chats refresh while preserving tool results,
notices and history resets.
Live parser state shares Codex's bounded cache; earlier responses stay
unchanged as new records arrive.
([#1561](#1561) by
@Yoonwoo-Ha)
- The app is now called Ovis across the browser, install messages and
documentation, matching
the phone apps. Existing installs, settings, plugin identifiers and
update channels stay the same.
  ([#1454](#1454))
- A question card whose screen reads keep failing now says it may be out
of date ("Not updated: the
question on screen may have changed.") until a read answers again.
Answering stays safe: the
server reads the screen again first and refuses a changed question
(#1335).
([#1360](#1360) by @Noobear)
- The Earlier sessions dialog picks the agent from the same list as the
New tab and New worktree
dialogs, each agent with its icon and the chevron spaced as the app's
other controls, instead of
  a plain select whose arrow sat at the far edge.
  ([#1573](#1573))
- A finished agent opened in one browser is read in every browser of the
same server: opening it
on the phone clears its DONE dot on the desktop too, and the other way
around.
  ([#1463](#1463))
- Remove PC has a restrained red background and border before and after
its confirmation step,
retaining visible keyboard focus and the explicit second click to remove
the registration.
([#1394](#1394) by @snowykr)
- After a terminal command sent from Chat, Codex, omp, pi, gjc, OmO,
Hermes (classic CLI), Devin,
agy and Grok bring the chat back by themselves when you close the picker
or panel it opened,
once the agent's own empty input row is back on the screen. Only the
commands each agent was
recorded doing that for count (Codex's `/permissions`, omp's
`/settings`, Grok's `/resume` and
the like); print forms, toggles, editor handoffs, Codex's `/side` and
`/btw`, OpenCode and
  anything unrecorded still return by hand.
  ([#1637](#1637))

### Fixed
- The New session and History pickers show Hermes, Grok, Antigravity,
Devin and Command Code by
  their own names instead of their lowercase ids.
  ([#1543](#1543))
- The terminal attach process and its Node host no longer inherit the
server's `HERDR_WEB_TOKEN`
environment variable; they keep the socket path and the rest of their
environment.
  ([#1562](#1562))
- Choosing Jump to latest remembers bottom-follow before the virtual
list scroll completes.
Switching to Terminal immediately after that choice and returning to
Chat no longer restores
the older reading position. This fixes explicit Jump-to-latest intent,
not arbitrary upward
  restoration on long, active or reasoning-heavy tabs.
([#1346](#1346) by
@Yoonwoo-Ha)
- Remember bottom-follow without measuring rendered rows or looking up a
turn anchor; readers away
  from the end retain the existing paragraph-and-offset restoration.
([#1346](#1346) by
@Yoonwoo-Ha)
- Selecting and copying chat text now preserves the text as shown
instead of adding Markdown
syntax. Rich-text paste and the whole-answer MD and TXT copy actions
remain available.
  ([#1409](#1409))
- Chat no longer treats a command that leaves the agent waiting in a
screen Chat cannot show as an
ordinary send. Claude Code's `/usage`, `/cost`, `/status`, `/help`,
`/memory`, `/mcp` and
`/add-dir`, Codex's `/new` and `/fork` in a repository, `/cd`, `/usage`,
`/copy` and `/side`,
and the panels, pickers, confirmations and editors of omp, gjc, OmO,
Hermes, Devin,
Antigravity, OpenCode and Command Code are now Terminal commands: sent,
they open Terminal with
Back to Chat. A value typed with a picker command, such as `/fast off`
or `/export notes.md`,
  stays an ordinary send.
  ([#1596](#1596))
- A Claude Code skill or custom command named like a built-in command
(`/compact`, say) is listed
once in the composer's command menu, as the skill Claude runs, instead
of beside the built-in.
  ([#1441](#1441))
- Reconnects and unconfirmed sends can leave a bounded browser-side
diagnostic trail on this
server, without recording messages, credentials, addresses or terminal
output.
([#1357](#1357) by
@christi4nity)
- The chat and the session history now apply one rule to Codex rollouts:
a subagent's rollout (one
naming a parent thread or an agent role), an exec run's, or one whose
ids are null or contradict
its file name is no longer read as a pane's conversation or offered to
resume, while older
rollouts without those fields still are. A rollout whose first line is
longer than the chat or
  the history reads is left out instead of read unchecked.
  ([#1592](#1592))
- Two Codex panes in one folder whose answers are short each show their
own chat again with Codex
0.163, which starts a thread in the same second as its process; before,
both said the
  conversation was unavailable about as often as not.
([#1522](#1522) by
@jiaoew1991)
- A Codex pane with only short answers still finds its chat after
another pane in the same folder
runs `/new`: a thread that pane shows a long answer of under its first
prompt, is bound to, or
  that herdr reports for it no longer leaves this pane unsure.
([#1522](#1522) by
@jiaoew1991)
- Of two Codex panes in one folder with short answers, the one started
first finds its chat too
once the other shows its own first exchange, where it said the
conversation was unavailable.
([#1522](#1522) by
@jiaoew1991)
- On a phone, a composer notice's actions (such as the `/resume`
notice's Earlier sessions, Open
Terminal and Run in Terminal) wrap onto their own line, and its dismiss
button stays visible
  instead of being cut off at the edge.
  ([#1543](#1543))
- Wrapped and multiline message drafts are sized with an out-of-flow
measurement field instead of
collapsing the live input, preserving transcript spacing and the
paragraph being read (#1337).
([#1347](#1347) by
@Yoonwoo-Ha)
- The measurement field shares the live input's Korean, Japanese and
Chinese line-breaking rules,
including Korean placeholder wrapping, so localized drafts keep their
natural height.
([#1347](#1347) by
@Yoonwoo-Ha)
- Local Herdr timeouts, machine connection failures and recoveries, and
abnormal WebSocket closes
now leave timestamped, rate-limited diagnostic records without logging
input or credentials.
([#1356](#1356) by
@christi4nity)
- The browser connection trace no longer re-posts a batch the server
refuses with a 4xx status,
resumes reporting after you sign in again on the same page, and
malformed reports can no longer
  use up the server's shared report quota.
  ([#1423](#1423))
- Pairing a device, renaming or revoking one, and the web push key and
subscriptions are now
flushed to disk before they replace the previous file, so a crash or
power cut right after the
change is much less likely to bring back a revoked device or make every
phone subscribe to
alerts again. How much survives a power cut still depends on the disk
and filesystem honouring
  the flush; on Windows the folder itself is not flushed.
  ([#1568](#1568))
- File search and path lookup no longer run a repository's fsmonitor
hook, follow Git variables
the server was started with, or wait on a Git listing that never ends: a
listing past 16 MiB
  or 3 seconds, or one cut off mid-name, falls back to the folder walk.
  ([#1570](#1570))
- **Files → Changes** no longer runs a program named `false` found on
`PATH` with Git 2.35 or
older, and reads the repository asked about even when the server was
started with
  `GIT_COMMON_DIR` set.
  ([#1570](#1570))
- Keep sidebar status updates responsive after many completed turns by
caching read finishes and
bounding their in-memory history instead of repeatedly scanning browser
storage.
  ([#1536](#1536))
- A first message from New workspace or New tab no longer waits forever
when the agent started for
it quits before the message goes: it is held for Send now or Discard.
The same happens when an
agent of the same kind that the user starts later comes up instead, and
when the page that sent it
leaves the pane while it is being typed, so the pane's other queued
messages are not stuck behind it.
On native Windows the PC sees only the pane's shell, so it cannot tell
that the agent quit: there the
  message keeps waiting until you discard it.
  ([#1532](#1532))
- GJC Chat hides internal agent-to-agent IRC messages and automatic
replies, while keeping user
  messages that quote them visible.
  ([#1535](#1535))
- GJC questions using the Nerd Font selection cursor now show their
actual choices in chat
instead of only Up, Down, Enter and Esc controls. Moving the cursor
preserves the question's
  identity and uses the current selection when answering.
([#1553](#1553) by
@Kinetic27)
- GJC chats on a busy machine give cold session lookups up to five
seconds per command and
ten seconds overall instead of timing out after two seconds per command.
Session snapshots
  retain the shorter status lookup budget; failed status lookups
  are held for 30 seconds without preventing chat reads from retrying.
([#1364](#1364) by @sskys18)
- GJC chat and status reuse their verified session binding when other
sessions write heartbeats,
instead of restarting the SDK lookup for every pane. Session changes
still require SDK validation.
  ([#1343](#1343))
- Grok keeps Chat with older sessions open and uses Terminal when the
session is uncertain.
([#1352](#1352) by
@infowolfe)
- One failed health check no longer shows herdr offline or switches a
Windows PC's panes to the
terminal lens: the header says Status unknown with the last herdr it
saw, and herdr unavailable only
  after a second failure in a row.
  ([#1581](#1581))
- A malformed, oversized or misaddressed answer from herdr now fails
only the request it answers,
with a clear error, instead of hanging until the timeout, growing the
server's memory or being
taken as another request's answer; event subscriptions report such a
frame and close.
  ([#1584](#1584))
- Hermes `/status` sent from Chat now shows its result card on the first
send in a new pane too, even
when the computer is busy. A send whose result was missed no longer
leaves every later `/status` in
that pane without a card for ten minutes. The same holds when another
device has the terminal
  scrolled up.
  ([#1543](#1543))
- Sending Hermes `/status` (or another informational command) from Chat
again now shows that send's
own result card each time, instead of "Runs in the terminal" once
earlier identical results fill
  the terminal.
  ([#1543](#1543))
- Slow API requests can return their result or timeout error instead of
losing the HTTP connection
  while bounded Herdr calls are still running.
([#1355](#1355) by
@christi4nity)
- The app can be installed behind a reverse proxy that signs in every
request (Authelia,
oauth2-proxy and the like): the browser now sends its cookies with the
manifest request.
([#1332](#1332) by
@ascandroli)
- Mouse wheel and phone swipes scroll terminal history on Windows and
other mirrored panes;
  read-only connections still only pan their local grid.
([#1446](#1446) by
@Davesaggio)
- A Codex started in a terminal shows its model and reasoning level
before the first message,
  from Codex's live footer, while the chat shows the terminal output.
([#1374](#1374) by
@evanwy0223)
- Before the first message, a model switched in the terminal shows in
the message box once the
supported agent draws it. omp still waits for its transcript to record
the model; the bridge
never runs `omp models`, which can refresh the CLI's OAuth credentials.
([#1374](#1374) by
@evanwy0223)
- A pane that runs OmO is now treated as OmO by the composer even while
herdr labels it Claude
(OmO's Claude child is running): sending a message no longer stops on a
Claude input-box draft
  refusal or tries to clear a Claude draft there.
  ([#1441](#1441))
- A multi-line message sent to an OmO pane that herdr has no agent label
for is now pasted as one
bracketed paste instead of line by line, so its first line is no longer
sent alone.
  ([#1441](#1441))
- An OmO pick list (an extension's select, such as the init-deep
advisor's "Run now / Skip this
time / Never…") shows in the chat as a card with its own options again,
instead of a "Waiting for
input" card offering only ↑, ↓, Enter and Esc. A pick list that counts
down in its title keeps
the same card while it ticks, so an answer tapped a second later is not
refused as stale.
([#1495](#1495) by
@nahwan-kim)
- An omp pane started with an absolute `--cwd` shows its chat when herdr
names no session file
and the directory herdr reports is not omp's own, such as the shell's or
a symlink's real path:
the session is still looked up in the directory herdr reports first,
then under that `--cwd`.
  ([#1594](#1594))
- A message or command sent from the chat to an omp that is still
starting no longer stays typed
in its input box: omp shows the box before it takes an Enter, so the
send waits until herdr's omp
integration reports the session (omp does so once it takes input), for
an omp started moments ago.
  ([#1475](#1475))
- A new OpenCode 2 pane offers your project and user skills as `@`
attachments before its first
session starts, using the OpenCode version the PC's install reports,
instead of listing them as
OpenCode 1 `/` commands. Once the pane has a session, that session's
version decides as before.
  ([#1543](#1543))
- Native question answers stay bound to the current pane, session and
form. Local service discovery
rejects stale or non-loopback endpoints, bypasses environment proxies,
and bounds slow requests.
([#1257](#1257) by
@bardiz12)
- Polling does not invalidate an unchanged question or turn an
acknowledged answer into an error.
A temporary service outage keeps an already displayed native card and
its unsent edits.
([#1257](#1257) by
@bardiz12)
- Back and question tabs preserve unsent edits, and multiselect
submissions include both checks
and custom text. Abandoned drafts are bounded and expire after 30
minutes.
([#1257](#1257) by
@bardiz12)
- OpenCode question cards keep edits and allow immediate retries after a
failed reply, and optional
questions can be skipped. Unrelated service metadata no longer resets a
form's progress.
  ([#1421](#1421))
- Answers sent from the message box show the translated warning when
OpenCode has not confirmed
delivery. Native service connections accept only the loopback addresses
127.0.0.1 and [::1].
  ([#1421](#1421))
- Subscription usage reads OpenCode 2's own credential store before the
`auth.json` OpenCode 1
wrote. OpenCode 2 keeps its provider sign-ins in `opencode.db` and
leaves that file standing with
the key it has since replaced, so the OpenCode card reported "Sign-in
expired" for a CLI that was
signed in and working. The store's active key answers first, and a store
without one (signed out of
OpenCode 2) shows no card; the file still answers beside OpenCode 1's
store, or with none.
([#1329](#1329) by
@krish-kant)
- `GET /api/pane/read` takes `lines` only as plain decimal digits from 0
to 4294967295 and refuses
any other value (blank, signed, fractional, exponent or too large) with
400 `invalid_lines`
instead of passing it to herdr; a blank value is no longer read as zero.
Every count herdr
  takes still goes through unchanged.
  ([#1571](#1571))
- A pasted or dropped PNG, JPEG, GIF or WebP image is saved with the
extension of what its bytes
are, not the one its file name suggests, and a file that only claims to
be one of those images
is refused with its reason instead of being saved for the agent to read.
  ([#1599](#1599))
- The phone header's Chat/Terminal switch keeps clear of the bar's top
and bottom edges in both
densities: its options take the density's segmented height, so its track
is 34px tall in the 52px bar
and 32px in the compact density's 46px bar, which it used to nearly
touch.
([#1519](#1519) by
@adnankassem)
- On a phone, the header's Chat/Terminal switch centers its icons and no
longer touches the header's
bottom rule (in compact density it was as tall as the bar). The buttons
still take a full
  44 px tap.
([#1367](#1367) by @Noobear)
- A pi chat now shows its context ring for models pi lists in its
commandcode cache or model
  store, not only for providers defined in `models.json`.
([#1391](#1391) by
@diegolhambi)
- Model and effort pickers no longer confirm a stale choice when the
agent stops waiting for the
  answer during the final screen read.
  ([#1435](#1435))
- A Portal that stops on its own after its address was up is started
again once, on the same relay
and address, and Settings → Phone & devices says Recovering… meanwhile;
a second stop shows the
error with Portal's output instead of leaving the address down without a
word or restarting it
  again.
  ([#1587](#1587))
- When the server cannot save a shared setting or pin, Settings now says
the change is not on the
server yet, that reloading or closing the page can undo it, and offers
Retry. After three failed
saves in a row the browser resends less often (after a minute, then up
to every five minutes)
until you press Retry or the connection reopens, and edits made
meanwhile are kept. A late resend
of a refused change no longer overwrites a newer value another device
saved meanwhile, while a
setting you pick again after the refusal still wins. While the
connection is lost it waits for it
to come back instead of resending, and a connection the browser gives up
on (for example a proxy
error while the server restarts) is opened again, so alerts and other
devices' changes no longer
  stop arriving until a reload.
  ([#1595](#1595))
- A damaged or unreadable shared preferences or read-finish file is no
longer lost to the next
change. Reading never touches it; the first change moves the damaged
file, byte for byte, to
`preferences.json.bad` or `seen.json.bad` (private to you, the latest
damaged copy only), a file
repaired by hand while the server runs is kept with the change added to
it, and a file that
cannot be read or set aside is not written over, so the change fails
instead.
  ([#1564](#1564))
- A server or remote bridge that crashed no longer blocks its restart
when its old process number
now belongs to another program: startup locks and the bridge registry
record the owner's start
  identity, and that other program is never signalled.
  ([#1567](#1567))
- Attaching to a terminal once again waits for input to be ready before
signalling completion,
preserving queued keys, clicks and text and the order of Stop followed
by a message.
  ([#1342](#1342))
- Opening a finished agent's terminal while its connection to herdr is
being restored no longer
clears its DONE dot from the screen left over from before: it clears
once the terminal shows
  current output.
  ([#1472](#1472))
- An oversized or unreadable answer from another PC's bridge is now
refused at a fixed size
instead of being held whole in memory: connecting, refreshing and the PC
proxy stop reading it,
report a short error in the user's language that repeats none of it, and
a watching device
  never gets a prompt that could not be redacted.
  ([#1588](#1588))
- Opening a pane in another tab or on a phone, or reconnecting, no
longer copies again to the
clipboard what a program in the pane copied before; its new copies still
reach the clipboard.
  ([#1600](#1600))
- Update and restart, and the header's Update, install exactly the
release they offered: a release
published in the meantime installs nothing and is shown to be checked
first, and a server whose
supervisor cannot install by revision asks for a restart instead of
installing.
  ([#1590](#1590))
- In macOS Safari, Backspace in a terminal no longer skips a press after
deleting the last letter of
a Korean syllable: 한 then four Backspaces now also deletes the character
before it.
  ([#1363](#1363))
- Chat shows only the current agent session's command results: after an
agent restarts in the same
pane, the earlier session's commands no longer appear. A `/clear`,
`/new` or resume sent from Chat
keeps its own row in the conversation it starts, without claiming that
it finished. Commands sent
before an agent's first reply stay with that agent while it keeps
running, also through a moment
in the background (Ctrl+Z on Linux and macOS); once a different agent
takes over the pane, they
are hidden, even if Chat was not open when it happened. A command sent
to a restarted agent while
the pane still shows the previous session stays once the agent's own
session appears within a
minute, unless Chat started another session after it. Within that
minute, a session change typed
in the terminal of an agent that resumed the same session can still keep
such a command. Where
Chat cannot find the agent's program at all (native Windows, or an agent
started under another
program name), such a command stays with the session that the same agent
starts in the same
terminal; a later session, another agent or terminal still hides it.
Outside Linux, an agent
restarted under the same process number cannot be told apart from the
one before it.
  ([#1543](#1543))
- SSH PC management controls now stay within narrow sidebars: the rename
field and action buttons
  reflow in place, and long labels wrap without clipping.
([#1392](#1392) by @snowykr)
- Opening a finished pane clears its DONE dot only after its answer or
terminal output is
actually visible. Covered panes, loading or failed chats, and terminal
reconnections keep
  unread finishes marked.
  ([#1342](#1342))
- Reading older chat keeps the finish unread. Jumping to the latest
answer clears it only
after the jump arrives; small scrolls above the end show the way back.
Resizing and restoring
  a short chat work without an extra scroll.
  ([#1342](#1342))
- An older answer cannot clear a newer finish. Agents whose chat cannot
prove completion keep
the dot conservatively; opening their Terminal view can acknowledge the
output.
  ([#1342](#1342))
- Read finishes stay read across pane switches and browser tabs on the
same device. Every
web-server restart or update brings read DONE dots back; read records
are not carried across
  server restarts.
  ([#1342](#1342))
- The sidebar's PC control buttons are the standard control height
again, Rename shares the name
field's row in a wide sidebar, Remove PC dims like its neighbours while
a rename or disconnect
runs, and danger buttons keep their red tint on hover everywhere in the
app.
  ([#1422](#1422))
- Documents opened through copied read links keep their own scroll area
at desktop widths,
rather than expanding beyond the window and leaving scrolling to the
page.
([#1586](#1586) by
@Kinetic27)
- A Markdown table whose separator has a one- or two-dash cell
(`|---|:-:|`) shows as a table in the
  chat, as on GitHub, instead of as its pipe-separated source.
([#1361](#1361) by @Noobear)
- Going back to the chat while a terminal command's screen is still open
(Claude Code's `/btw`
answer, a picker left up) no longer lets the next message from the
message box be typed into
that screen and do nothing, for Claude Code and the agents above (not
OpenCode): the composer
says the command is still open in the terminal, with Show terminal, and
Send (or a queued
message's Send now) keeps the message until the screen closes or you
choose Send anyway.
  ([#1637](#1637))
- Opening the app no longer flashes the dark amber default before your
saved theme: the saved light,
dark or single-mode theme (Dracula on the light side stays dark),
including System and older saved
palettes, is drawn from the first frame, and the installed app's title
bar color matches it at once.
  ([#1569](#1569))
- Settings → Updates no longer tells you to switch to main when the
server was started from an
installed update's folder instead of its source checkout: it now says to
restart the app from
  the source checkout, which is what lets updates run again.
  ([#1417](#1417))
- Typing or composing text in a wide mirrored terminal no longer pulls
the view sideways.
Windows terminal wheel panning stays in place when output arrives, and
tapping the terminal
  without scrolling no longer changes shared history.
  ([#1534](#1534))
- Loading the page no longer sends about 33 requests per workspace
folder to find its project icon:
each folder is asked once (`GET /api/fs/favicon`), and a folder without
an icon is an answer, not
a 404. A reverse proxy with a rate limit no longer answers 429 to the
burst, and the browser
console no longer fills with red 404 lines on every load. A 429 is no
longer remembered as "no
  icon" either: the folder is asked again when its row next appears.
  ([#1339](#1339))
- A dragged workspace order no longer jumps back while its moves are
still landing: a roster read
before the move, a cached roster or another PC's update cannot undo it,
and the first roster
read after the move (another browser's later order included) replaces
it. A remote PC does this
once its bridge is updated to the next release; until then it keeps the
earlier behaviour.
  ([#1593](#1593))

### Maintenance
- Composer geometry regressions freeze the demo conversation while
keeping it idle, so turn
completion cannot change the transcript during measurements on phone and
desktop.
([#1347](#1347) by
@Yoonwoo-Ha)
- Settings and PWA draft checks target the visible input explicitly;
locale regressions cover
  native draft and placeholder heights on phone and desktop.
([#1347](#1347) by
@Yoonwoo-Ha)


</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
devswha added a commit that referenced this pull request Oct 28, 2026
…in (#2136)

## Change

Part of #1430 (DONE dot accuracy follow-ups from #1342): fixes item 4,
and maps every other item to where main already stands.

Codex dates the last assistant turn again when its `task_complete` lands
(`server/codex.ts` sets `end_ts`), and the answer fingerprint the DONE
dot is proved with includes that time. If the chat read finish N once
before the pane counted as presented (scrolled away from the end,
covered by a sheet, a retained hidden renderer) and `task_complete` then
moved `end_ts`, every later read of the same finish compared the whole
fingerprint and was refused. The dot stayed until the next finish.

- `src/lib/panePresentation.ts` `ConversationFinishEvidence.accept`: for
the same finish id, an answer whose proof identity (source, history,
turn start and final text) equals the known answer still proves the
finish when only its completion time moved, provided the turn has a
native start time. The next-finish comparison already ignored the time
this way. Without a start time (`ts: null`, e.g. OpenCode without
`time.created`) two replies with the same text are indistinguishable, so
only an exact match counts there, as before. A different answer for the
same finish is still refused.
- `src/lib/panePresentation.test.ts`: a Codex answer accepted at
`end_ts` 00:00:05 and read again at 00:00:06 is still accepted for
finish 3, and another answer is not; with `ts: null`, an older reply
with the same text is not taken for the current finish.
- `changelog.d/done-dot-codex-late-completion.md`.

## Where the rest of #1430 stands on main

| Item | State |
| --- | --- |
| 1. Recovery joiner acknowledges the previous answer | Fixed by #1472
(`output-recovering` frame) |
| 2. A fresh response carrying the previous answer clears a newer finish
with no baseline | Not changed: this is the trade-off #1802 kept ("a
fresh read whose transcript lags behind herdr can bind an earlier final
answer to the newest finish"). While the agent works, a final answer on
screen can be the previous turn's or this turn's, written just before
herdr reports done. Refusing it would bring back a dot that never
clears. |
| 3. Dot never clears after skipped finishes / a Terminal read | Fixed
by #1802 (#1693) |
| 4. Codex completion metadata invalidates the proof | **Fixed here** |
| 5. Agents without native completion evidence keep DONE in Chat |
Documented, conservative; unchanged |
| Stale readiness comment, demo fakes the old order | Fixed by #1472 |
| Page-wide mutation observer | Gone: the observer now watches only the
chat scroller (`ChatView.tsx`) |

Still open from the smaller notes (filed as a follow-up, not changed
here): `Finishes.status()` stats the herdr socket on every status frame;
`clientSnapshot()` reads again without a bound when the epoch changes
mid-read; the phone's masked password field hides during recovery; no
browser regression for the masked-prompt detection during recovery.

## Verification

- `bun test src/lib/panePresentation.test.ts`: the new case fails with
only `panePresentation.ts` at main ("Expected: true, Received: false" on
the second read) and passes with the change.
- `src/lib/panePresentation.test.ts`,
`src/lib/sidebarActivity.hook.test.ts`, `src/lib/seenFinishes.test.ts`:
74 pass, 0 fail.
- The `ts: null` case fails on the first commit's implementation (21
pass, 1 fail) and passes on the second.
- `src/lib/panePresentation.test.ts`,
`src/lib/sidebarActivity.hook.test.ts`, `src/lib/seenFinishes.test.ts`
at the head: 75 pass, 0 fail.
- `dori heavy … bun run check run --build bun
scripts/sidebar-activity-demo-regression.ts`: 44 PASS, exit 0.
- `bun run check fast`: workflow syntax, generated files, typecheck,
build ok; unit tests 7,874 pass, 0 fail at the head (bbe4100).

## Reviews

- omo-native-code-reviewer: APPROVE, no CRITICAL/HIGH/MEDIUM. Its LOW-1
(`ts: null`) is fixed in the second commit; LOW-2 (the remembered answer
keeps the pre-`task_complete` fingerprint) was checked to leave the next
finish correct; LOW-3 is style.
- Codex Sol 6.1 Fast xhigh: BLOCK on the first commit with one MEDIUM
(the same `ts: null` case, reproduced); PASS on the second commit.
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.

Sidebar: opening a finished pane in the web UI should clear its DONE, as the TUI does

1 participant