Skip to content

docs(scripts): put back the notes the comment pass dropped (#4051) - #4085

Merged
devswha merged 1 commit into
mainfrom
docs/restore-notes-4051
Nov 17, 2026
Merged

devswha merged 1 commit into
mainfrom
docs/restore-notes-4051

Conversation

@devswha

@devswha devswha commented Nov 17, 2026

Copy link
Copy Markdown
Owner

What

#4051 (scripts/, part 5 of 5) was part of the repo-wide comment pass and merged before the owner's rule for comment-removal PRs: security notes, platform facts, measured values, third-party attribution, Rust SAFETY notes and traps that name a concrete breakage stay. This PR puts back what it dropped of those, word for word where the code is unchanged, on today's main.

How the notes were picked: a Codex adversarial review (gpt-6.2-sol, reasoning high) of the merged commit against its parent listed every deleted comment it took for a kept kind; each finding was checked against the code before the pass and today's file, and put back only when it is one of those kinds. A trap came back only when it names what the obvious change would break. Notes whose code has since moved sit on that code now; notes whose code is gone, or that are no longer true, stay out.

Comments only: no code changes. The refactor-merge kit's proof.sh checks that every file is identical once comments are removed; lint directives (which it counts as code) stay out.

Details

Lines restored per kind (approximate; a mixed block is counted under its main kind)

Kind Findings accepted Lines
Security 112 ~241
Platform fact 66 (+1 not flagged: omo 5.1.34's descriptions) ~140
Measured value 11 ~18
Trap (names a concrete breakage), incl. cut sentences 57 (+1 not flagged: sidebar-tokens' 30 s re-read would drop the rows) ~126
Non-prose, attribution, SAFETY 0 0
Total 246 525

Mixed blocks were trimmed to the kept sentences, which were reflowed where a sentence began mid-line (the loopback/fixture-isolation sentences, sheets-settled, source-scan, sidebar-filter pressClear, touch-burst's contract and boundaries, theme-first-paint's header, the checkStatuslineSwitch and checkUpdateNotice docs). The settings-rows account-PC note sat in a misplaced stack of docs at P; it now sits on accountPcList, and shell-build's index.html as the shell doc on shellIndexHtml.

Declined, rejected, skipped

  • 10 trap findings declined (design reason, describes the code, or a race with no named breakage): settings-palette-search "no screenshot comes first here to make it"; settings-rows the fetch getter/setter wrapper; settings-segmented "a pass that read none is not taken for a sound one"; sidebar-activity "A requested jump is not proof ..."; sidebar-filter "endless ones (a spinner) are not waited on"; terminal-served-font header (the property under test); terminal-sync-output "written whole before the producer can see it"; terminal-viewport "rather than racing an attach resize with pane.scroll" and "no-jump refresh must never be sent"; ui-regression "Use a new pane so this bridge never competes ...".
  • 3 rejected as covered by a restored note in the same file: setup-dialog header ("notifications recorded, none reach the desktop", restored at the stub, line 105), sidebar-declutter header (the watching device's dimmed +, restored on loneHostWatching), sidebar-heads header ("never a live herdr session", the fixture-only note at line 23 restored).
  • 7 PR-body findings left alone (sidebar-heads:11, sidebar-split:5, terminal-pinch:292, test-hc.test:16, test-hc:8, test-hc:21, test-herdr:94); 2 LOW findings left alone (settings-pages:305, ui-regression:82).
  • 0 already on main.

Security notes put back (file, a few words)

  • loopback-only / no herdr session / fixture-only: settings-pages, settings-palette-search, settings-rows, settings-segmented, sidebar-activity, sidebar-agent-tree, sidebar-background-workspaces, sidebar-branch-line, sidebar-context-ring, sidebar-declutter, sidebar-filter, sidebar-heads, sidebar-peek, sidebar-spacing, sidebar-split, sidebar-tokens (and markup that must stay text), skill-activity-browser-qa, terminal-paste-insert-demo-run, theme-file, theme-first-paint (served with the app's CSP), todo-snapshots, touch-long-press, update-browser-qa, update-notice ("nothing is installed"), usage-account-management ("only disposable credentials"), usage-regression ("no real sign-in is read or sent")
  • test-herdr: tests talk to their own herdr, HERDR_TEST_LIVE=1 escape hatch; no test runs ssh -G; an old test server with the user's agents on PATH is restarted. test-hc: no inherited HC_/HOME/XDG_; stops only its own core. test-hc.test: no real core started or stopped. ui-regression / update-browser-qa: "a herdr session of its own"
  • skill-menu-case: the demo cwd and a home that does not exist, so none of this machine's skills
  • settings-rows: sign-in fixture in IndexedDB, nothing reaches GitHub/Google/account.ovis.sh; the PC's server names the account service; the page cannot tell whether the browser is paired; Remove on every sign-in but the one in use
  • setup-dialog: notifications recorded, not shown; permission asked only on Turn on alerts; telemetry consent only when the line is wholly in view and uncovered, a covered line makes no attempt, Turn off is every copy's; opening the guide reads and sends nothing; a fresh relay offer with the PC's current code; a way picked during relay start could spend that way's pairing code; pairing code expiry and New code on a press; a store QR uses no pairing code; the PC keeps one pairing code
  • shell-build: per-PC scope, service worker and push subscription; _headers carries the PC server's policy; account service only over https, none when off; /build.json CORS as Pages answers it; the shell's and render host's policies and caching. shell-build.test: anything but scripts: true runs no scripts
  • shell-workflow-rules: a term inside || does not hold alone; workflow files GitHub loads under other spellings or symlinks; expression interpolation and env/PATH handoff; background processes past their step; where the Cloudflare secrets reach; install scripts with a cache save; what the unpack step must refuse, each with its right SHA-256
  • terminal-paste-insert-demo-run: Paste reads the clipboard from its tap alone and drops a read for another target, nothing runs until an explicit Enter; Insert takes no resize, focus or take-over; an unconfirmed insert is never sent again; no Paste/Insert at a password prompt or on a view-only connection
  • terminal-safari-ime: input refused until the probe's pong; text committed where it may not go is gone; dictation while observing refused; a lost attachment's draft goes only on Send, once; a phrase while not ready or while the ping is out goes to the draft; a pane switch delivers a pending phrase to neither pane
  • terminal-touch-burst-run: nothing sent after any boundary, no observer input, no takeover; nothing of a swipe after a boundary to either pane; an observer's swipe sends the pane nothing
  • terminal-view-replay: a replayed view answers no query and writes no clipboard. terminal-viewport: paging never reaches the program's input. terminal-switch: a hidden tab holds no attach and so no input. terminal-served-font: the font list is refused while signed out. terminal-selection-cell-bg and terminal-sync-output: the app's CSP refuses a data: URL / is bypassed for the frame generator
  • text-file-edit: a file changed on the PC is not overwritten, a read-only one says so. unconfirmed-input: nothing sent on its own after a reconnect, held text that looks like a key never stored. theme-bootstrap-build: an inline boot script is refused by script-src 'self'
  • ui-regression: no provider asked with the machine's sign-ins; automatic queue delivery is opt-in; the CSP under test is the server's own; Ctrl+V could trigger image paste against the server's clipboard; in-app alerts before the permission answer; readiness only from the new connection; held copies come back for an explicit Send now only; a typed pick waits for Confirm and does not return; an explicit hold survives navigation; local access offers no sign-out; only the sign-out request fails, health keeps the real cookie
  • usage-regression: Claude's settings answered here, never by the test server; no sign-in sent while off; a recorded account is no sign-in of Claude Code; removing one forgets a list entry, not a sign-in; only on/off is sent; only this PC's expired sign-in can sign in again, by the account's key; a watching device signs in to nothing

Validation

  • bun run check fast: passed (18,593 unit tests, typecheck, build, generated themes and types).
  • proof.sh (comments only), ready.sh (required checks, threads, CodeRabbit, main) before the merge.

🤖 Generated with Claude Code

Restores, word for word, the comments #4051 deleted that the owner's rule
keeps: security notes (test isolation from the user's herdr and core,
pairing codes, held and observe-only input, clipboard and permission
consent, sign-in and account boundaries, CSP, workflow secrets and
archive refusals), platform facts (browsers, Chromium and Playwright,
xterm and libghostty, herdr, git, Vite, Pages, Apple and the agents'
skill menus), measured values, and traps that name a concrete breakage.
Altered comments get their original wording back. Only comments change.

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

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Documentation
    • Clarified the behavior and test coverage for Settings, sidebars, terminals, themes, account management, and other interface flows.
    • Documented regression-test setup and timing considerations. No application behavior changes are reported.

The pull request adds comments across regression and test scripts to describe fixtures, test scope, timing, and expected behavior. It also adds or clarifies assertions in a small number of regression scripts. No exported or public declarations change.

Changes: Regression suite

Layer / File(s) Summary
Settings sheets and setup dialogs
scripts/settings-*, scripts/setup-dialog-demo-regression.ts, scripts/sheet-outside-tap-demo-regression.ts, scripts/sheets-settled.ts
Comments describe sheet timing, Settings history behavior, disposable fixtures, and setup-dialog scenarios. The setup-dialog script adds assertions for store QR codes and replaced pairing codes.
Shell, theme, and test infrastructure
scripts/shell-*, scripts/theme-*, scripts/test-*, scripts/typecheck.ts, scripts/source-scan.ts, scripts/todo-snapshots-demo-regression.ts
Comments document hosted-shell and workflow rules, theme build and cache checks, test isolation, shell selection, and typecheck setup.
Sidebar regression coverage
scripts/sidebar-*-demo-regression.ts
Comments document the disposable fixtures and expected sidebar activity, filtering, layout, drawer, and pointer behavior.
Terminal regression coverage
scripts/terminal-*-regression.ts, scripts/terminal-*-demo-regression.ts, scripts/terminal-*-run.ts, scripts/unconfirmed-input-demo-regression.ts
Comments describe terminal input, rendering, replay, viewport, touch, and IME scenarios. The viewport and synchronized-output scripts add or clarify assertions.
Application, skill-menu, and account regressions
scripts/skill-*, scripts/ui-regression.ts, scripts/usage-*-regression.ts, scripts/update-*-*.ts, scripts/text-file-edit-regression.ts, scripts/shortcut-exact-modifiers-demo-regression.ts, scripts/skill-activity-browser-qa.ts
Comments describe skill-menu fixtures, browser regression coverage, update flows, text editing, and usage/account scenarios. The browser QA script documents its isolated fixture setup.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Possibly related PRs

  • devswha/ovis#4051: This PR changed comments in the same scripts, and PR #4085 restores some of those notes.
Merge Risk: Minimal · up to 007e0

This PR restores explanatory comments in regression scripts and adds a few test assertions. It does not change production behavior, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "docs(scripts): put back the notes the comment pass dropped (#4051)" matches the changeset, which restores deleted comments across scripts/ files and changes no code. It is specific about th…
Description check Passed The description follows the repository template's intent. It has a 'What' section explaining the change and its rationale, and a 'Validation' section listing the checks run (bun run check fast, `pro…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs(scripts): put back the notes the comment pass dropped (#4051)" matches the changeset, which restores deleted comments across scripts/ files and changes no code. It is specific about the change and the scope, and it names the prior PR it reverts in part.

Full details: Description check

Explanation

The description follows the repository template's intent. It has a 'What' section explaining the change and its rationale, and a 'Validation' section listing the checks run (bun run check fast, proof.sh, ready.sh) with results. The template's HTML comment about CONTRIBUTING.md, changelog.d, and contract tests is not addressed, and the description does not link an issue or mention a changelog entry. Those items are not strictly required for a comment-only docs change, so the description is mostly complete.

Finishing Touches

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 73176f4 and 007e052.

Files selected for processing: 67

  • scripts/settings-page.ts
  • scripts/settings-pages-demo-regression.ts
  • scripts/settings-palette-search-demo-regression.ts
  • scripts/settings-rows-demo-regression.ts
  • scripts/settings-segmented-demo-regression.ts
  • scripts/setup-dialog-demo-regression.ts
  • scripts/sheet-outside-tap-demo-regression.ts
  • scripts/sheets-settled.ts
  • scripts/shell-build.test.ts
  • scripts/shell-build.ts
  • scripts/shell-workflow-rules.ts
  • scripts/shortcut-exact-modifiers-demo-regression.ts
  • scripts/shown-rows.ts
  • scripts/sidebar-activity-demo-regression.ts
  • scripts/sidebar-agent-tree-demo-regression.ts
  • scripts/sidebar-background-workspaces-demo-regression.ts
  • scripts/sidebar-branch-line-demo-regression.ts
  • scripts/sidebar-context-ring-demo-regression.ts
  • scripts/sidebar-declutter-demo-regression.ts
  • scripts/sidebar-filter-demo-regression.ts
  • scripts/sidebar-heads-demo-regression.ts
  • scripts/sidebar-machine-layout-demo-regression.ts
  • scripts/sidebar-peek-demo-regression.ts
  • scripts/sidebar-scrollbar-grip-demo-regression.ts
  • scripts/sidebar-spacing-demo-regression.ts
  • scripts/sidebar-split-demo-regression.ts
  • scripts/sidebar-tokens-demo-regression.ts
  • scripts/skill-activity-browser-qa.ts
  • scripts/skill-menu-case.ts
  • scripts/skill-menu-cases/claude-terminal.ts
  • scripts/skill-menu-cases/grok.ts
  • scripts/skill-menu-cases/hermes.ts
  • scripts/skill-menu-cases/omo.ts
  • scripts/skill-menu-cases/opencode-at.ts
  • scripts/skill-menu-cases/pi.ts
  • scripts/source-scan.ts
  • scripts/terminal-late-faces-regression.ts
  • scripts/terminal-paste-insert-demo-run.ts
  • scripts/terminal-pinch-regression.ts
  • scripts/terminal-release-no-watch-demo-regression.ts
  • scripts/terminal-safari-ime-regression.ts
  • scripts/terminal-selection-cell-bg-regression.ts
  • scripts/terminal-served-font-regression.ts
  • scripts/terminal-switch-regression.ts
  • scripts/terminal-switch-resize-regression.ts
  • scripts/terminal-sync-output-regression.ts
  • scripts/terminal-touch-burst-run.ts
  • scripts/terminal-view-replay-demo-regression.ts
  • scripts/terminal-viewport-regression.ts
  • scripts/test-hc.test.ts
  • scripts/test-hc.ts
  • scripts/test-herdr.ts
  • scripts/test-shell.ts
  • scripts/text-file-edit-regression.ts
  • scripts/theme-baseline.ts
  • scripts/theme-bootstrap-build.ts
  • scripts/theme-file-demo-regression.ts
  • scripts/theme-first-paint-demo-regression.ts
  • scripts/todo-snapshots-demo-regression.ts
  • scripts/touch-long-press-demo-regression.ts
  • scripts/typecheck.ts
  • scripts/ui-regression.ts
  • scripts/unconfirmed-input-demo-regression.ts
  • scripts/update-browser-qa.ts
  • scripts/update-notice-regression.ts
  • scripts/usage-account-management-regression.ts
  • scripts/usage-regression.ts

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

@devswha
devswha merged commit 3daf68f into main Nov 17, 2026
28 of 29 checks passed
@devswha
devswha deleted the docs/restore-notes-4051 branch November 17, 2026 22:30
devswha added a commit that referenced this pull request Nov 18, 2026
…y 2,000 digests (#4097)

## What

`src/lib/relay/shell.test.tsx` waits for signed pairing steps with
`untilSigned`, which gave up after 2,000 SHA-256 digests. Digests are
not time: on a loaded runner the WebCrypto work behind a signed pairing
can take longer than those turns. The Fast checks of #4085 failed that
way on `herdr-ci-ovis-parts-2` ("gave up waiting for …" at lines 571 and
778); #4085 does not touch `src/lib/relay/`.

Same fix as #4078 for `shellEnrollment.test.tsx`: the wait now also
lasts at least 3 s of real time (`process.hrtime`, which fake timers do
not move), so it never gives up sooner than before and stays under Bun's
5 s test timeout.

Test-only: no app code changes.

## Validation

- `bun run check fast`: passed (18,593 unit tests, typecheck, build,
generated themes and types).
- `bun test src/lib/relay/shell.test.tsx`: 35 pass.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant