Default to the official qwen3.5 tag, report per-root match counts

- Replace the community uncensored model tag with qwen3.5:latest from the
  official Ollama library; document a fixed-size tag for reproducibility.
- Add match_count to each search report so a truncated merged list shows
  which root was cut.
- Name the owner.json path in the PID identity error and document the
  recovery step.
- Record authorship, review and AI operator in the README.

Authored-by: OpenAI Astra
Reviewed-by: Claude (Anthropic) <noreply@anthropic.com>
Co-authored-by: Claude (Anthropic) <noreply@anthropic.com>
AI-Operator: H.G.O.D.
Original-commit: 8151ec60161f784707aeb4f11b07f9f71707d88e
This commit is contained in:
Jeuner 2026-09-08 18:54:05 +00:00
parent b5031ac2bc
commit 5e58144649
5 changed files with 31 additions and 10 deletions

View file

@ -71,9 +71,14 @@ def query_roots(roots, queries, regex, limit, fresh):
for name, root in roots:
for query in queries:
result = engine.search(root, query, regex=regex, limit=limit, fresh=fresh)
for match in result.pop("matches"):
found = result.pop("matches")
for match in found:
matches[(match["path"], match["line"])] = match
reports.append({"root": name, "query": query, **result})
# Report the per-root count; the merged list is cut to limit and can
# otherwise drop a whole root without saying which one.
reports.append(
{"root": name, "query": query, "match_count": len(found), **result}
)
ordered = sorted(matches.values(), key=lambda m: (m["path"], m["line"]))
return {
"matches": ordered[:limit],

View file

@ -9,7 +9,7 @@ from pathlib import Path
import re
import tempfile
MODEL = "srchmnmichael/qwen3.5-9B-uncensored:latest"
MODEL = "qwen3.5:latest"
EXCLUDES = [
".git",
"node_modules",

View file

@ -102,7 +102,8 @@ def owned_pid(directory):
or "serve" not in command
):
raise SearchError(
"PID identity changed; refusing to signal an unrelated process."
"PID identity changed; refusing to signal an unrelated process. "
f"Verify PID {pid}, then remove {owner} to clear stale ownership."
)
return pid