recommend: an unreadable allowance never hides a worker. done / next: report

This commit is contained in:
swaits committed 2026-11-23 17:00:55 -07:00
1 parent 757442d898
commit 1c886c0f6c
1 file changed
+4 -1
+4 -1
View File
@@ -1160,7 +1160,10 @@ def recommend(kind, difficulty, cwd=None, own_model=None):
other worker is usable."""
records = read_records()
candidates, _tools = _cached_candidates(records)
_D.apply_allowances(candidates, cached_only=True) # a hook never asks a provider; the last reading stands
try:
_D.apply_allowances(candidates, cached_only=True) # a hook never asks a provider; the last reading stands
except Exception as e: # an allowance that cannot be read changes nothing about who is recommended
store.log_error("recommend-allowance", e)
candidates, _cold, _x = routable_candidates(candidates, records)
prefs = effective_prefs(kind, difficulty, cwd or os.getcwd())
candidates, _limited = apply_limits(candidates, prefs)