Skip to content

feat(local-models): separate shared gateway display and add tabbed Advanced dialog - #657

Open
oldwinter53 wants to merge 2 commits into
mainfrom
ws/bifrost-hotreload-and-ui-clarity
Open

oldwinter53 wants to merge 2 commits into
mainfrom
ws/bifrost-hotreload-and-ui-clarity

Conversation

@oldwinter53

@oldwinter53 oldwinter53 commented Nov 24, 2026 •

Copy link
Copy Markdown

What and why

Clarifies the single-gateway architecture in the Local Models UI and upgrades the computer Details dialog into a tabbed Advanced modal with local-only Bifrost gateway credentials on Linger Desktop:

  1. Separate shared gateway from per-model backend servers (51f52eb1):
    • Model detail cards now distinguish Shared gateway (Ready · Bifrost (Pi) + http://127.0.0.1:18480/v1 from model-source.status.gateway_url) from each model's backend Model server (http://127.0.0.1:1810x/v1), avoiding the impression that each loaded model runs a separate Bifrost gateway.
    • Wraps long URLs cleanly on narrow viewports.
  2. Tabbed Advanced dialog & local-only Desktop gateway IPC (255a90fd):
    • Replaces the top memory card's Details button with Advanced (Gateway & access, Memory & hardware, Diagnostics):
      • Gateway & access: shared OpenAI-compatible /v1 API endpoint, Bifrost Admin console URL (with Desktop Open when adminUrl is available), access scope (Local only (127.0.0.1) · no API key required on localhost), loaded model IDs with one-click Copy ID and Copy curl, and Admin credentials.
      • Memory & hardware: retains the unified/GPU memory pool breakdown bar, holder legend, and host hardware summary.
      • Diagnostics: runtime metadata (OS, inference engine, localmodels tool version, copyable Computer ID, debug mode), per-model backend server endpoints, and Desktop local tools (Save diagnostics, Open gateway folder with error feedback).
    • Adds Electron main-process LocalGatewayService (window.lingerDesktop.localGateway) backed by read-only resolveLocalmodelsBifrostLocation in @linger/local-installation and shared SecretClipboard:
      • The serverUrl origin check in DesktopIpcModule is the IPC security boundary; computerId === desktopComputerId routes the UI to this desktop's enrolled computer.
      • Reads admin-password on demand only after verifying regular file, non-symlink, <= 4096 bytes, owner UID, and POSIX 0600 mode; never transmits credentials over TeamHub.
      • Masks password by default, clears revealed state on tab change/unmount, auto-clears clipboard after 60s if unchanged, restricts openAdmin to loopback 127.0.0.1 URLs, and marks reveal/copy controls data-voice-risk="never".
<LocalModelsPage>
  ├── <ModelDetails> (Shared gateway vs Model server)
  └── <AdvancedDialog> (Gateway & access | Memory & hardware | Diagnostics)
        └── window.lingerDesktop.localGateway (serverUrl origin boundary; computerId UI routing)
              └── LocalGatewayService (main process: shared resolver, 0600 lstat check, 60s clipboard clear)

How it was verified

  • Focused tests for the changed behavior
  • make check BASE=origin/main / fast checks of every touched app
  • Contracts regenerated if contracts/openapi/ changed (N/A — no OpenAPI schema changes)

Commands run against rebased HEAD (255a90fd on origin/main 6a511c15):

  • make check-repository BASE=origin/main, scripts/ci/check-changed-files.sh origin/main HEAD, and node scripts/check-doc-links.mjs → exit 0 (Prettier, env inventory, CJK gate, 111 Markdown files)
  • packages/local-installation: typecheck, lint, and vitest run src/localmodels-tool.test.ts (64 passed, 1 skipped)
  • apps/desktop: typecheck, lint, and vitest run src/main/local-gateway.test.ts src/main/desktop-ipc.test.ts src/main/setup-account.test.ts (34/34 passed)
  • apps/web: typecheck, lint, pnpm react:doctor --base origin/main, and vitest run for local-models-page.test.tsx, local-models-rules.test.ts, and voice-risk-markers.test.ts (131/131 passed)

Boundary

  • Updated owning docs: apps/web/AGENTS.md, apps/desktop/AGENTS.md, and packages/local-installation/AGENTS.md.
  • Does not touch the user message → provider_ready path (adds zero network round trips or filesystem walks during chat send).
  • Merge danger (Two-way door, low blast radius): Purely additive UI and local Desktop IPC; reverting commits 255a90fd and 51f52eb1 cleanly restores the prior Details dialog and endpoint row with no data, config, or API contract migrations.

@linger-review linger-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request changes (1 P1, 2 P2)

Scope: base main, merge base abfbcb5f, 2 commits, 20 files reviewed at 86a4a0d1. Loaded helper skills: coderbook, ponytail-review (sections 1–3), karpathy-guidelines. Ran in a separate session. The security checklist does not apply: there are no auth endpoints, tokens or dependency changes, only a new local IPC surface, which is reviewed below.

Findings

P1

1. LocalGatewayService.#resolve re-implements the localmodels Bifrost resolution, and the copy already disagrees with the original (apps/desktop/src/main/local-gateway.ts:261-330)

The comment at line 272 says "Match localmodels-tool.ts". The file then copies field, readOwnedBifrost, the loopback address parser (parseLoopbackAdminUrl vs parseLoopbackBifrostAddress), readOwnedJson and the tools/bifrost path layout from packages/local-installation/src/localmodels-tool.ts:547-620. This is a second implementation of the same rule, and it already differs from the one the runtime uses:

  • Runtime (localmodelsIsolation, localmodels-tool.ts:829-866): a home that is not legacy always uses localmodelsBifrostDirectory(home). Its address comes from this home's owned.json, then its bifrost-addr, then the default. The shared ~/.local/share/localmodels/tools directory is only used when legacyLocalmodelsTools(home) picks it, and that requires one of this home's plan deployments to live under this home's models directory.
  • Desktop copy (lines 284-310): if this home's owned.json has no gateway.bifrost record, it always falls back to the shared ~/.local/share/localmodels/tools/owned.json and then to ~/.local/state/localmodels/bifrost. It takes the first app_dir and addr it finds there.

Failure scenario: a machine that ran localmodels before per-home isolation, or that has another Linger installation, has a shared owned.json that records that other gateway. This home's gateway has not written its own record yet. The Advanced dialog then shows the other installation's admin username and URL, and reveals or copies its admin-password. Open launches the other gateway's console. The runtime itself never touches that directory for this home. None of these fallback paths has a test in local-gateway.test.ts.

Fix: export one resolver from @linger/local-installation that returns { bifrostDir, addr } for a home. It should reuse legacyLocalmodelsTools, readOwnedBifrost and localmodelsBifrostDirectory (read-only, allocate: false). Then delete the copied helpers and the extra ~/.local/... fallbacks from local-gateway.ts. That way the dialog always points at the gateway the runtime actually uses.

P2

2. Clipboard auto-clear is copied from setup-account (apps/desktop/src/main/local-gateway.ts:202-225)

The block that writes the clipboard, sets a 60 s timer, reads the clipboard back and clears it only if unchanged is nearly line for line the same as SetupAccount.copy in apps/desktop/src/main/setup-account.ts:58-72. The new code already imports CLIPBOARD_CLEAR_MS from that file. Move the logic into one small helper, e.g. copySecretWithAutoClear(clipboard, text, ms), and call it from both places, so a change to the clear rule happens once.

3. The computerId gate is not a security boundary, but the docs present it as one (apps/desktop/src/main/desktop-ipc.ts:237-270, apps/desktop/AGENTS.md:457-463)

handle() only checks that the caller has the configured serverUrl origin. The same page can call IPC.computerStatus (desktop-ipc.ts:144-153), which returns computerId. Any script on the TeamHub origin, including an XSS payload or a hostile team server, can therefore call lingerDesktop.localGateway.revealPassword(<that id>) and get the plaintext Bifrost admin password in the page's JS (local-model-advanced-dialog.tsx:215-217). The origin check is the only real gate. The computerId check only routes the UI. The existing local-account flow keeps the secret in the main process: copy and reveal only touch the clipboard and the file manager. Either keep that pattern (main-process copy only, no revealPassword to the renderer), or say plainly in apps/desktop/AGENTS.md that the remote origin can read the password. Then drop the "own enrolled computerId only" framing, which suggests more protection than exists.

Verified as fine

  • Every new channel goes through handle(), which rejects senders whose senderFrame.origin is not serverUrl (apps/desktop/src/main/desktop-ipc.ts:161-174). computerId is validated with zod (desktop-ipc.ts:34).
  • The password file read requires a regular file that is not a symlink, at most 4096 bytes, owned by the current user, with mode & 0o077 == 0 on POSIX (local-gateway.ts:59-80, #readPassword at :243-249). The password is never cached in the service.
  • openAdmin only opens a URL built from a strict 127.0.0.1:<port> match (local-gateway.ts:47-57). It cannot be made to open arbitrary URLs.
  • Older desktop builds and browsers: desktopLocalGateway() returns undefined when the bridge is missing (apps/web/src/features/local-models/desktop-local-gateway.ts:28-34), and the preload API field is optional (apps/desktop/src/shared/api.ts:183).
  • The revealed password is cleared on tab change and unmount (local-model-advanced-dialog.tsx:184-189). The timer is disposed on module stop (desktop-ipc.ts:270).
  • isDesktopComputer is computed from desktop.status.computerId === computer_id (local-models-page.tsx:215-218, 234-237), so other users' computers never show desktop actions.
  • No CJK in changed non-locale files or in commit messages. No contract or env changes.
  • apps/web/AGENTS.md and apps/desktop/AGENTS.md were updated in the same PR.

Process notes

  • The branch is 16 commits behind main, and main requires up-to-date branches, so it needs a rebase.
  • No merge commits and no fixup commits.

CI

All checks that ran passed: check (desktop), check (web), both web test shards, web-static, repository-gate, CodeQL. check (packages) was skipped because no package changed; it would run if finding 1 is fixed by moving the resolver into @linger/local-installation. I did not run any tests locally. The findings come from reading the code.

Automated review by Claude Code


Automated review of 86a4a0d by Claude Code.

@oldwinter53
oldwinter53 force-pushed the ws/bifrost-hotreload-and-ui-clarity branch from 86a4a0d to a3522c5 Compare November 24, 2026 15:52
@oldwinter53

oldwinter53 commented Nov 24, 2026 •

Copy link
Copy Markdown
Author

Addressed all three review findings in 8a407fd3 and rebased onto main:

  1. P1 (shared Bifrost resolver): Exported read-only resolveLocalmodelsBifrostLocation (reusing legacyLocalmodelsTools(..., { persist: false }), readOwnedBifrost, localmodelsBifrostDirectory, and resolveLocalmodelsBifrostAddr(..., { allocate: false })) and parseLoopbackBifrostAddress from @linger/local-installation/localmodels-tool. Removed the copied helpers and unconditional ~/.local/... fallbacks from apps/desktop/src/main/local-gateway.ts, with regression tests in both packages/local-installation/src/localmodels-tool.test.ts and apps/desktop/src/main/local-gateway.test.ts.
  2. P2 (clipboard auto-clear deduplication): Extracted SecretClipboard in apps/desktop/src/main/secret-clipboard.ts and reused it in both SetupAccount and LocalGatewayService.
  3. P2 (trust boundary docs): Kept the explicit-action Show Password UX and updated apps/desktop/AGENTS.md and apps/desktop/src/main/desktop-ipc.ts to state plainly that the serverUrl origin check is the security boundary while computerId is a UI-routing guard.

@oldwinter53
oldwinter53 force-pushed the ws/bifrost-hotreload-and-ui-clarity branch 2 times, most recently from 8a407fd to f948d04 Compare November 24, 2026 16:12
@oldwinter53

Copy link
Copy Markdown
Author

Rebased onto latest main (8b7fe39b) and added a small follow-up polish commit (f948d043) on top of the P1/P2 fixes from 8a407fd3:

  • Diagnostics error handling: Catch rejections from localGateway.openFolder(computerId) in DiagnosticsTabPanel and surface FormFeedback instead of leaving an unhandled promise rejection.
  • Desktop Open console guard: Only show the Desktop Open button when desktopGatewayInfo.adminUrl is present, and align the fallback admin username with LocalGatewayService (localmodels).
  • Trust-boundary doc consistency: Aligned the comments in apps/desktop/src/shared/api.ts and apps/web/AGENTS.md with apps/desktop/AGENTS.md so all references consistently state that the configured serverUrl origin is the IPC security boundary and computerId is a UI-routing guard.

All 11/11 CI checks (check (desktop), check (packages), check (installer), check (web), web-static, web tests (1/2 & 2/2), repository-gate, CodeQL) are green on f948d043.

@linger-review linger-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve with nits (1 P3)

Scope: follow-up on 86a4a0d; reviewed head f948d04 against main, merge base 8b7fe39. 4 commits, 25 files. The branch was rebased since the previous review, so I used git range-diff: c1693564 and e5153271 match the earlier two commits, and the new commits are 15480162 and f948d043. I also rechecked the whole merge-base diff for P0/P1 problems. Loaded skills: coderbook; ponytail-review and karpathy-guidelines were applied from their checklists. Ran in a separate session.

Previous findings

  • P1: Desktop duplicated the Bifrost path resolution, and the copy had drifted. Resolved. apps/desktop/src/main/local-gateway.ts:217 now calls resolveLocalmodelsBifrostLocation (packages/local-installation/src/localmodels-tool.ts:796). That function follows the same branches as localmodelsIsolation (localmodels-tool.ts:868):

    • A legacy home uses the shared owned.json's app_dir/addr.
    • Otherwise it uses this home's runtime/localmodels/bifrost and resolveLocalmodelsBifrostAddr(..., { allocate: false }).

    It does this without writing the legacy marker (legacyLocalmodelsTools(home, { persist: false })). The new tests cover both cases: "never falls back to another installation's shared legacy gateway when this home is isolated" and "resolveLocalmodelsBifrostLocation resolves a verified legacy home without writing the marker".

  • P2: The 60 s clipboard clear was copied from setup-account. Resolved. apps/desktop/src/main/secret-clipboard.ts holds the logic, and both SetupAccount and LocalGatewayService use it. CLIPBOARD_CLEAR_MS is re-exported, so existing imports still work.

  • P2: The computerId check is not a security boundary. Resolved by documentation. apps/desktop/AGENTS.md, apps/desktop/src/shared/api.ts:186 and apps/desktop/src/main/desktop-ipc.ts:247 now say that the serverUrl origin check is the boundary and that computerId only routes the UI.

Findings

P3

  • The PR description overstates the IPC gating. apps/desktop/src/main/desktop-ipc.ts:247. The body still says the gateway is "Double-gated to both the configured serverUrl origin and computerId === desktopComputerId". The code and docs now say the origin check is the only security boundary. The revert note also names 86a4a0d1/a2617509, which no longer exist after the rebase. Fix: update the description to match the docs and the current commit SHAs.

Verified as fine

  • resolveLocalmodelsBifrostLocation is read-only.
    • legacyLocalmodelsTools only writes the marker when persist is true (localmodels-tool.ts:694).
    • With allocate: false, resolveLocalmodelsBifrostAddr returns before pickFree or atomicPrivate (localmodels-tool.ts:765).
    • Unlike localmodelsIsolation, it does not call privateDirectory.
  • LocalGatewayService is wired to this installation's home (apps/desktop/src/main/index.ts:351). Every IPC handler goes through requireOwnGateway/isOwnComputer (desktop-ipc.ts:249-281), and the clipboard timer is disposed on unsubscribe (desktop-ipc.ts:282).
  • The password is read only after the file checks. #readPassword reads it only after lstat confirms a regular, non-symlink file of at most 4096 bytes, owned by the current user, with no group or other permission bits (local-gateway.ts:49-68, :208).
  • Two clipboard instances do not interfere. Each one clears only if the clipboard still holds its own secret (secret-clipboard.ts:33-37).
  • Web follow-ups in local-model-advanced-dialog.tsx:
    • A rejected openFolder now shows gatewayOpenFolderFailed, which has a zh-CN catalog entry (:656-662).
    • The Desktop "Open" admin button only renders when adminUrl is present (:206, :288).
    • The fallback username matches DEFAULT_ADMIN_USER = "localmodels" (:418, local-gateway.ts:17).
  • No CJK outside the zh-CN catalog, and none in commit messages.
  • No merge commits. The branch is up to date with main.

Process notes

  • None.

CI

All checks pass: repository-gate, desktop, packages, installer, web-static, web tests (1/2 and 2/2), web, and CodeQL. computer-go, contracts, teamhub and teamhub-cli were skipped because the PR touches none of their paths. I did not run any tests locally.

Automated review by Claude Code


Automated review of f948d04 by Claude Code.

@oldwinter53
oldwinter53 force-pushed the ws/bifrost-hotreload-and-ui-clarity branch from f948d04 to 90a95b2 Compare November 25, 2026 04:47

@linger-review linger-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve with nits (0 new findings; 1 previous P3 not resolved)

Scope: follow-up on f948d04. Base main, merge base eafcfd41, 4 commits, 25 files reviewed. Helper skills not loaded in this run; reviewed against the linger-pr-review checklist directly. Ran in a separate session. The previous head is no longer an ancestor (the branch was force-pushed after a rebase), so I compared the two versions with git range-diff and re-read the full merge-base diff.

Since the previous review: this is a rebase onto newer main. Conflict resolutions bring in the driver-update dialog, hasReadyAlternatives, and grouped expandedKey, and the isDesktopComputer prop is renamed to the existing isLocalDesktop prop. I found no new logic in the PR's own code.

Previous findings

  • P3: PR description still says computerId is a second security gate. Not resolved. The code and docs now say the serverUrl origin check in handle() is the only security boundary (apps/desktop/src/main/desktop-ipc.ts:267-268, apps/desktop/src/shared/api.ts:204-207). The PR body still says "Double-gated to both the configured serverUrl origin and computerId === desktopComputerId". It also still cites commits a2617509 and 86a4a0d1, which are no longer in the branch (the current ones are d29753f7, e9667caa, eff3aa9e and 90a95b28). Please update the description.

Findings

None new.

Verified as fine

  • IPC origin gate. Every localGateway channel goes through handle(). handle() rejects any sender frame whose origin is not the configured serverUrl (apps/desktop/src/main/desktop-ipc.ts:189-195). computerId is checked with zod and matched against the enrolled computerId (desktop-ipc.ts:269-280). getInfo returns {available:false} instead of throwing.
  • Password read. The password is read on demand with lstat: it must be a regular file, not a symlink, at most 4096 bytes, owned by the current user, and have mode & 0o077 === 0 on POSIX (apps/desktop/src/main/local-gateway.ts:48-68, :214-219). It is never cached and never included in DesktopLocalGatewayInfo (apps/desktop/src/shared/api.ts:71-79).
  • Admin URL is loopback only. openAdmin only opens URLs built by parseLoopbackBifrostAddress. That function accepts only 127.0.0.1:<1-65535> (packages/local-installation/src/localmodels-tool.ts:547-557), so a tampered bifrost-addr cannot open an arbitrary URL.
  • Read-only resolver. resolveLocalmodelsBifrostLocation follows the same branches as localmodelsIsolation (localmodels-tool.ts:868-900): legacy owned app_dir, otherwise the per-home bifrost dir. It does not write: legacyLocalmodelsTools(..., {persist:false}) skips writing the marker, and allocate:false returns the saved or default address without probing ports (localmodels-tool.ts:746-772, :797-811).
  • Shared clipboard helper. SecretClipboard preserves the previous SetupAccount behaviour: re-copying resets the timer, the clipboard is cleared only if it still holds the secret, and the timer is unref'd (apps/desktop/src/main/secret-clipboard.ts:24-41). SetupAccount now delegates to it (apps/desktop/src/main/setup-account.ts:57-61), and the duplicate timer code is gone. The service is disposed on module stop (desktop-ipc.ts:302).
  • Rebase conflict resolution. Both ComputerModels call sites pass isLocalDesktop computed from the desktop's enrolled computerId (apps/web/src/features/local-models/local-models-page.tsx:231-254). AdvancedDialog and UpdateDriverDialog both get the same flag (local-models-page.tsx:1921-1931).
  • CJK check. Added lines outside the translation catalogs and all commit messages are free of CJK.

Process notes

  • The branch is 2 commits behind main, which requires up-to-date branches, so it needs a rebase.
  • eff3aa9e ("reuse localmodels Bifrost resolver and shared secret clipboard") and 90a95b28 ("handle Diagnostics openFolder error…") patch e9667caa from the same PR. Since main takes rebase merges, consider squashing them into it with git rebase -i --autosquash.
  • No merge commits. All commits are authored by Dongdong Chen cdd@simplexai.com.

CI

Completed checks pass: desktop, installer, web tests (1/2, 2/2), repository-gate, CodeQL. check (packages) and web-static are still pending. The computer, teamhub and contracts checks were skipped because this PR doesn't touch those paths. I didn't run any tests locally; nothing in the changes since the previous review needed it.

Automated review by Claude Code


Automated review of 90a95b2 by Claude Code.

@oldwinter53

Copy link
Copy Markdown
Author

Rebased onto current main (head 90a95b2). Conflicts came from main's NVIDIA driver update IPC and grouped model rows landing in the same files; both sides are kept. The PR's isDesktopComputer prop is unified with main's equivalent isLocalDesktop, so the Advanced dialog and the driver update dialog share one flag. All CI checks pass.

@oldwinter53
oldwinter53 force-pushed the ws/bifrost-hotreload-and-ui-clarity branch from 90a95b2 to be0577a Compare November 26, 2026 15:29
@oldwinter53

Copy link
Copy Markdown
Author

Rebased cleanly onto latest main (1c35212b) as two commits (fcb4ed35 and be0577a4), squashing the prior review follow-ups into be0577a4 per the review process note.

Conflicts resolved:

  • apps/web/src/features/local-models/local-model-row.tsx and local-models-page.tsx: preserved main's removal of hasReadyAlternatives while keeping gatewayUrl.
  • apps/web/src/features/local-models/local-model-details.tsx: kept the move of AdvancedDialog / PoolBar into local-model-advanced-dialog.tsx.
  • apps/web/src/features/local-models/local-models-page.test.tsx: retained the Advanced dialog host engine assertion alongside main's trimmed row copy expectations.
  • packages/local-installation/src/localmodels-tool.test.ts: kept all recent main kit/prefetch tests and appended both resolveLocalmodelsBifrostLocation tests intact.

Also updated the PR description to resolve the remaining P3 note (accurate serverUrl origin trust-boundary wording and current commit SHAs).

linger-review[bot]
linger-review Bot previously approved these changes Nov 26, 2026

@linger-review linger-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve (0 findings)

Follow-up on 90a95b2. Merge base 1c35212b; 2 commits, 25 files reviewed. The previous review had no findings. Since then the branch has been rebased onto main and the three earlier commits squashed into two. The PR's own diff over its 25 files is byte-identical to the previous head's, and main touched none of those files in between.

Verified as fine

  • resolveLocalmodelsBifrostLocation is read-only. It calls legacyLocalmodelsTools(home, { persist: false }), which skips the marker write, and resolveLocalmodelsBifrostAddr(..., { allocate: false }), which returns before atomicPrivate or port allocation (packages/local-installation/src/localmodels-tool.ts:859-861,893-907). Its legacy branch resolves the same directory and address as localmodelsIsolation (:968-981).
  • Password reads go through lstat and require a non-symlink regular file of at most 4096 bytes, owned by the current UID, with mode & 0o077 === 0 (apps/desktop/src/main/local-gateway.ts:48-67,211-217). Every gateway IPC passes the serverUrl same-origin check in handle() (apps/desktop/src/main/desktop-ipc.ts:192) and the enrolled-computerId match (:270-280). openAdmin only opens the URL from parseLoopbackAdminUrl, which accepts only 127.0.0.1:<port>.
  • SecretClipboard matches the clipboard logic previously inlined in SetupAccount: clear after 60s only if the value is unchanged, and re-copying resets the timer (apps/desktop/src/main/secret-clipboard.ts:24-41). setup-account.ts now reuses it.

CI: all required checks pass (desktop, web, web tests 1/2 and 2/2, packages, installer, repository-gate, CodeQL). Go, contracts and teamhub checks were skipped because the PR doesn't touch them. The branch is up to date with main. I ran no tests myself.

Automated review by Claude Code


Automated review of be0577a by Claude Code.

@oldwinter53

Copy link
Copy Markdown
Author

Rebased onto latest main (6a511c15) as 51f52eb1 + 255a90fd, aligning Fact and AdvancedDialog with main's divider-line removal (48258b1f).

@linger-review linger-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve (0 findings)

Follow-up on be0577a. Merge base 6a511c15, 2 commits, 25 files reviewed. The only change since the previous review is the rebase onto main's 48258b1f ("drop divider lines"). It removes every bordered prop and divide-y class from the new dialog and the details card, which matches the new Fact signature at apps/web/src/features/local-models/local-model-details.tsx:59. No bordered or divide-y is left under features/local-models/.

Verified as fine

  • Every local-gateway.* channel goes through handle()'s serverUrl origin check, and computerId must match the enrolled computer. Reveal, copy, open-admin and open-folder throw Not allowed otherwise (apps/desktop/src/main/desktop-ipc.ts:267-302).
  • The password is read only from a file that is a regular, non-symlink file owned by the current user, mode 0600, and at most 4 KiB (apps/desktop/src/main/local-gateway.ts:48-68). The resolver is read-only: persist: false skips writing the legacy marker and allocate: false skips allocating a port (packages/local-installation/src/localmodels-tool.ts:893-906).
  • openAdmin only opens a URL built by parseLoopbackBifrostAddress, so it is always http://127.0.0.1:<port> (apps/desktop/src/main/local-gateway.ts:38-46).

CI: All finished checks pass (desktop, packages, installer, web tests 1/2 and 2/2, repository-gate, CodeQL). web-static was still pending at review time. I ran no tests myself.

Automated review by Claude Code


Automated review of 255a90f by Claude Code.

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.

2 participants