{"record":{"id":"b6e5b837a2e6c53a","repo":"nikivdev/code","slug":"no-queued-commit-matches","errorCode":null,"errorMessage":"No queued commit matches {}","messagePattern":"No queued commit matches (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/commit.rs","lineNumber":7123,"sourceCode":"                parsed.record_path = Some(path);\n                entries.push(parsed);\n            }\n            Err(err) => debug!(path = %path.display(), error = %err, \"invalid commit queue entry\"),\n        }\n    }\n    entries.sort_by(|a, b| a.created_at.cmp(&b.created_at));\n    Ok(entries)\n}\n\nfn resolve_commit_queue_entry(repo_root: &Path, hash: &str) -> Result<CommitQueueEntry> {\n    let entries = load_commit_queue_entries(repo_root)?;\n    let matches: Vec<_> = entries\n        .into_iter()\n        .filter(|entry| commit_queue_entry_matches(entry, hash))\n        .collect();\n\n    match matches.len() {\n        0 => bail!(\"No queued commit matches {}\", hash),\n        1 => Ok(matches.into_iter().next().unwrap()),\n        _ => bail!(\"Multiple queued commits match {}. Use a longer hash.\", hash),\n    }\n}\n\nfn resolve_git_commit_sha(repo_root: &Path, hash: &str) -> Result<String> {\n    let rev = format!(\"{hash}^{{commit}}\");\n    let sha = git_capture_in(repo_root, &[\"rev-parse\", \"--verify\", &rev])\n        .with_context(|| format!(\"{hash} is not a valid git commit\"))?;\n    let trimmed = sha.trim();\n    if trimmed.is_empty() {\n        bail!(\"{hash} is not a valid git commit\");\n    }\n    Ok(trimmed.to_string())\n}\n\nfn queue_existing_commit_for_approval(\n    repo_root: &Path,","sourceCodeStart":7105,"sourceCodeEnd":7141,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/commit.rs#L7105-L7141","documentation":"resolve_commit_queue_entry() filters the persisted commit-queue entries with commit_queue_entry_matches(entry, hash) and throws this error when zero entries match the supplied (short) commit hash. It means no queued commit corresponds to the hash the user passed.","triggerScenarios":"Running a queue command with an explicit hash argument (`f commit review <hash>` / approve path) when that commit was never queued, was already approved/removed, or the queue file was reset.","commonSituations":"Typo in the short hash, referencing a commit from another repo/branch, queue cleared by a previous approval, or the queue state file (.ai internal state) missing or deleted.","solutions":["Run the queue listing command to see currently queued commits and copy the exact hash","Re-run without a hash to operate on the latest queued entry","Re-queue the commit if it was already approved/removed","Check you are in the correct repository (queue state is per-repo)"],"exampleFix":"// before (shell)\nf commit review a1b2c3d   # wrong/typo hash\n// after (shell)\nf commit queue list        # inspect actual queued hashes\nf commit review a1b2c3e   # correct hash, or omit hash for latest","handlingStrategy":"validation","validationCode":"fn queue_contains(queue: &[CommitQueueEntry], hash: &str) -> bool {\n    queue.iter().any(|e| e.commit_sha.starts_with(hash))\n}\n// before calling:\nif !queue_contains(&entries, short_hash) {\n    eprintln!(\"hash {} not queued; list queue first\", short_hash);\n}","typeGuard":null,"tryCatchPattern":"match tool.resolve_queue_entry(hash) {\n    Err(e) if e.starts_with(\"No queued commit matches\") => {\n        eprintln!(\"{} not in queue; run queue list\", hash);\n    }\n    other => other?,\n}","preventionTips":["Copy hashes from the queue listing output, never from memory","Use at least 7-character hash prefixes","Remember approvals remove entries from the queue","Confirm you are in the repo that owns the queue state"],"tags":["git","queue","lookup-failed","user-input"],"backgroundTag":"resource-not-found","analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}