Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Remote backend: adding workspaces uses local filesystem and rejects remote paths

未关闭
#598 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript

调研方向

Start by tracing the desktop UI workspace-add flow and the remote API/CLI workspace path used by the daemon. Compare local path validation with remote-mode behavior, then verify that a remote workspace can be added without client-side rejection using the Windows-to-WSL and macOS-to-Linux reproductions.

由索引模型根据 Issue 内容生成。

描述

Summary

When Backend mode = Remote, adding a workspace from the desktop client still validates paths against the client filesystem instead of the remote daemon filesystem.

This makes it impossible to add workspaces in common server/client setups such as:

  • Windows UI -> WSL remote daemon
  • macOS UI -> remote Linux daemon

The UI shows errors like:

Added 0 workspaces. Skipped 1 invalid path (not a folder).

Expected behavior

When using a remote backend, adding a workspace should be remote-aware:

  • either browse/select paths from the remote machine's filesystem, or
  • accept/normalize remote path formats such as WSL paths and forward them to the daemon for validation.

Actual behavior

The desktop client opens the local folder picker and validates against the local machine.

That means:

  • Windows client can browse into WSL from Explorer and select a folder, but the selected WSL/Linux server folder is still rejected by the UI as invalid in remote mode
  • macOS client cannot add Linux server folders from the UI
  • even when the remote daemon connection is healthy, workspace creation fails with invalid path (not a folder)

Reproduction

Windows -> WSL remote daemon
  1. Run CodexMonitor daemon in WSL/Linux.
  2. Connect CodexMonitor on Windows with Backend mode = Remote.
  3. Try to add a workspace that exists on the WSL/Linux side, including one selected through Explorer under \\wsl\## Summary When Backend mode = Remote`, adding a workspace from the desktop client still validates paths against the client filesystem instead of the remote daemon filesystem.

This makes it impossible to add workspaces in common server/client setups such as:

  • Windows UI -> WSL remote daemon
  • macOS UI -> remote Linux daemon

The UI shows errors like:

Added 0 workspaces. Skipped 1 invalid path (not a folder).

Expected behavior

When using a remote backend, adding a workspace should be remote-aware:

  • either browse/select paths from the remote machine's filesystem, or
  • accept/normalize remote path formats such as WSL paths and forward them to the daemon for validation.

Actual behavior

The desktop client opens the local folder picker and validates against the local machine.

That means:

  • Windows client can browse into WSL from Explorer and select a folder, but the selected WSL/Linux server folder is still rejected by the UI as invalid in remote mode
  • macOS client cannot add Linux server folders from the UI
  • even when the remote daemon connection is healthy, workspace creation fails with invalid path (not a folder)

Reproduction

Windows -> WSL remote daemon
  1. Run CodexMonitor daemon in WSL/Linux.
  2. Connect CodexMonitor on Windows with Backend mode = Remote.
    or \\wsl\.localhost.
  3. Observe:
    • Windows can browse into WSL folders via Explorer
    • the selected WSL folder is still rejected by the UI in remote mode
    • error similar to Added 0 workspaces. Skipped 1 invalid path (not a folder).
macOS -> Linux remote daemon
  1. Run CodexMonitor daemon on a Linux machine.
  2. Connect CodexMonitor on macOS with Backend mode = Remote.
  3. Try to add a workspace from the desktop UI.
  4. Observe that the local macOS picker is used and remote Linux paths cannot be added.

Prior context

This remote behavior was introduced in #54, but multiple users are still hitting this exact workspace-add problem and no clear workaround has been provided.

Relevant reports in #54 comments include:

  • WSL/Windows users reporting path errors and inability to add workspaces from the UI
  • macOS user reporting that remote mode still opens the local macOS folder picker

Why this matters

Remote backend mode is working enough to connect and run against the server, but without a remote-aware workspace-add flow it is effectively incomplete for real WSL/Linux remote usage.

Possible solutions

  1. Add a remote filesystem browser / remote folder picker when Backend mode = Remote.
  2. Add explicit support for WSL and other remote path formats, and let the daemon validate them.
  3. In remote mode, avoid client-side is this a local folder? checks and delegate validation to the daemon.
  4. Provide a documented fallback/workaround if full remote browsing is not ready yet.

Temporary workaround

The only known workaround today is to add the workspace directly on the daemon side via remote API / CLI rather than through the desktop UI.

That is not discoverable and is not documented as an official workflow.

主要语言
TypeScript
星标
4.3k
派生
416
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Dimillian/CodexMonitor 的其他 Issue

查看 Dimillian/CodexMonitor 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。