fix: correct artifact path regex

This commit is contained in:
Benjamin Shafii
2026-01-18 08:57:18 -08:00
parent a6c5670b01
commit 77088ba110
4 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "@different-ai/openwork",
"private": true,
"version": "0.1.17",
"version": "0.1.18",
"type": "module",
"scripts": {
"dev": "tauri dev",

View File

@@ -1,6 +1,6 @@
[package]
name = "openwork"
version = "0.1.17"
version = "0.1.18"
description = "OpenWork"
authors = ["Different AI"]
edition = "2021"

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "OpenWork",
"version": "0.1.17",
"version": "0.1.18",
"identifier": "com.differentai.openwork",
"build": {
"beforeDevCommand": "pnpm dev:web",

View File

@@ -144,7 +144,7 @@ export default function SessionView(props: SessionViewProps) {
const resolveArtifactPath = (artifact: ArtifactItem) => {
const rawPath = artifact.path?.trim();
if (!rawPath) return null;
if (/^(?:[a-zA-Z]:[\\/]|~[\\/]|\//.test(rawPath)) {
if (/^(?:[a-zA-Z]:[\\/]|~[\\/]|\/)/.test(rawPath)) {
return rawPath;
}