Skip to content

Conversation

@slkzgm
Copy link
Contributor

@slkzgm slkzgm commented Jan 20, 2026

Part of the optional remote backend mode RFC (#54).

This PR builds on the remote proxy work merged in #121.

What

  • Proxies daemon workspace-management methods from the app when backendMode=remote.
  • Adds WSL path normalization so Windows UNC paths like \\wsl$\\<distro>\\... / \\wsl.localhost\\<distro>\\... can be converted to WSL paths (/home/...) before being sent to the daemon.

Why

In remote mode the daemon owns the filesystem and workspace registry. The app needs a thin forwarding layer so the existing UI flows (add/connect/list workspaces, file listing) work without changing default local behavior.

Notes

  • Opt-in only (default backendMode=local remains unchanged).
  • This keeps the UI surface stable by keeping the same Tauri command entrypoints.

Validation

  • npm ci
  • npm run typecheck
  • npm run build

Rust compilation/tests require platform WebKitGTK deps on Linux; CI should cover this.

@Dimillian
Copy link
Owner

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d910efbaa2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@slkzgm
Copy link
Contributor Author

slkzgm commented Jan 22, 2026

Addressed the Codex P2 inline note: is now normalized via the same WSL UNC path normalization used for workspace/image paths before proxying in remote mode.

@slkzgm slkzgm force-pushed the pr6-remote-workspace-ops-client-v2 branch from 6308582 to 9e1973f Compare January 22, 2026 10:34
@Dimillian
Copy link
Owner

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6301d40d08

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 518 to 522
if remote_backend::is_remote_mode(&*state).await {
let path = remote_backend::normalize_path_for_remote(path);
let codex_bin = codex_bin.map(remote_backend::normalize_path_for_remote);
let response = remote_backend::call_remote(
&*state,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep local workspace cache in sync in remote mode

In remote mode this early return skips updating state.workspaces, but git commands like get_git_status (src-tauri/src/git.rs) still resolve workspaces from that local cache. After adding a workspace in remote mode, those commands will now return “workspace not found,” so the git status/diff UI won’t refresh for the new workspace. Consider mirroring the remote response into state.workspaces (or proxying git commands) so the local cache stays consistent.

Useful? React with 👍 / 👎.

@Dimillian Dimillian merged commit 6a0aadd into Dimillian:main Jan 25, 2026
5 checks passed
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