Skip to content

fix: Fixed editor mode file open failing - #634

Merged
benjaminshafii merged 2 commits into
different-ai:devfrom
AshhKetchup:fix-editor-mode-file-open-624
Feb 21, 2026
Merged

benjaminshafii merged 2 commits into
different-ai:devfrom
AshhKetchup:fix-editor-mode-file-open-624

Conversation

@AshhKetchup

Copy link
Copy Markdown
Contributor

fix(editor): handle paths with spaces in artifact file open (#624 )

File paths containing spaces (e.g., "Application Support") were being
incorrectly extracted by the artifact path regex, resulting in truncated
paths like "Support/com.differentai.openwork.dev/..." that couldn't be
resolved.

Changes:

  • Add cleanArtifactPath() to detect and fix truncated system paths by
    extracting the relative portion after "workspaces//"
  • Enhance toWorkspaceRelativeForApi() to handle truncated absolute paths
    by finding overlapping suffixes between workspace root and file path
  • Add prerequisite checks in openMarkdownEditor() for client connection
    and workspace ID before attempting to open files
  • Reject paths containing app bundle identifiers (com.*.openwork) as a
    safety check

@vercel

vercel Bot commented Feb 21, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-software Ready Ready Preview, Comment Feb 21, 2026 11:57am

@vercel

vercel Bot commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

@AshhKetchup is attempting to deploy a commit to the 0 Finance Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@benjaminshafii
benjaminshafii merged commit 5699e19 into different-ai:dev Feb 21, 2026
8 checks passed

This branch had an error being deployed

1 failed and 2 active deployments
Preview – openwork-software — 307fafda Deployed Feb 21, 2026 by vercel[bot]
Preview – openwork-share — 307fafda Deployed Feb 21, 2026 by vercel[bot]
Preview – openwork-app — 307fafda Deployed Feb 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants