mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-22 05:49:33 +01:00
An in-workspace .md path clicked in the terminal went to the log viewer (tail -f, a "streaming" header over raw text), because md was kept out of FILE_PREVIEW_EXTENSIONS on purpose; every other surface already rendered it. Owner decision 2026-10-13: markdown is a document to read, so md and markdown join FILE_PREVIEW_EXTENSIONS and a click or tap opens the file preview, rendered by default with the MD pill for source. The main pane, every grid tile and the split's Pane B share the link provider, so all of them route the same way. Other in-workspace text (.log, .txt, .json, code) keeps the log viewer and its live follow. FILE_PATH_LINK_PATTERN now also links `.markdown` and `.htm`, which were not clickable at all. Tests: file-preview-markdown.test.ts now asserts md and markdown ARE routed to the preview (and plain text is not); terminal-touch-tap pins a tapped .md, .markdown and .html opening the preview while .log, .txt and .json open the log viewer, and a tile-registered provider routing the same way against the tile's own session. Docs: CLAUDE.md, the architecture invariants and the wiki (Working With Files, Mobile Guide). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>