Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scripts/commands/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/commands/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading