Skip to content

fix: use 'qmd collection list' for qmd detection#15

Merged
jayzeng merged 1 commit into
mainfrom
fix/detect-qmd-collection-list
May 22, 2026
Merged

fix: use 'qmd collection list' for qmd detection#15
jayzeng merged 1 commit into
mainfrom
fix/detect-qmd-collection-list

Conversation

@jayzeng

@jayzeng jayzeng commented May 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace the qmd status probe in detectQmd() with qmd collection list, which doesn't trigger the slow model/device probe code path (e.g. Vulkan fallback) on some systems.
  • Raise the timeout from 5s to 15s for headroom on slow systems.

On affected systems qmd status was taking 10–20s, blowing past the 5s timeout and producing a false negative. That caused the install banner to appear at every startup and memory_search to report qmd was unavailable — despite qmd being installed and healthy.

checkCollection() already uses qmd collection list in the same file, so the lighter probe is known-good.

Fixes #10

Test plan

  • bun test/e2e.ts passes (6 passed, 5 skipped due to no qmd in env)
  • biome check passes
  • Manual verification on a system where qmd status is slow: banner no longer shown, memory_search works

🤖 Generated with Claude Code

'qmd status' can trigger slow model/device probing (e.g. Vulkan fallback)
that exceeds the 5s timeout on some systems, causing detectQmd() to
return false and the install banner to appear even when qmd is installed
and healthy. Switch to the lighter 'qmd collection list' probe and raise
the timeout to 15s for headroom.

Fixes #10

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

Signed-off-by: Jay Zeng <jayzeng@users.noreply.github.com>
@jayzeng jayzeng merged commit 7c1ed85 into main May 22, 2026
6 checks passed
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.

detectQmd() times out on systems where 'qmd status' triggers slow device probing — banner shown despite qmd being installed

1 participant