You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Inbox: relative .md links in attachments navigate to the server root instead of opening the document #2230
A relative link to an existing sibling Markdown file is resolved against the Inbox web origin, not the attached document's directory. It leaves the thread URL without displaying the linked document. Standalone Annotate opens the same sibling document inline.
Reproduction
In an empty directory, run this Python fixture generator (all content is synthetic):
frompathlibimportPathimportbase64Path('assets').mkdir(exist_ok=True)
Path('assets/sample.png').write_bytes(base64.b64decode('iVBORw0KGgoAAAANSUhEUgAAAEAAAAAgCAIAAAAt/+nTAAAATklEQVR4nO3PUQkAIBTAwBfHYMY2jCH8OITBAtxm7fN1wwUNaEEDWtCAFjSgBQ1oQQNa0IAWNKAFDWhBA1rQgBY0oAUNaEEDWtCAFjx2AWvKQKaxk0G4AAAAAElFTkSuQmCC'))
Path('guide.md').write_text(
'# Attachment preview repro\n\n''[Jump to target](#target-section)\n\n''[Open linked document](peer.md)\n\n''\n\n'+''.join(f'Public filler paragraph {i+1}. This is sample text to put the destination below the fold.\n\n'foriinrange(65))
+'## Target section\n\nTarget marker.\n'
)
Path('peer.md').write_text('# Linked document\n\nPublic sample destination.\n')
Start plannotator inbox --no-open.
Use the Inbox MCP send_message tool with project_path set to this directory and attachments containing the absolute path to guide.md.
Open that thread and click the guide.md attachment.
Click Open linked document ([Open linked document](peer.md)). Both files already exist in the same directory.
Compare with plannotator annotate guide.md (dismiss first-run announcements if shown).
Actual vs expected
Surface
Result after clicking peer.md
Linked document heading visible
Standalone Annotate
Opens the sibling document inline; URL path remains /
Yes: “Linked document”
Inbox Markdown attachment
Browser navigates to origin-root /peer.md
No
Expected: resolve the sibling relative to guide.md, within the allowed document/project scope, and open it in the attachment/document viewer rather than treating it as a root-level web route. Merely rendering the browser's root-relative URL does not open the existing local document.
Environment
Plannotator: official 0.28.32, Darwin ARM64 binary.
Retested the original guide.md → peer.md synthetic fixture on the official v0.28.36 stable binary (macOS Apple silicon, fresh in-memory Chromium 155.0.8059.12, 1440×900, isolated HOME/data directory).
The issue still reproduces:
In the Inbox Markdown attachment, clicking Open linked document navigates the current page to the Inbox server's /peer.md URL.
The destination's Linked document heading does not open in the attachment/document viewer.
Positive control: standalone plannotator annotate guide.md opens the same relative link successfully in the viewer, without navigating to the server root path.
The original issue's reproduction steps and expected behavior still apply. This is a release retest, not a claim about an untested development branch. No private documents were used.
Activity
zane668 commentedon Oct 29, 2026
Retested the original
guide.md→peer.mdsynthetic fixture on the official v0.28.36 stable binary (macOS Apple silicon, fresh in-memory Chromium 155.0.8059.12, 1440×900, isolated HOME/data directory).The issue still reproduces:
/peer.mdURL.plannotator annotate guide.mdopens the same relative link successfully in the viewer, without navigating to the server root path.The original issue's reproduction steps and expected behavior still apply. This is a release retest, not a claim about an untested development branch. No private documents were used.