Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,10 @@ export async function setupQmdCollection(): Promise<boolean> {

export function detectQmd(): Promise<boolean> {
return new Promise((resolve) => {
// qmd doesn't reliably support --version; use a fast command that exits 0 when available.
execFileFn("qmd", ["status"], { timeout: 5_000 }, (err) => {
// `qmd status` can trigger slow model/device probing on some systems (e.g. Vulkan fallback),
// which may exceed short startup timeouts and produce false negatives.
// `qmd collection list` is much lighter and still validates the binary is callable.
execFileFn("qmd", ["collection", "list"], { timeout: 15_000 }, (err) => {
resolve(!err);
});
});
Expand Down
Loading