Skip to content

fix(connect): say when the SSH tab's list is withheld from this window - #3517

Merged
devswha merged 3 commits into
mainfrom
fix/ssh-tab-refused-notice
Nov 11, 2026
Merged

devswha merged 3 commits into
mainfrom
fix/ssh-tab-refused-notice

Conversation

@devswha

@devswha devswha commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

What

Add a connection → SSH lists the PCs this PC knows: its ssh config hosts and its Tailscale login's PCs. The server keeps that list (owner_only) from an open LAN window, a Portal visitor and a device on the relay. Of those, only the open LAN window shows the SSH tab: the relay shell and a Portal visitor (read only) show no SSH tab (ConnectPhoneDialog.tsx, sshOffered). There the tab showed the address field alone, with no word, which reads as a PC that knows no other PC.

Change

  • SshTab (src/components/ConnectPhoneDialog.tsx): when the list is refused as owner_only, one hint line above the field says where the list can be seen: "See the PCs this PC knows on this PC itself, or from a device paired with it directly." These are the server's own words for that refusal (server/dispatch.ts). Translated in en, ko, ja and zh.
  • The line no longer tells you to type an address, because an open LAN window cannot add a PC either (POST /api/machines/setup answers 403 for it).
  • A watching device (read_only) adds no PC, so it is shown nothing new. A list that fails for any other reason keeps its own "could not be read" + Try again.
  • No server change: who gets the list is as before. docs/remote-pcs.md and the changelog fragment name the open LAN window as the one window that shows the line.

The owner OK'd the line on 2026-11-11, after seeing a before/after picture of it.

Merge pass findings on f4b25c4, and how each was resolved

  • HIGH (the line cannot show where the PR said, on the relay or for a Portal visitor): the claim is narrowed to what the code does. The changelog, docs and the component comment now name only the open LAN window. The tab rule itself is unchanged.
  • MEDIUM (in the open LAN window the line gave an instruction the server refuses): the line now says where the list can be seen and asks nothing that window cannot do.
  • LOW (ko and zh said "saved SSH connections"): the new strings say "the PCs this PC knows" in every language. The LOW about the line sitting under herdr-saved rows is not changed here.

Validation

  • bun run check fast at cd91118, with origin/main merged in (ed8c329): green (typecheck, build, unit tests).
  • src/components/ConnectPhoneDialog.test.tsx: the test for owner_only (the line shown, with the server's words), read_only (no line) and an answered list (no line) failed on the old wording first. It passes with this change, together with the i18n, changelog and conventions tests (143 pass).
  • Skipped: browser regressions (no shared component listed in AGENTS.md is touched), check full, and a look at the line in an open LAN window by hand.

The server keeps the SSH tab's list (this PC's ssh config hosts and Tailscale
PCs) from a device on the relay, a Portal visitor and an open LAN window
(owner_only). The tab then showed the address field alone with no word, which
in the native app read as a PC that knows no other PC, or as a failure.

One line above the field now says this connection does not list them and to
type the PC's address. A watching device (read_only), which adds no PC, is
shown nothing new.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • When a connection does not provide a list of known PCs, a notice explains that you can enter a PC address to add it. This notice appears for the applicable access restriction; other restrictions do not display it.
  • Documentation
    • Updated remote PC guidance to clarify when the notice appears and how to add a PC by address.

The SSH tab now shows an address-entry hint when an owner_only refusal withholds the known-PC list. read_only refusals still do not show the hint. Tests, translations, documentation, and a changelog entry cover the change.

Changes: SSH candidate-list guidance

Layer / File(s) Summary
Show guidance for withheld candidate lists
src/components/ConnectPhoneDialog.tsx, src/components/ConnectPhoneDialog.test.tsx, src/lib/i18n/devices.*.ts, docs/remote-pcs.md, changelog.d/ssh-tab-withheld-list-notice.md
The SSH tab displays guidance for owner_only refusals while keeping address entry available. Tests check the hint, the lack of a retry action, and typed-address submission. Japanese, Korean, and Simplified Chinese translations and supporting documentation describe the notice.

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

Change: Bug fix

Possibly related PRs

  • devswha/ovis#3258: Introduced the SSH tab and SSH-candidates endpoint, including owner_only refusals.
Merge Risk: Minimal · up to f4b25

The owner-only connection now explains how to add a PC by address, while read-only connections retain their existing behavior. No identified issue prevents merging after normal checks.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly identifies the SSH tab’s withheld-list notice, which is the main change.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Description check Passed The description includes the required Change and Validation sections. It explains the behavior, affected scenarios, tests run and results, skipped checks, and the reason for the scope. No server or HT…
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. 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 1 functions across 5 files. (2 skipped: 2 unsupported.)

Full details: Description check

Explanation

The description includes the required Change and Validation sections. It explains the behavior, affected scenarios, tests run and results, skipped checks, and the reason for the scope. No server or HTTP/WS implementation change is reported, so contract-test coverage is not required.

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6fa11f4 and f4b25c4.

Files selected for processing: 7

  • changelog.d/ssh-tab-withheld-list-notice.md
  • docs/remote-pcs.md
  • src/components/ConnectPhoneDialog.test.tsx
  • src/components/ConnectPhoneDialog.tsx
  • src/lib/i18n/devices.ja.ts
  • src/lib/i18n/devices.ko.ts
  • src/lib/i18n/devices.zh.ts

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

@devswha

devswha commented Nov 10, 2026

Copy link
Copy Markdown
Owner Author

Merge pass: parked at f4b25c4. Both reviewers (a fresh Claude agent and Codex Terra through the team proxy) found the same thing, and I confirmed it in the code.

HIGH: the new line cannot show in the cases the PR names. SshTab mounts only when sshOffered = onAddPc !== null && !readOnly && !inRelayShell() (src/components/ConnectPhoneDialog.tsx:133, unchanged here).

  • The native app opens a relay PC in the hosted shell, where inRelayShell() is true: no SSH tab, so no hint.
  • A Portal visitor is readOnly (SettingsDialog.tsx:1300): no SSH tab either.
  • Only an open LAN window reaches the line. The changelog fragment, docs/remote-pcs.md and the component comment say the relay and Portal windows see it. The new test mounts SshTab directly, past that rule.

MEDIUM: in the open LAN window the line gives an instruction the server refuses. It says to type the address, and POST /api/machines/setup then answers 403 for via: "open" (server/machine-owner-guard.test.ts:25,32).

LOW: the line can sit under rows of PCs saved in herdr and contradict them; the ko and zh strings say "saved SSH connections" where en and ja say the PCs this PC knows.

What is needed is a decision, not a patch on top: either find where the empty tab was really seen in the native app and fix that, offer the SSH tab on the relay (a change to the tab rule, tested through ConnectPhoneDialog), or narrow the claim to what the code does and reword the open-LAN line. Nothing was pushed to this branch.

@devswha devswha mentioned this pull request Nov 10, 2026
devswha added a commit that referenced this pull request Nov 10, 2026
Release PR for 0.5.2 (docs/development.md#releasing).

## What it does

- `package.json` and `herdr-plugin.toml`: 0.5.1 → 0.5.2.
- `CHANGELOG.md`: `bun scripts/changelog-fold.ts 0.5.2` moved the
Unreleased notes and 83 fragments under `## [0.5.2] - 2026-11-10` and
deleted the fragments; `by @login` added for the 13 PRs from outside
contributors.
- `release-summaries.json`: 0.5.2 in en, ko, ja and zh, five lines each
under new, improved and fixed.
- `shared/machines.ts`: `REMOTE_BUNDLE_VERSION` 43 → 44, as the release
guards asked (the remote bundle's inputs changed since `remote-v43`).

## Not in this release

- The production relay stays `off`. Turning it to `grace` waits for the
production account service to issue relay passes
(`account.ovis.sh/v1/relay-pass/keys` answers 404 today).
- Parked PRs (#3517, #3442, #3472, #3289, #3281, #3338 to #3341 and the
conflicting ones) move to 0.5.3.

## After the merge

1. Push the tag `remote-v44` on the merged commit and wait for **Remote
PC bundles** to publish it.
2. Merge nothing that touches `server/`, `shared/`, `bun.lock` or
`patches/` until the Release run is done.
3. `gh workflow run release.yml --ref main -f version=0.5.2`.

## Validation

- `bun scripts/release-guards.ts`: "Release 0.5.2: remote bundle,
telemetry Worker and release metadata are in order."
- `bun run check fast`: pass (unit 14394 pass, 0 fail).
- Skipped: `bun run check full`, browser regressions (this PR's CI and
the Release run cover them).

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

---------

Co-authored-by: Claude Fable 5.2 <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Deploying ovis with  Cloudflare Pages  Cloudflare Pages

Latest commit: cd91118
Status: ✅  Deploy successful!
Preview URL: https://04bb7394.ovis.pages.dev
Branch Preview URL: https://fix-ssh-tab-refused-notice.ovis.pages.dev

View logs

@devswha
devswha merged commit b331f90 into main Nov 11, 2026
22 of 25 checks passed
@devswha
devswha deleted the fix/ssh-tab-refused-notice branch November 11, 2026 05:03
@devswha

devswha commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head cd91118b1747 as b331f90e06cf on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
claude CLEAR
codex CLEAR

Two reviewers at this head: Claude (Opus) CLEAR with no findings, Codex Terra CLEAR with no findings. The owner allowed the change on 2026-11-11 (relayed by the lead).

The earlier head (f4b25c480) was held on two findings: the notice could not be reached from the relay or Portal windows it named, and its instruction was wrong for an open LAN window. This head keeps the line for the one window that sees it (a window let in by the open LAN alone, refused the SSH list as owner_only) and says where the list can be seen; main is merged in.

CodeRabbit did not review this head. Reports: ~/.cache/ovis-tmp/reports/pr-3517-cd91118b-*.report.md.

devswha added a commit that referenced this pull request Nov 11, 2026
… so herdr keeps their state reports (#3644)

## Change

Since #3624, `server/pending-input.contract.test.ts` fails often on PR
runs (#3517, #3639, #3551 each needed a rerun). The failure is an omp
case of "delivers queued $text as $expected to $agent" at about 8.6 to
8.9 s ("queued command was not recorded", then "pending frame timeout"
in `state("idle")`), and once, the hookless-process test after it.

The cause is the test setup #3624 added, not the queue's wait for a
starting omp. For every omp stand-in, setup reported a `herdr:omp`
session (so a send would not wait for an omp that loads the integration
on a PC where it is installed). After that report, herdr drops the
manual `pane.report_agent` state report that `state("idle")` makes about
half the time. The pane stays `working`, the queue never sees its turn
end, and the queued message is never typed.

Measured on the isolated test herdr (a stand-in reported `working`, the
session report or not, then `idle`; the status read for a second after):

| stand-in | pane still `working` after `idle` |
|---|---|
| omp, with the `herdr:omp` session report | 7 of 15 |
| omp, without it | 0 of 15 |
| claude | 0 of 15 |

Fix: setup's omp stand-ins (other than the two omp-start tests', which
load the integration with `-e`) start with `--no-extensions`. The bridge
sees an omp that loads no integration, also on a PC where it is
installed, so no send waits for a report, and no session is reported.
The omp-start tests report their state before their session, and are
unchanged.

The hookless-process test that failed after the omp case did not fail in
any run here once the omp case passed. Not proven beyond that.

Test-only change.

## Validation

- Before (main `dd21d2155` test file): `bun run check run bun test
--timeout 30000 ./server/pending-input.contract.test.ts -t
"connection-owned pending input"`, 6 runs: 2 failed, each with an omp
case at about 8.6 to 9 s and one #540 neighbour.
- After: the same, 6 runs: 81 pass, 0 fail in each.
- The whole `server/pending-input.contract.test.ts`: 125 pass, 0 fail.
- `bun run check fast`: passed (unit 15,982 pass, 0 fail; typecheck and
build ok).
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