diff --git a/scripts/commands/context.py b/scripts/commands/context.py index 94170cb4..650fa164 100644 --- a/scripts/commands/context.py +++ b/scripts/commands/context.py @@ -136,7 +136,12 @@ def _build_namespace(base_args, check_name: str) -> argparse.Namespace: ns.name = getattr(base_args, "name", None) ns.direction = getattr(base_args, "direction", None) or "up" ns.depth = getattr(base_args, "depth", None) or 10 - ns.domain = getattr(base_args, "domain", None) + # trace_engine.trace_symbol() checks `domain in ("backend", "auto")` + # / `("frontend", "auto")` — a bare None here matches neither branch, + # so every trace silently returned 0 callers/callees regardless of + # symbol or workspace. Must default to "auto" like trace.py's own + # standalone add_args default, not fall through to None. + ns.domain = getattr(base_args, "domain", None) or "auto" ns.limit = getattr(base_args, "limit", None) or 20 ns.offset = getattr(base_args, "offset", 0) ns.max_results = 1000 diff --git a/scripts/commands/search.py b/scripts/commands/search.py index 9b3496cd..b9cce18d 100644 --- a/scripts/commands/search.py +++ b/scripts/commands/search.py @@ -93,7 +93,7 @@ def _run_semantic(args, workspace) -> Dict[str, Any]: def _run_symbol(args, workspace) -> Dict[str, Any]: - from symbols_engine import search_symbols + from search_engine import search_symbols domain = getattr(args, "domain", None) or "all" fuzzy = getattr(args, "fuzzy", False) limit = getattr(args, "limit", None) or 20