Fix phone keyboard and touch targets, render notes as Markdown

This commit is contained in:
Ian Gulliver
2026-10-22 06:33:03 -07:00
parent e2d747d7d3
commit 188a458930
7 changed files with 59 additions and 36 deletions
+5 -1
View File
@@ -1054,7 +1054,11 @@ private func toolTarget(_ input: (any Sendable)?, _ root: String) -> String {
guard let path = (i?["file_path"] ?? i?["path"]) as? String else {
return ""
}
return relative(path, root)
let short = relative(path, root)
if short != path || !path.hasPrefix("/") {
return short
}
return URL(fileURLWithPath: path).lastPathComponent
}
private func relative(_ path: String, _ root: String) -> String {