OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: 'ov status' VLM field always shows 'unknown' even when VLM is healthy and generating summaries

Open livechenjt-prog opened this issue 4 months ago • 1 comments

Bug Description

ov status always shows the VLM field as unknown even when the configured VLM provider is healthy, has a valid api_key, and is actively generating .abstract.md files. The command gives the operator no reliable way to answer "is my VLM configured correctly right now" without opening the config file and cross-checking the filesystem.

Environment

  • OpenViking versions: reproduced on 0.4.4 and 0.4.7
  • VLM provider: astron-code-latest (iFlyTek) via LiteLLM, configured under [vlm] in ~/.openviking/ov.conf
  • .abstract.md files are being generated correctly — VLM is genuinely working

Steps to Reproduce

  1. Configure a working VLM provider in ~/.openviking/ov.conf (any provider — we've hit this with volcengine, iFlyTek, and openai/codex)
  2. Add a resource that would trigger VLM summarization
  3. Verify VLM is actually running: find ~/.openviking/data/resources -name ".abstract.md" -printf '%T@ %p\n' | sort -rn | head -3 — recent timestamps
  4. Run ov status
  5. VLM row shows unknown (or empty)

Expected

ov status VLM row should show one of:

  • ok (last VLM call within N minutes)
  • stale (configured but no recent successful call)
  • unconfigured (no [vlm] block or empty provider)
  • error: <last error class> (configured but last call failed)

Something actionable, not unknown.

Actual

Always unknown, regardless of real state. Our internal ov-diagnostics-procedures skill now has an explicit rule: "Never trust ov status VLM field — verify via .abstract.md mtime on disk." That's a workaround we shouldn't need to teach.

Suggested Fix Sketch

  • Wire the same signal the observer API uses (last-successful-VLM-call timestamp) into ov status
  • If that signal doesn't exist, at least check whether [vlm] has a non-empty provider and api_key and print configured vs unconfigured instead of unknown

Additional Context

  • We do our own verification via the filesystem timestamp trick, which works but is unfriendly to less experienced operators
  • Related area: the observer HTTP endpoints (/api/v1/observer/*) require ROLE-scoped auth (see #1604 hardening) — that's fine, but the local ov status CLI has direct access to the DB and could surface this without hitting the HTTP API at all

Severity

Low individually, but this is high-visibility UX — ov status is the first thing any new user runs. An always-unknown field trains people to ignore the tool.

livechenjt-prog avatar Jul 10 '26 08:07 livechenjt-prog

thx, fixed

ZaynJarvis avatar Jul 11 '26 08:07 ZaynJarvis