Skip to content

DB and diff commands should not call Path.GetFullPath on SQLite file URIs #3221

Description

@Widthdom

Problem

DB and diff command output normalizes SQLite file: URI inputs with Path.GetFullPath, which is path normalization for filesystem paths rather than URI display.

Evidence

  • src/CodeIndex/Cli/DbCommandRunner.cs uses Path.GetFullPath(isUri ? dbPath : dbPath) for integrity/schema/prune output.
  • src/CodeIndex/Cli/DiffCommandRunner.cs follows the same pattern for DB comparison reporting.

Suggested direction

Use a URI-aware display value for SQLite URI inputs and filesystem path normalization only for normal file paths. Add JSON and human-output tests for file: DB URIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions