Skip to content

Path mismatch: graph.db relative paths vs sandbox /testbed/ absolute #7

Description

@harneet2512

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions