• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

llamastash / llamastash / 26751491043

01 Jun 2026 11:10AM UTC coverage: 86.325% (+0.05%) from 86.271%
26751491043

push

github

deepu105
fix(daemon,proxy): port collisions + embedding auto-start

Three related fixes that all surfaced from a single failing
`nomic-embed-text-v1.5.Q2_K` launch:

- Proxy auto-start: propagate the GGUF `mode_hint` into the proxy's
  `CatalogRow` and through `StartParams.mode` so embedding / rerank
  models get the right `--embeddings` / `--rerank` argv. Before this,
  every model the proxy auto-started defaulted to chat mode and any
  `POST /v1/embeddings` against an embedding-only model returned 501.

- Port allocator: `reserve_port`'s explicit / `prefer_port` branch
  now probes via `try_bind_probe` before reserving, so a stale
  last-used port held by an external `llama-server` no longer rides
  through to llama.cpp's bind and crashes the launch. New
  `try_bind_probe` is a thin public alias of the existing internal
  probe.

- Orphan tracking (Tier A of the adoption story): supervisor stamps
  `LLAMASTASH_LAUNCHED=1` on every spawned `llama-server`. The sweep
  reads `/proc/<pid>/environ` (new `with_environ` refresh) plus
  `--port` / `-p` / `--port=N` from argv via the new `extract_port`
  helper, exposing both on `ExternalProcess`. `collect_in_use_ports`
  extends to include marker'd external ports so the allocator skips
  them proactively, and `status --json` surfaces the new fields on
  each external row.

159 of 190 new or added lines in 11 files covered. (83.68%)

70 existing lines in 6 files now uncovered.

42169 of 48849 relevant lines covered (86.33%)

1633.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.76
/src/cli/daemon.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc