Problem
graph.db stores relative paths (e.g., beets/util.py). The OpenHands sandbox uses absolute paths (/testbed/beets/util.py). GT tool lookups fail silently because no node matches the absolute path.
Current Fix
_normalize_path() in tools.py strips the /testbed/ prefix. Working but hardcoded to OH sandbox structure.
Proper Fix
Make path normalization configurable:
- Read base path from env var
GT_SANDBOX_PREFIX (default: /testbed/)
- Or store base path in graph.db metadata during indexing
- Add test coverage for path normalization edge cases
Priority: Medium — fixed for OH but brittle
Category: Infrastructure
Problem
graph.db stores relative paths (e.g.,
beets/util.py). The OpenHands sandbox uses absolute paths (/testbed/beets/util.py). GT tool lookups fail silently because no node matches the absolute path.Current Fix
_normalize_path()in tools.py strips the/testbed/prefix. Working but hardcoded to OH sandbox structure.Proper Fix
Make path normalization configurable:
GT_SANDBOX_PREFIX(default:/testbed/)Priority: Medium — fixed for OH but brittle
Category: Infrastructure