Add show_page and show_file, and let file tools reach any path

This commit is contained in:
Ian Gulliver
2026-10-21 18:29:01 -07:00
parent 585c8ba5f8
commit 524bc0252e
11 changed files with 540 additions and 496 deletions
+1 -1
View File
@@ -509,7 +509,7 @@ private struct Attachments: View {
let path = a.path ?? ""
let root = (store.findTask(taskId)?.worktreePath ?? "") + "/"
let rel = path.hasPrefix(root) ? String(path.dropFirst(root.count)) : path
if isPage(rel) && !rel.hasPrefix("/") {
if isPage(rel) {
Button(path) {
store.openFile(taskId, rel)
}