Skip to content

Dot-relative chat file links resolve from filesystem root #169

Description

@AnobleSCM

Symptom

In Berd 0.6.2, inside the main window with a valid attached session folder, a Markdown link such as [Open](./report.html) fails with:

File not found: /report.html (session cwd: /Users/.../project)

The same existing file opens when the link destination is written as report.html. External HTTPS links also open normally.

Cause

The Markdown hardening pipeline rewrites ./report.html and ../report.html to /report.html before the artifact click handler resolves the destination against the session working directory.

This is separate from #166, which covers opener permissions outside $HOME.

Acceptance

  • Preserve safe ./ and ../ Markdown destinations exactly through rendering.
  • Continue blocking unsafe schemes and forged internal sentinels.
  • Cover both dot-relative forms with renderer-level regression tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions