Repository navigation
Keep a monospace font sizing the terminal cells on Windows - #9
Merged
Merged
Conversation
xterm sizes every cell from the first font in the stack that exists. A Windows browser had none of the listed monospace fonts, so Malgun Gothic, a proportional font, set the cell to its widest letter and ASCII text rendered spaced out. Cascadia Mono and Consolas now come before the CJK fonts, and Malgun Gothic sits behind the generic monospace as a per-glyph Hangul fallback only. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 967576d)
devswha
added a commit
that referenced
this pull request
Oct 30, 2026
Onboarding PR 3 of 4: the first-run setup guide. **It needed #2326 and #2328 first; both are merged**, and `main` is merged in. The diff against `main` is this PR's own change: client code, DESIGN.md and a changelog fragment. Nothing in `server/` or `shared/` changes, and no route or contract is added. Settings → Phone's "Pair this device now" now goes through the shared `src/lib/pairing.ts` (same steps, same messages). PR 4 (#2330, Settings → Setup guide) adds the same `src/lib/setupGuide.ts` byte for byte, so the two merge cleanly. ## What it does On a fresh install Ovis asks **"Is this your first time using Ovis?"** - **I've used Ovis before** goes straight to the app, and the guide never opens by itself again. - **I'm new** opens one screen. There is no progress bar and there are no steps; **Skip setup** is always there. - First Ovis **checks this PC** (`GET /api/agent-catalog`). Every coding agent shows a spinner until its answer comes back. A check that answers in under 300 ms stays on screen until 300 ms; a slower one adds no wait. - Then **every coding agent appears as a compact two-column tile, the same screen whatever the PC has.** The order is Claude Code, Codex, the others installed, then the rest. - An installed agent is picked with a tap (version and check). Claude Code is preselected, else Codex, else the first. - **Start with <agent>** opens the first workspace with it, in the folder this browser used last or else the server's home. If that folder is gone (`invalid_cwd`), it opens the home instead. - A missing agent is dim, with a small **Install** (a download icon on phones). **Nothing is installed without the user's tap: tapping Install is the consent.** That one tap runs the agent's official installer in a terminal tab, and a spinner turns on the tile until the catalog lists the agent. Tapping the spinner shows the tab. The tile then becomes an installed one and is picked. - Several installs can run at once, and Start does not wait for them. An install that never shows up stops after ten minutes and offers Try again. - **The guide has no sign-in step.** The agent asks for its own sign-in when it first starts. An in-browser sign-in UI is planned as the next PR (the owner's call; it needs a server contract). - Plan usage turns on by itself for accounts already signed in (`GET /api/usage`). - **Connect your phone**, beside Start, shows a QR code that opens the app on the phone with a fresh pairing code filled in, plus the address and the code (the existing `POST /api/devices/pair/start`). "Paired: …" confirms a phone that used the code. - The code is requested only on the user's action (opening the box, or New code) and is never renewed in the background. - **On a fresh install this browser is in only because nothing is paired yet** (open access), and a paired phone turns the app's sign-in on. So the tap first pairs this browser, exactly as Settings → Phone's "Pair this device now" does, then shows the QR. A line says "This browser is paired first: other browsers now need pairing too." That tap is the user's consent (the owner's decision). - The self-pairing is one shared operation (`src/lib/pairing.ts`), used by both the guide and Settings → Phone. One runs at a time in a page, because two at once could leave a void cookie in place of the good one. None runs for a browser the server already lists as paired. After it, the app reads its access again. - Settings → Phone takes over only when the page has no phone-reachable address (loopback), or the server does not say how this browser got in. - A failed check shows "Couldn't check this PC" with the error and Look again. "Fresh install" means all of the following: - herdr has no workspace on this PC; - this browser saved no settings; - the server holds no shared settings (revision 0); - no device is paired; - this device is not a watching one. A watching device never sees the guide. A failed read of any of these decides nothing. When the guide is closed in one tab, it closes in the others too. A Start that finishes after the user moved to another pane, or closed the guide, does not take them there. A pane picked with the keys or the palette now sets the guide aside, as a pick from the sidebar already did. Known limits, not changed here: two tabs of the same browser pairing themselves at the same instant can still race (`main` has the same gap between two Settings tabs). The server keeps a single pending pairing code. Two views asking for one (the guide's box and Settings → Phone, or two Settings tabs on `main` today) can replace each other's code. The design follows the Claude and Codex apps' first runs: one screen in the main area, with the sidebar left in place. DESIGN.md has a "Setup guide" entry, and the ko/ja/zh strings are in `src/lib/i18n/guide.*.ts`. `AgentSetupCard`'s logic moved unchanged into `src/lib/useAgentSetup.ts`; the card uses it, and so do the guide's tiles. ## Verification - **Tests that failed first, against missing exports or the old behaviour, and pass now:** - `setupGuideFlow.test.ts`: the fresh-install predicate, the welcome → setup state, saved records, the check's lines and settle time, `agentRows`, `installedHere`, `preferredAgent`, `signedInAgents`, `tileState` (including install, stuck, retry and a stale request), `openInFolder` and `readSignedIn`. - `pairing.test.ts` (single flight; no new pairing for a listed browser), `phoneBoxMode` in `setupGuideFlow.test.ts`, and `useAgentSetup.hook.test.ts` (no tile callback after unmount). - `useSetupGuide.hook.test.ts`: cross-tab closes, `finish` keeping the user's pane (in the same update too), and terminal-tab tickets voided by Start, a close or a reopen. - `useSelectPane.hook.test.ts` and `useSignedInUsage.hook.test.ts`. - `bun run check fast` is green on the head. - **Browser walks** ran on isolated servers (fresh `OVIS_STATE_DIR`, their own herdr sessions, loopback). Two isolated servers. **This PC's 14 agents:** the welcome shows by itself, then the check, then "You're set up" with Claude Code picked; Connect your phone opens Settings on loopback; picking Codex changes Start; Start opens the first workspace; plan usage is on; the guide is recorded closed and stays closed on reload. **An empty HOME:** all 14 agents show as tiles; nothing installs before the tap; one tap on Claude Code's Install turns the spinner; **the real official installer** finishes in 27 s, and the tile becomes "Claude Code 2.1.312", picked; "You're set up"; Start opens the workspace. **A forced 500:** "Couldn't check this PC". Screenshots: both screens at 1280/390, dark and light. - **Reviews** (owner-requested reworks V4 → V6), from omo-native-code-reviewer and Codex (Sol 6.1, then Terra 6.1 from round 3 on, per the owner): - Every HIGH and MEDIUM raised over the rounds is fixed. They covered install races, focus, per-tile errors, stale replies, pairing-code lifecycles and Start vs pane picks. - The review bench's #9 (a late Start overriding a newer pane pick) is fixed and tested. - omo approves, and Terra's last round has no HIGH or MEDIUM within scope.
devswha
added a commit
that referenced
this pull request
Nov 6, 2026
…age (#3203) ## What Phishing guard for device codes (RFC 8628 section 5.4). A signed-in stranger who talked someone into typing a device code can then ask to join the account. The approval card is the last line of defence, so it now says who is asking. - **Approval card** (`AccountApprovalPrompt`): a new line under "Through {pc}" reads "iOS · Near Seoul, South Korea", or "Location unknown". It shows the system the device sent and the approximate place the account service saw its admission come from (country and city, never the address). The country name is in the app's language. The note now reads "Approve only if you started this yourself just now. Didn't ask for it? Deny it." - `AccountApprovals` reads this from `GET /v1/admissions` on the account service, the same source `approveJoin` already checks, and never from the PC. It matches on this PC and the request's key. A request for this PC only (no admission) shows no line. - **Admissions** carry `os` from the browser's user agent (new `deviceOs` in `src/lib/phone.ts`, next to `deviceLabel`). - **Ovis link page start** (`startDeviceSignIn` with `provider: "ovis"`) carries `label` and `os`, which the page's confirmation shows. A PC's own page sends the browser's name and system. `link` sends the hostname and `process.platform`. A provider's own device start (GitHub, Google) takes neither, so nothing is sent there. - `shared/account-asker.ts` holds the OS list, the label bound and the place name. The fake account service records `os`, a test-set `requestPlace` and the link page's requester. - `docs/account.md` gets a "Who is asking" section and the contract rows. The changelog fragment is included. - The card waits: Approve stays off for an account join until who-is-asking has been read. It falls back to "Location unknown" when the service lists nothing, the device is signed out or the read fails. Both the card and `approveJoin` use the newest admission of that key at that PC from the last 10 minutes (`vouchedAdmission`), whatever order the service lists them in. The device is shown and added under the name it gave the account service, not the name the PC relays. The service side is ovis-sh/account#9. With an account service that predates #9, the link page start answers `400 invalid_request` to `label` and `os`. The client then starts again once without them. Admissions there carry no context, so the card shows "Location unknown". Stacked on #3197 (feat/ovis-link-page). Merge after it. No new composer or default controls. The card already existed; this only adds a line to it. ## Validation - Failing first: `src/components/AccountApprovalPrompt.test.tsx`, the admission and link-start tests in `src/lib/account/account.test.ts` and `src/lib/account/join.test.ts`, and `shared/account-service-fake.test.ts` failed (5 fail) before the change. - `bun run check fast`: green (typecheck, build, unit tests). - Targeted: `bun test src/components/AccountApprovalPrompt.test.tsx src/lib/account/account.test.ts src/lib/account/join.test.ts shared/account-service-fake.test.ts src/lib/phone.test.ts scripts/plugin-link.test.ts`: 125 pass. - Review round: dori review (MEDIUM: fallback for an older service, LOWs: deviceOs table test, comment placement, unknown line) and Codex (MEDIUMs: label from the PC, admission order, Approve before the context) are all fixed with tests. `bun run check fast` is green at the new head. - Visual: the card was rendered alone (Bun.build + Bun.WebView) at 390 and 1280 px, with a known place and with an unknown place. The line sits centred under the "Through" line and does not wrap at 390 px. - Not run: browser regressions. No shared component (FilesDialog, RepoChanges, sidebar, selection or focus, terminal view) is touched.
devswha
added a commit
that referenced
this pull request
Nov 22, 2026
…st screen, always-QR and About update check (#4435) ## 0.5.10 relay/app integration (one combined review) Owner's method for 0.5.10: every lane put its slice on `release/relay-0510` (per-slice commits, subject prefixed with the slice name). This PR runs the one combined pass: check fast + full CI once, one dori review, one omo gate (anthropic/claude-opus-5-5 high) over the whole diff, t13r on the security slices, one fix round. A bad slice can be dropped by reverting its commits. Base: `860d1b5b6` (main with 0.5.9). ### Slices | slice | commits | what | t13r | |---|---|---|---| | approve-card | fe336dd..112bfd1, b527564 | A PC with no account member lets its first phone in by a tap in the PC's own window (digits shown, "allow only if your phone shows this number"); any other window gets 403. Phone waiting screen: "맥에서 [허용]을 눌러 주세요". QR key confirm: [이 PC에서 확인] opens the existing confirm page (POST /api/account/confirm-page, own window only); no route approves a key. | YES | | uvb-S1, S1b | d32628d, e8a755b, d028865 | Unified sidebar adds the account PCs by itself; nothing to press (no Check again, digits, Change PC); header dot. | - | | uvb-S2 | b9bee3d | Relay drive devices may add account PCs; a vouched PC join is a WATCH row. | YES | | uvb-S3, S3b | e84272c, fe760e2 | Shell opens any online PC by itself, moves off one that goes away; account-only PCs only when confirmed, past new_until, not introduction-only. | YES | | uvb-S4 | ddedeb1 | Vouched PC join approved by a plain tap, bound to the joining server proven in-session and matched against the approver's own /v1/pcs. | YES | | phone-first-build | e62c516..80e5620 | Phone native first screen; Android Tailscale check (manifest `<queries>` com.tailscale.ipn). Owner OK given. | - | | desktop-update-about | 31d609b..d1dd8a8 | Settings > About [업데이트 확인] runs the app's own update check. Replaces #4427. | - | | add-connection-qr | 5ce18df..f7312c0 | Add a connection shows a phone QR on every tab, drops Phones and devices; PC page link `#sign-in=` signs in, then joins that PC. Replaces #4431. Owner UI OK given. | YES | | control-page-fold | e87df8e..a3a28f0, fixes 44fb77d..30d20c6 | Removes the app.ovis.sh control page; 기기 끊기 / PC 빼기 (dead PC, any age) / 계정 삭제 under Settings > 기기와 PC > [계정 관리]. 모든 기기 로그아웃 was later pulled back INTO 0.5.10 by the owner (owner-fix round below). Manage account also reachable from the signed-in start screen (owner-approved). | YES (PCR-1: ovis-sh/account#58, not a regression) | ### Replaced PRs #4428 (closed), #4427 (closed), #4431 (closed). ### Review trail - Combined gate @f7312c09e BLOCK -> fix round -> delta gate @781e03309 BLOCK (HIGH-2) -> fixes -> delta gate @a4c9bb23b CLEAR -> MEDIUM fix 5438550..fd2e5fb CLEAR. - control-page-fold gate @fd2e5fbdf BLOCK (hosted leave feedback) -> fixes 44fb77d..30d20c6 (gate running). - dori @f7312c09e BLOCK (native #picked) -> fixed 477f3d0/a4c9bb23b; dori @a3a28f017 CLEAR; dori at the final tip running. - Fix commits are prefixed by slice ('uvb-fix:', 'approve-card:', 'add-connection-qr:', 'control-page-fold:'). ### Merge conditions - check fast + CI green, dori CLEAR, gate CLEAR, t13r YES on approve-card, uvb-S2/S3/S4, add-connection-qr, control-page-fold. - Owner OK on add-connection-qr UI and phone-first-build: both given. - Owner tests the Mac + phone preview of the final tip and says OK (lead's condition). ## Owner-fix round (fix/owner-0510, landed as 89c9e26..cccb50f) The owner tested the 89c9e26 previews and reported findings #1-#10; the lead added items (a) sign out every device, (c) reconnect speed, (d) PCR-1 app side + #4440 relay/account items, (e) ovis CLI cleanup (lane ovis-cli-design), and the PC proof on re-list (#65 condition). All landed on side branch fix/owner-0510, then fast-forwarded here. | Item | Commits | |---|---| | #1 signed-in 0-PC: 3 tabs + ⋮ menu | 09a09dc | | #2 confirm an unconfirmed PC (+ two-step line, gaps) | 0325bf6, ea87f1e, 3cc9d07 | | #3 setup row = checklist | 164012c | | #4 Tailscale serve/open (+ owner-login condition) | e614cf1, ab20c89 | | #5 phone approve/deny of a join | 701e023, 9cf9b1a, 1dd2c61 | | #6 Direct = address line + code, no QR | 2caeb4e, e02aedc | | #7 signed-out account PC one line | 7928083 | | #8 join notice to the right windows, kept until seen | 6662003, f718efe, dbd2f68, cccb50f | | #9 reconnect UI (grey after 1 s, card after 10 s) | 4a6247e | | #10 Inbox entry beside Settings | 0ec0dbe | | SSH from hosted Direct -> app's own SSH screen | 1c51cb1, 3f9be0b | | (a) sign out every device (account#64 live) | 9b63d95, c8fa0a4, 7b2574f | | (c) reconnect wins | 84b8ce6, 69b5c1e | | (d) PCR-1 app retry + #4440 items + Delete account wording | e26082f, 11c8926..9f60656, e6168df | | PC proof on re-list after ovis logout (account#65 live) | e66b12b | | (e) ovis CLI (login/logout/approve/pair --relay) | 11c13e1, dcae136, f363d42 | | fake parity with account#62/#63, red-test fixes, B1b | 9a47489, 25ad3d9, bcf5059, 181884b, 2072a04, 15cea4f, 1674ca5, ea66c62 | Review trail for the round: security-triage YES per item (Tailscale routes with the owner-login condition; confirm UI conditions; sign-out wording; join notice; SSH handoff; Decline; logout/leave with PC proof; MEDIUM pc-proof scoping ledgered as ovis-sh/account#66, MUST-CLOSE before Step 2 opens beyond the owner). Opus gate (one pass over the round): CLEAR at 181884b, delta CLEAR at cccb50f (join-notice MEDIUM fixed). check fast in the CI image: green at 03fcd4e06 (unit 22471/0). --------- Co-authored-by: sisyphus-dev-ai <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
devswha
added a commit
that referenced
this pull request
Nov 23, 2026
…that stay, codes kept From the adversarial review of #4492: - #1 #2 #7 #10 One open attempt for the whole connect screen, tracked from the tap (before the Tailscale question, whose wait is bounded and takes only an explicit off as off): a newer tap, Cancel or leaving drops an earlier one's late answer, no second open runs while one does, both panes show the one status, open is called only where the app has it, Cancel shows only where it can stop it, and the plain wait and the removed screen show a scanned PC's open too. - #3 #4 My PCs and Add a PC stay mounted under one parent across 1024 px, so the tab, what is typed, the focus, the search and an open survive a resize; a pairing dialog stays the top of the history when the window narrows under it. - #5 Each desktop pane scrolls on its own; checked at 1024x400 with the wheel. - #6 A code is looked up in its own field, kept through a failure to correct. - #8 Tailscale's IPv6 range counts as a Tailscale address. - #9 Android's no-answer is explained; an unknown reason never shows the app's words. - #11 #12 A PC the app keeps open while choosing shows My PCs with its Back, and only its own scope on a self-hosted relay's origin is marked. - #13 One alert for a failed sign-in on a wide screen. #14 The Cancel test presses it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
devswha
added a commit
that referenced
this pull request
Nov 28, 2026
…p message box (#4983) ## What UI trim audit item #9: on a desktop, a line under the chat message box always named the pane's folder and branch (`/home/demo/checkout-api · main`). The status bar right under it already shows the PC, workspace and branch, and the sidebar shows the workspace and its branch, so the line repeated them and made the composer taller. A phone never drew it. Removed with everything only it used: - `Composer.tsx`: the strip, its fit-the-path layout effect and the `cwd` / `branch` / `worktreeRepo` props; `Folder` and `GitBranch` icons. - `PaneTerminal.tsx`: the `usePaneBranch` read that only fed the strip (the status bar keeps its own), the `worktreeRepo` prop; `App.tsx` no longer computes it. - `PaneTerminal`'s `workspaceId` prop, read only for the strip's branch. - The strip's sentence in docs/guide.md. - `src/lib/composerStrip.ts` and its test, the `.composer-strip*` styles, the prompt card's `--prompt-card-strip` budget, the "Working folder" / "Worktree" strings (ja, ko, zh), its DESIGN.md entry, the THIRD_PARTY_NOTICES mention and its ci-test-timings line. This follows the minimal-composer rule (Codex and Claude desktop apps keep the box itself free of context lines). No server or HTTP/WS contract change. Known trade-off: in desktop inbox mode (no status bar, inbox list instead of the sidebar) and in a 641-768px window with a mouse (no status bar below 769px), the branch is no longer shown anywhere on screen; the folder stays in the pane's menu. ## Screens (demo, light) | Before (1440) | After (1440) | |---|---| |  |  | | Before (390, unchanged) | After (390) | |---|---| |  |  | ## Chat end-follow fix (found by this change) With the composer 29px shorter, `chat-reading-position-demo-regression` (scenario workspace) left a newly shown chat 16px above its end. Cause: while @legendapp/list pads the transcript's end to hold rows, `followMeasured` took the list's own `contentLength` as the end, and the list measures its header (Earlier messages) and footer later than its rows without reporting an item size change, so nothing followed again once the padding went. `followMeasured` now goes to the farther of the list's length and the scroller's drawn end less the list's inline padding (`unpaddedScrollHeight`). Measured: 5004/618/4370 before, at the end after. ## Checks - `chat-reading-position-demo-regression` (all 7 scenarios, twice), `chat-math-demo-regression`, `pane-paging-demo-regression`: PASS; `bun test src/components/ChatView src/components/ChatTimeline`: pass. - `bun run check fast`: green (30182 pass). - Reviews: Codex (via axwith) CLEAR; omo gate found the strip's sentence left in docs/guide.md and PaneTerminal's now-unread `workspaceId` prop, both removed in the follow-up commit. `chat-size-regression` fails identically on origin/main in this environment (phone terminal resize wait), so it is not this change. - Type check of the changed files: clean. `bun test src/components/Composer src/components/PaneTerminal src/components/PromptCard src/conventions.test.ts src/lib/i18n scripts/changelog-fold.test.ts`: 278 pass. - Browser: composer-fit, prompt-dock, prompt-card-timing, chat-greeting, plan-chip demo regressions PASS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split out of #5.
On a Windows browser, none of the monospace fonts in the terminal's font list exist, so xterm measured its cells with Malgun Gothic, which is a proportional font. Every cell took the width of its widest letter, and ASCII text rendered spaced apart. This PR puts Cascadia Mono and Consolas ahead of the CJK fonts. Malgun Gothic now sits behind the generic
monospaceand is used only for Hangul characters the other fonts lack.One line in
PaneTerminal.tsx.bun testpasses 257/257, and the built bundle has the new font order. I haven't checked it in a Windows browser myself.🤖 Generated with Claude Code