diff --git a/src/scribe/services/plugin_context.py b/src/scribe/services/plugin_context.py index a391c63..3ce4dda 100644 --- a/src/scribe/services/plugin_context.py +++ b/src/scribe/services/plugin_context.py @@ -1300,7 +1300,7 @@ async def build_write_path_hint( user_id=user_id, source="write_path_rule", query=code or path, threshold=cfg["rule_threshold"], limit=RULEHINT_LIMIT, project_id=project_id, - is_task=None, results=hits, duration_ms=rule_ms, + is_task=None, results=fresh, duration_ms=rule_ms, # What the ranker found and this session had already been told. # Without it a zero row cannot say whether the bar was too high or # the reader was simply ahead of it — and only the first is a @@ -1404,7 +1404,7 @@ async def build_tool_rule_hint( user_id=user_id, source="pre_tool_rule", query=query, threshold=cfg["rule_threshold"], limit=RULEHINT_LIMIT, project_id=project_id, - is_task=None, results=hits, duration_ms=duration_ms, + is_task=None, results=fresh, duration_ms=duration_ms, # See the sibling arm. It matters more here: this arm fires on every # Bash call, so a long session excludes its way to an all-zero row # and the threshold looks wrong when nothing about it is.