Skip to content

Codex Desktop on Windows + WSL repeatedly scans .codex/.tmp/plugins over /mnt/c, causing severe per-command latency #26149

Open

Description

@fcrhu

Summary

Codex Desktop on Windows with a WSL project is extremely slow for every command/tool invocation.

This does not appear to be caused by WSL itself, the repository, Git, Node, .NET, or shell startup. The same project is fast when using Codex CLI directly inside WSL.

Using strace on the WSL codex app-server process shows that a large share of file/process syscalls repeatedly touch the Desktop plugin cache under:

/mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins

This suggests that Codex Desktop WSL mode repeatedly scans plugin/cache files over /mnt/c, causing severe latency.

Environment

  • Codex Desktop version: OpenAI.Codex_26.601.2237.0_x64__2p2nqsd0c76g0
  • Codex CLI version: codex-cli 0.136.0
  • OS: Windows + WSL
  • WSL distro: Ubuntu 26.04
  • Project opened from WSL path:
    \\wsl$\Ubuntu\home\<WslUser>\repos\<RepoName>
  • Repository path inside WSL:
    /home/<WslUser>/repos/<RepoName>

Observed behavior

Codex Desktop in WSL mode is extremely slow for every command/tool invocation, not only during initial startup.

Even simple read-only prompts take a long time before or between shell commands. The same repository is fast when using Codex CLI directly inside WSL.

The WSL codex app-server process runs as:

/mnt/c/Users/<WindowsUser>/.codex/bin/wsl/<hash>/codex app-server --analytics-default-enabled

Its process environment includes Windows-backed paths:

CODEX_HOME=/mnt/c/Users/<WindowsUser>/.codex
TEMP=/mnt/c/Users/<WindowsUser>/AppData/Local/Temp
TMP=/mnt/c/Users/<WindowsUser>/AppData/Local/Temp
PWD=/mnt/c/Program Files/WindowsApps/OpenAI.Codex_<version>/app/resources

What was ruled out

WSL itself is fast:

wsl.exe --exec /bin/true: ~0.1s

Interactive Bash startup is fast after fixing unrelated shell initialization:

bash -i -c "exit": ~0.35s

Git is fast:

git status -sb: ~0.2s

Repository traversal is fast when excluding known heavy/generated folders:

find excluding node_modules, .angular/cache, bin, obj, etc.: ~0.35s

Backend and frontend builds complete successfully inside WSL.

Codex CLI directly inside WSL is fast on the same project.

Plugin cache details

The Desktop plugin cache under /mnt/c contains thousands of files/directories:

Path: /mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins
Size: ~38 MB
Files: ~4,646
Directories: ~2,400

Previously the cache was approximately:

Size: ~55 MB
Files: ~4,675
Directories: ~2,411

Temporarily renaming this directory made Codex Desktop faster, but after restart/re-scan the latency returned.

strace evidence

While Codex Desktop was slow, I attached strace to the WSL codex app-server process:

sudo timeout 20 strace -f -tt -T \
  -e trace=file,process \
  -p <codex-app-server-pid> \
  -o /tmp/codex-strace-plugins.log

Summary from a 20-second sample:

total file/process syscall lines: 17,481
lines touching /mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins: 7,426
lines touching actual repo under /home/<WslUser>/repos/<RepoName>: 569

So around 42% of logged file/process syscalls touched the Codex plugin cache, while only around 3% touched the actual repository.

Example paths observed in strace:

/mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins/plugins/life-science-research/skills/gtex-eqtl-skill/SKILL.md
/mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins/plugins/life-science-research/skills/gwas-catalog-skill/SKILL.md
/mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins/plugins/life-science-research/.codex-plugin/plugin.json
/mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins/plugins/life-science-research/.claude-plugin/plugin.json

The trace showed many repeated calls such as:

readlink(...)
stat(...)
lstat(...)
open(...)

against files and directories under /mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins.

Expected behavior

Codex Desktop WSL mode should not repeatedly scan thousands of plugin/cache files from /mnt/c for every command/tool invocation.

High-churn cache/temp/plugin data should either live inside the Linux filesystem or be cached efficiently so that simple commands do not repeatedly incur /mnt/c traversal overhead.

Actual behavior

Codex Desktop WSL mode repeatedly performs many filesystem operations against:

/mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins

This causes severe latency for each command/tool invocation.

Workaround

Using Codex CLI directly inside WSL is fast and does not show the same slowdown.

Temporarily renaming the Desktop plugin cache directory improves performance briefly:

mv /mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins \
   /mnt/c/Users/<WindowsUser>/.codex/.tmp/plugins.bak

However, Codex Desktop recreates/re-scans the plugin cache later, and the slowdown returns.

Privacy note

All usernames, repository names, hostnames, and company-specific paths in this report have been anonymized.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    skills
    on Jun 3, 2026
  2. github-actions commented on Jun 3, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. ckorherr commented on Jun 3, 2026

    @ckorherr

    Thanks for the workaround. I can actually use Codex again now.
    You can create a file called "plugins" so the folder does not get recreated.

  4. w1peee commented on Jun 3, 2026

    @w1peee

    Thanks for the suggestion.
    For me, the solution was to clear the contents of C:\Users\User\.codex\.tmp\plugins\plugins\
    After that, Codex became fast again, and new plugins are no longer being added automatically.

  5. stankitsis commented on Jun 3, 2026

    @stankitsis

    Confirmed on a VS Code dev container (WSL2/Docker, /root/.codex bind-mounted from C:\ over 9p/drvfs). Plugin cache /root/.codex/.tmp = ~40MB / ~4,734 files.

    Moving ONLY that dir onto a native overlay fs took the bundled 0.136.0-alpha.2 engine from 2m21s to ~5s. Same engine, same config, same auth; only the cache filesystem changed (it even rebuilt bigger, 77MB / ~4,791 files, and still ~5s). So the regression is per-turn cache rescanning, amplified by the slow 9p mount.

    Workaround: put ~/.codex/.tmp on a native filesystem like a Docker volume mounted at /root/.codex/.tmp (keep config.toml/auth.json on the host mount for persistence).

  6. garfieldmax commented on Jun 3, 2026

    @garfieldmax

    Workaround: put ~/.codex/.tmp on a native filesystem like a Docker volume mounted at /root/.codex/.tmp (keep config.toml/auth.json on the host mount for persistence).
    hmm but codex app still lives in windows. How can you move it there?

    i have same setup. windows +wsl (where repo is)

  7. stankitsis commented on Jun 3, 2026

    @stankitsis

    Workaround: put ~/.codex/.tmp on a native filesystem like a Docker volume mounted at /root/.codex/.tmp (keep config.toml/auth.json on the host mount for persistence).
    hmm but codex app still lives in windows. How can you move it there?

    i have same setup. windows +wsl (where repo is)

    The Docker volume bit is specific to my setup (a docker-compose dev container). If you have Windows + WSL and no container, you need a different mechanism, but the same idea: get ~/.codex/.tmp off /mnt/c and onto the WSL-native ext4 disk. You're not moving the Codex app, just the cache folder that the WSL-side app-server scans every turn.

    You need to find out where CODEX_HOME resolves. In your WSL shell:
    echo $CODEX_HOME
    mount | grep -i codex # or check if ~/.codex is under /mnt/c
    If .codex lives under /mnt/c, that's the slow path.

    Fix:
    1 (simpler). Point CODEX_HOME at a WSL-native path so the agent stops reading the Windows .codex over /mnt/c (e.g. export CODEX_HOME=$HOME/.codex with $HOME on the WSL ext4 disk). The trade-off here is login won't be shared with the Windows Desktop app, so you'd sign in once inside WSL.
    2. The OP already noted running the Codex CLI directly inside WSL avoids the slowdown, which is the same thing: a WSL-native CODEX_HOME instead of one on /mnt/c.

    If you must keep .codex on the Windows side for the desktop app, you can instead symlink just the .tmp cache to a WSL-native path, but that's much messier.

  8. shoui520 commented on Jun 4, 2026

    @shoui520

    Can confirm this is a real issue for me too.

  9. VaniaMi commented on Jun 5, 2026

    @VaniaMi

    Confirmed.

    My plugin cache was:

    /mnt/c/Users//.codex/.tmp/plugins
    46M
    7418 entries

    After stopping Codex Desktop and renaming that folder, a simple ping went from >60 seconds to under 5 seconds after restart.

    So the root cause is very likely the Desktop app-server repeatedly touching/scanning the plugin cache under /mnt/c/... in Windows + WSL mode.

  10. marceloangelopita1 commented on Jun 5, 2026

    @marceloangelopita1

    I hit a very similar issue on Windows + WSL with Codex Desktop.

    Environment:

    • Codex Desktop: 26.602.4764.0
    • Windows + Ubuntu WSL2
    • Project opened from WSL path: /home/<wsl-user>/projetos/sudoku
    • Codex Desktop WSL app-server path: /mnt/c/Users/<windows-user>/.codex/bin/wsl/<hash>/codex app-server
    • CODEX_HOME in the Desktop WSL app-server environment: /mnt/c/Users/<windows-user>/.codex
    • TEMP/TMP also pointed to /mnt/c/Users/<windows-user>/AppData/Local/Temp
    • VS Code Codex extension on the same WSL/project was fast.

    Symptoms:

    • Codex Desktop stayed in “Thinking” for minutes on trivial prompts.
    • Example prompt: “respond only ok” / “run pwd and nothing else”.
    • The same project worked normally in the VS Code extension.
    • GitHub CLI being missing on Windows was fixed separately, but did not fix the slowness.

    Local observations:

    • Windows-side Codex .codex directory was about 381 MB.
    • /mnt/c/Users/<windows-user>/.codex/.tmp/plugins was about 65 MB.
    • Desktop WSL app-server was running with CODEX_HOME=/mnt/c/Users/<windows-user>/.codex.
    • After disabling apps/plugins and renaming the plugin cache, trivial prompts became fast again.

    Workaround that fixed it:

    1. Backed up C:\Users\<windows-user>\.codex\config.toml

    2. Added/changed:

      [features]
      apps = false
      plugins = false
      
      [plugins."chrome@openai-bundled"]
      enabled = false
    3. Renamed:
      C:\Users\<windows-user>\.codex\.tmp\plugins
      to:
      C:\Users\<windows-user>\.codex\.tmp\plugins.disabled-<timestamp>

    4. Restarted Codex Desktop.

    Result:

    • Prompt latency dropped from minutes to around 1s for a simple pwd test.
    • This strongly suggests the slowdown was related to Desktop WSL mode reading/scanning Windows-side apps/plugins/cache over /mnt/c, not the model, WSL itself, Git, GitHub CLI, or the repository.
  11. artemrizhov commented on Jun 8, 2026

    @artemrizhov

    This may also be related to #25715

    I can confirm that moving the Codex Desktop CODEX_HOME from the Windows filesystem to the WSL/Linux filesystem fixed the severe slowdown for me.

    Observed behavior before the workaround:

    • Project was already located inside the Linux filesystem, not under /mnt/c.

    • Codex TUI inside WSL was fast: asking it to inspect the project took about 30 seconds.

    • Codex Desktop on Windows in WSL mode was much slower on the same kind of task:

      • about 1 minute on “Setting up workspace”
      • about 1 minute on “Thinking”
      • then file scanning
      • then another long “Thinking” pause
      • total around 7 minutes
    • The slowdown happened repeatedly between steps, especially during “Thinking”, so it did not look like normal model latency.

    The workaround that helped:

    1. Fully exit Codex Desktop via Exit, not just close the window.

    2. I created a separate Linux-native Codex home for Desktop:

    mkdir -p ~/.codex-desktop
    1. I copied the existing Windows Codex home into WSL with rsync:
    rsync -a --info=progress2 \
      /mnt/c/Users/artem/.codex/ \
      /home/artem/.codex-desktop/
    1. I added this to ~/.profile inside WSL:
    if [ "${CODEX_INTERNAL_ORIGINATOR_OVERRIDE:-}" = "Codex Desktop" ]; then
      export CODEX_HOME="$HOME/.codex-desktop"
    fi
    1. I restarted Codex Desktop and verified that the WSL codex app-server process picked it up:
    pgrep -af "codex.*app-server|app-server"
    
    PID=<pid>
    tr '\0' '\n' < /proc/$PID/environ | grep -E 'CODEX_HOME|CODEX_INTERNAL'

    Expected result:

    CODEX_INTERNAL_ORIGINATOR_OVERRIDE=Codex Desktop
    CODEX_HOME=/home/artem/.codex-desktop

    After this, Codex Desktop became fast again.

    My conclusion: in this case the bottleneck was not the project location, WSL itself, Git, or model speed. The problem appears to be Codex Desktop using Windows-backed .codex state/cache from inside WSL, especially paths under /mnt/c/Users/.../.codex. Moving Desktop’s CODEX_HOME to the Linux filesystem removed the repeated Windows↔WSL filesystem overhead.

  12. WilliamRickard commented on Oct 14, 2026

    @WilliamRickard

    Additional Windows Desktop + WSL reproduction on a newer build (14 Oct 2026), with measured directory traversal and idle-resource impact.

    Environment (anonymised):

    • Windows 11, WSL2 Ubuntu, Windows Codex Desktop package OpenAI.Codex_26.1007.9446.0, WSL engine codex-cli 0.162.0-alpha.17.2.
    • Desktop-launched Linux codex app-server: CODEX_HOME=/mnt/c/Users/<user>/.codex; CODEX_SQLITE_HOME=/home/<user>/.codex/sqlite. The working project is already on native WSL ext4.
    • Windows CODEX_HOME/.tmp/plugins contains 3,676 files and 1,945 directories; plugins/cache contains 1,239 files and 450 directories.

    Read-only reproduction: Enumerate the same cached tree using os.walk from Windows and WSL. A separate test copied the cache once into an isolated temporary ext4 directory; this was not substituted into the live application and was automatically deleted.

    .tmp/plugins traversal Time
    Windows native 0.39 s (single run)
    WSL via /mnt/c 21.667 s median (3 runs)
    WSL from temporary ext4 copy 0.028 s median (5 runs)

    Same 3,676 files / 1,945 directories in the WSL comparisons: about 774× faster from ext4. This is a filesystem microbenchmark, not an end-to-end Codex speedup or established power saving.

    Observed background behaviour with the Desktop window minimised: In a 30-second process sample, Windows vmmemWSL averaged 52.4% of one CPU core and the WSL-integrated COM Surrogate dllhost.exe group averaged 32.4% of one core (the busy instance loads vp9fs.dll and wshhyperv.dll). These totals are observational; they do not prove how much is caused by plugin scans versus unrelated work. The WSL codex app-server separately showed a recurring ~7–15% of one core, with repeated plugin/installed and configuration-related events. Its SQLite files are already on ext4, so this is not fixed merely by setting CODEX_SQLITE_HOME.

    Request: Is there a supported cache-only override for Desktop WSL mode that keeps CODEX_HOME (auth, config, sessions) on Windows but redirects temporary/curated/plugin discovery caches to WSL-native ext4? If the June fix for #26985 addressed this, the above appears to be a regression in the October build. Please consider ensuring startup sync, plugin listing, skills discovery and cache refresh all resolve the same native runtime-cache root, with an explicit fallback and tests for Windows Desktop + WSL. The current source still derives .tmp/plugins from codex_home in codex-rs/core-plugins/src/startup_sync.rs and loader.rs.

    I avoided changing CODEX_HOME or replacing active cache directories because those risk splitting live Desktop state and disrupting unattended agents.

  13. WilliamRickard commented on Oct 14, 2026

    @WilliamRickard

    Follow-up: I traced the current openai/codex source paths and prepared a prototype opt-in cache-only patch for review. This is a source proposal, not a compiled or deployed fix.

    The current curated checkout is derived from CODEX_HOME in codex-rs/core-plugins/src/startup_sync.rs, while loader.rs separately hardcodes .tmp/plugins. The prototype introduces a WSL-only CODEX_WSL_CURATED_CACHE_ROOT path resolver (default unchanged), and ensures the curated checkout, SHA marker, sync lock and cache-refresh loader use it consistently.

    Safety/limitations: No authentication/config/session relocation; no automatic migration; no change to PluginStore's separate CODEX_HOME/plugins/cache installed-plugin root; no Desktop-side environment wiring yet. The override is intended as an upstream API proposal. It is not present in shipping Codex. The WSL path should be on native ext4, not a symlink back into DrvFS.

    Validation: git apply --check and git apply succeeded against the current fetched upstream files, including a textual round-trip. Three Linux-gated unit tests exercise legacy fallback, explicit native cache path, and rejection of relative//mnt paths. I could not compile or run the Rust tests, so maintainers should run cargo test -p codex-core-plugins curated_wsl_cache_root_tests and existing curated-plugin/marketplace suites and review formatting and security before considering it.

    Draft patch (two files, default path preserved):

    Proposed diff (180 lines)
    --- a/codex-rs/core-plugins/src/startup_sync.rs
    +++ b/codex-rs/core-plugins/src/startup_sync.rs
    @@ -29,9 +29,9 @@
     const OPENAI_PLUGINS_REPO: &str = "plugins";
     pub(crate) const OPENAI_PLUGINS_GIT_URL: &str = "https://github.com/openai/plugins.git";
     const CURATED_PLUGINS_FETCH_REF: &str = "refs/codex/curated-sync";
    -const CURATED_PLUGINS_RELATIVE_DIR: &str = ".tmp/plugins";
    -const CURATED_PLUGINS_SHA_FILE: &str = ".tmp/plugins.sha";
    -const CURATED_PLUGINS_SYNC_LOCK_FILE: &str = ".tmp/plugins.sync.lock";
    +const CURATED_PLUGINS_RELATIVE_DIR: &str = "plugins";
    +const CURATED_PLUGINS_SHA_FILE: &str = "plugins.sha";
    +const CURATED_PLUGINS_SYNC_LOCK_FILE: &str = "plugins.sync.lock";
     const CURATED_PLUGINS_BACKUP_ARCHIVE_FALLBACK_VERSION: &str = "export-backup";
     const CURATED_PLUGINS_GIT_TIMEOUT: Duration = Duration::from_secs(30);
     const CURATED_PLUGINS_HTTP_TIMEOUT: Duration = Duration::from_secs(30);
    @@ -58,8 +58,42 @@
         download_url: String,
     }
     
    +/// Resolve the curated checkout, its SHA marker and its lock together.
    +///
    +/// In Windows Desktop + WSL mode the persistent CODEX_HOME may be on DrvFS.
    +/// A native Linux cache root can be opted into without relocating auth,
    +/// configuration, sessions or plugin installation data.
    +fn curated_plugins_state_dir(codex_home: &Path) -> PathBuf {
    +    let wsl = cfg!(target_os = "linux") && std::env::var_os("WSL_DISTRO_NAME").is_some();
    +    let root = std::env::var_os("CODEX_WSL_CURATED_CACHE_ROOT").map(PathBuf::from);
    +    curated_plugins_state_dir_with_override(codex_home, root.as_deref(), wsl)
    +}
    +
    +fn curated_plugins_state_dir_with_override(
    +    codex_home: &Path,
    +    override_root: Option<&Path>,
    +    is_wsl: bool,
    +) -> PathBuf {
    +    // Preserve exact historical paths unless explicitly opted in from WSL.
    +    let default_root = codex_home.join(".tmp");
    +    if !is_wsl {
    +        return default_root;
    +    }
    +
    +    match override_root {
    +        Some(root)
    +            if root.is_absolute()
    +                && root != Path::new("/")
    +                && !root.starts_with("/mnt") =>
    +        {
    +            root.to_path_buf()
    +        }
    +        _ => default_root,
    +    }
    +}
    +
     pub fn curated_plugins_repo_path(codex_home: &Path) -> PathBuf {
    -    codex_home.join(CURATED_PLUGINS_RELATIVE_DIR)
    +    curated_plugins_state_dir(codex_home).join(CURATED_PLUGINS_RELATIVE_DIR)
     }
     
     pub fn curated_plugins_api_marketplace_path(codex_home: &Path) -> PathBuf {
    @@ -71,7 +105,7 @@
     }
     
     fn curated_plugins_sha_path(codex_home: &Path) -> PathBuf {
    -    codex_home.join(CURATED_PLUGINS_SHA_FILE)
    +    curated_plugins_state_dir(codex_home).join(CURATED_PLUGINS_SHA_FILE)
     }
     
     pub fn sync_openai_plugins_repo(
    @@ -167,8 +201,9 @@
     }
     
     fn lock_curated_plugins_startup_sync(codex_home: &Path) -> Result<File, String> {
    -    let lock_path = codex_home.join(CURATED_PLUGINS_SYNC_LOCK_FILE);
    -    std::fs::create_dir_all(codex_home.join(".tmp"))
    +    let state_dir = curated_plugins_state_dir(codex_home);
    +    let lock_path = state_dir.join(CURATED_PLUGINS_SYNC_LOCK_FILE);
    +    std::fs::create_dir_all(&state_dir)
             .map_err(|err| format!("failed to create curated plugins sync directory: {err}"))?;
         let lock_file = File::options()
             .write(true)
    @@ -187,7 +222,7 @@
         git_binary: &Path,
     ) -> Result<String, String> {
         let repo_path = curated_plugins_repo_path(codex_home);
    -    let sha_path = codex_home.join(CURATED_PLUGINS_SHA_FILE);
    +    let sha_path = curated_plugins_sha_path(codex_home);
         let remote_sha = git_ls_remote_head_sha(codex_home, git_binary)?;
         let local_sha = read_local_git_or_sha_file(&repo_path, &sha_path, git_binary);
     
    @@ -310,7 +345,7 @@
         http_client_factory: &HttpClientFactory,
     ) -> Result<String, String> {
         let repo_path = curated_plugins_repo_path(codex_home);
    -    let sha_path = codex_home.join(CURATED_PLUGINS_SHA_FILE);
    +    let sha_path = curated_plugins_sha_path(codex_home);
         let runtime = tokio::runtime::Builder::new_current_thread()
             .enable_all()
             .build()
    @@ -367,7 +402,7 @@
         curated_plugins_repo_path(codex_home)
             .join(".agents/plugins/marketplace.json")
             .is_file()
    -        && codex_home.join(CURATED_PLUGINS_SHA_FILE).is_file()
    +        && curated_plugins_sha_path(codex_home).is_file()
     }
     
     fn prepare_curated_repo_parent_and_temp_dir(repo_path: &Path) -> Result<TempDir, String> {
    @@ -1131,3 +1166,44 @@
     #[cfg(test)]
     #[path = "startup_sync_tests.rs"]
     mod tests;
    +
    +#[cfg(all(test, target_os = "linux"))]
    +mod curated_wsl_cache_root_tests {
    +    use super::*;
    +
    +    #[test]
    +    fn default_paths_remain_in_codex_home() {
    +        let home = Path::new("/mnt/c/Users/test/.codex");
    +        let state_dir = curated_plugins_state_dir_with_override(home, None, true);
    +        assert_eq!(state_dir, home.join(".tmp"));
    +        assert_eq!(state_dir.join(CURATED_PLUGINS_RELATIVE_DIR), home.join(".tmp/plugins"));
    +        assert_eq!(state_dir.join(CURATED_PLUGINS_SHA_FILE), home.join(".tmp/plugins.sha"));
    +        assert_eq!(state_dir.join(CURATED_PLUGINS_SYNC_LOCK_FILE), home.join(".tmp/plugins.sync.lock"));
    +    }
    +
    +    #[test]
    +    fn wsl_opt_in_uses_native_cache_root() {
    +        let home = Path::new("/mnt/c/Users/test/.codex");
    +        let native = Path::new("/home/test/.cache/codex-curated");
    +        assert_eq!(
    +            curated_plugins_state_dir_with_override(home, Some(native), true),
    +            native
    +        );
    +        assert_eq!(
    +            curated_plugins_state_dir_with_override(home, Some(native), false),
    +            home.join(".tmp")
    +        );
    +    }
    +
    +    #[test]
    +    fn unsafe_or_non_native_overrides_fall_back() {
    +        let home = Path::new("/mnt/c/Users/test/.codex");
    +        for path in ["/", "relative/cache", "/mnt/c/Users/test/.cache", "/mnt/cache"] {
    +            assert_eq!(
    +                curated_plugins_state_dir_with_override(home, Some(Path::new(path)), true),
    +                home.join(".tmp"),
    +                "path: {path}"
    +            );
    +        }
    +    }
    +}
    --- a/codex-rs/core-plugins/src/loader.rs
    +++ b/codex-rs/core-plugins/src/loader.rs
    @@ -19,6 +19,7 @@
     use crate::remote::RemoteInstalledPlugin;
     use crate::remote_plugin_id_resolver::RemoteInstalledPluginsSnapshot;
     use crate::remote_plugin_id_resolver::RemotePluginIdResolver;
    +use crate::startup_sync::curated_plugins_repo_path;
     use crate::store::PluginStore;
     use crate::store::plugin_version_for_source;
     use crate::store::plugin_version_for_source_with_fallback_manifest;
    @@ -484,15 +485,13 @@
         codex_home: &Path,
     ) -> Result<Vec<AbsolutePathBuf>, String> {
         let curated_marketplace_path = AbsolutePathBuf::try_from(
    -        codex_home
    -            .join(".tmp/plugins")
    +        curated_plugins_repo_path(codex_home)
                 .join(".agents/plugins/marketplace.json"),
         )
         .map_err(|_| "local curated marketplace is not available".to_string())?;
         let mut paths = vec![curated_marketplace_path];
     
    -    let api_marketplace_path = codex_home
    -        .join(".tmp/plugins")
    +    let api_marketplace_path = curated_plugins_repo_path(codex_home)
             .join(".agents/plugins/api_marketplace.json");
         if api_marketplace_path.is_file() {
             paths.push(

    The previous reproduction measured /mnt/c directory enumeration at 21.667 s median vs 0.028 s on a temporary ext4 copy, but this patch has not been benchmarked in the running app-server and does not yet establish wattage savings. A production-quality solution should consider installed-plugin cache separation and coordinated Windows Desktop environment propagation.

  14. WilliamRickard commented on Oct 15, 2026

    @WilliamRickard

    Second-stage follow-up, 15 October 2026: I extended the earlier curated-only proposal into a consistent seven-file opt-in WSL runtime-cache-root source prototype. This supersedes the diff in my previous comment.

    The existing Desktop-launched WSL CODEX_HOME remains on Windows for persistent authentication/config/session state. The proposed CODEX_WSL_RUNTIME_ROOT (not a shipping setting) is Linux+WSL-only and defaults to the old paths when unset. It consistently changes:

    • Curated sync checkout, version SHA, lock and marketplace loader to <root>/.tmp/plugins.
    • Installed plugin store, remote-plugin reconciliation and executor capability discovery to <root>/plugins/cache.
    • Legacy uninstall behaviour to avoid deleting an unmodified Windows cache when the WSL runtime root is different.
    • Shared path-resolution tests for default behaviour, opt-in, and invalid paths.

    Source verification: git apply --check --whitespace=error-all PASSED against clean default-branch source fetched today. git apply PASSED, and all seven patched files match the intended edits. Not compiled or run with Rust/Cargo. No active Codex process, service, cache or configuration was changed.

    Important blockers before production: (1) The Windows Desktop launcher currently injects CODEX_SQLITE_HOME into WSL but does not pass this proposed variable; app-server and executor environments must be aligned. (2) Existing installed-plugin bundles must be safely materialised or migrated and permission/trust tests passed. (3) Root validation must be hardened against symlinks/mount aliases, with missing-root and rollback cases tested. (4) Other runtime data, including .tmp/bundled-marketplaces and arg0 helpers, is not moved by this draft. (5) Run all related Rust tests and benchmark actual Codex idle watts; the 774× filesystem enumeration microbenchmark is not a demonstrated electricity saving.

    Source-only patch for maintainer review (seven files):

    View prototype diff
    --- a/codex-rs/core-plugin-common/src/installed.rs
    +++ b/codex-rs/core-plugin-common/src/installed.rs
    @@ -6,11 +6,97 @@
     use serde::Serialize;
     use std::cmp::Ordering;
     use std::fs;
    +use std::path::Component;
    +use std::path::Path;
    +use std::path::PathBuf;
     
     pub const DEFAULT_PLUGIN_VERSION: &str = "local";
     pub const PLUGINS_CACHE_DIR: &str = "plugins/cache";
     pub const REMOTE_PLUGIN_INSTALL_METADATA_FILE: &str = ".codex-remote-plugin-install.json";
     pub const REMOTE_PLUGIN_INSTALL_METADATA_SCHEMA_VERSION: u8 = 1;
    +
    +/// Root for frequently enumerated plugin caches; persistent Codex state stays under CODEX_HOME.
    +///
    +/// A Windows Desktop client can launch its WSL app-server with CODEX_HOME on DrvFS.
    +/// An explicit WSL-only opt-in redirects runtime caches to native Linux storage.
    +/// This is deliberately *not* an authentication, configuration or session-home override.
    +pub fn plugin_runtime_home(codex_home: &Path) -> PathBuf {
    +    let is_wsl = cfg!(target_os = "linux") && std::env::var_os("WSL_DISTRO_NAME").is_some();
    +    let override_root = std::env::var_os("CODEX_WSL_RUNTIME_ROOT");
    +    plugin_runtime_home_with_override(
    +        codex_home,
    +        override_root.as_deref().map(Path::new),
    +        is_wsl,
    +    )
    +}
    +
    +fn plugin_runtime_home_with_override(
    +    codex_home: &Path,
    +    override_root: Option<&Path>,
    +    is_wsl: bool,
    +) -> PathBuf {
    +    if !is_wsl {
    +        return codex_home.to_path_buf();
    +    }
    +    match override_root {
    +        Some(root)
    +            if root.is_absolute()
    +                && root != Path::new("/")
    +                && !root.starts_with("/mnt")
    +                && !root
    +                    .components()
    +                    .any(|part| matches!(part, Component::ParentDir)) =>
    +        {
    +            root.to_path_buf()
    +        }
    +        _ => codex_home.to_path_buf(),
    +    }
    +}
    +
    +pub fn plugin_cache_root(codex_home: &Path) -> PathBuf {
    +    plugin_runtime_home(codex_home).join(PLUGINS_CACHE_DIR)
    +}
    +
    +#[cfg(all(test, target_os = "linux"))]
    +mod runtime_home_tests {
    +    use super::*;
    +
    +    #[test]
    +    fn default_and_non_wsl_keep_original_home() {
    +        let home = Path::new("/mnt/c/Users/test/.codex");
    +        assert_eq!(plugin_runtime_home_with_override(home, None, true), home);
    +        let native = Path::new("/home/test/.cache/codex-wsl-runtime");
    +        assert_eq!(plugin_runtime_home_with_override(home, Some(native), false), home);
    +    }
    +
    +    #[test]
    +    fn opt_in_uses_native_linux_runtime_root() {
    +        let home = Path::new("/mnt/c/Users/test/.codex");
    +        let native = Path::new("/home/test/.cache/codex-wsl-runtime");
    +        assert_eq!(plugin_runtime_home_with_override(home, Some(native), true), native);
    +        assert_eq!(native.join(PLUGINS_CACHE_DIR), native.join("plugins/cache"));
    +        assert_eq!(native.join(".tmp/plugins"), native.join(".tmp").join("plugins"));
    +    }
    +
    +    #[test]
    +    fn invalid_roots_fall_back_without_changing_persistent_home() {
    +        let home = Path::new("/mnt/c/Users/test/.codex");
    +        for value in [
    +            "/",
    +            "relative/path",
    +            "/mnt/c/Users/test/cache",
    +            "/mnt/runtime",
    +            "/home/test/../secret",
    +        ] {
    +            assert_eq!(
    +                plugin_runtime_home_with_override(home, Some(Path::new(value)), true),
    +                home,
    +                "invalid runtime root {value}"
    +            );
    +        }
    +    }
    +}
    +
     
     #[derive(Debug, Deserialize, Serialize)]
     pub struct RemotePluginInstallMetadata {
    --- a/codex-rs/core-plugins/src/startup_sync.rs
    +++ b/codex-rs/core-plugins/src/startup_sync.rs
    @@ -7,6 +7,7 @@
     use std::time::Duration;
     
     use self::http_client::StartupSyncHttpClient;
    +use codex_core_plugin_common::installed::plugin_runtime_home;
     use codex_http_client::HttpClientFactory;
     use codex_http_client::RequestBuilder;
     use codex_login::default_client::default_headers;
    @@ -59,7 +60,7 @@
     }
     
     pub fn curated_plugins_repo_path(codex_home: &Path) -> PathBuf {
    -    codex_home.join(CURATED_PLUGINS_RELATIVE_DIR)
    +    plugin_runtime_home(codex_home).join(CURATED_PLUGINS_RELATIVE_DIR)
     }
     
     pub fn curated_plugins_api_marketplace_path(codex_home: &Path) -> PathBuf {
    @@ -71,7 +72,7 @@
     }
     
     fn curated_plugins_sha_path(codex_home: &Path) -> PathBuf {
    -    codex_home.join(CURATED_PLUGINS_SHA_FILE)
    +    plugin_runtime_home(codex_home).join(CURATED_PLUGINS_SHA_FILE)
     }
     
     pub fn sync_openai_plugins_repo(
    @@ -167,8 +168,9 @@
     }
     
     fn lock_curated_plugins_startup_sync(codex_home: &Path) -> Result<File, String> {
    -    let lock_path = codex_home.join(CURATED_PLUGINS_SYNC_LOCK_FILE);
    -    std::fs::create_dir_all(codex_home.join(".tmp"))
    +    let runtime_root = plugin_runtime_home(codex_home);
    +    let lock_path = runtime_root.join(CURATED_PLUGINS_SYNC_LOCK_FILE);
    +    std::fs::create_dir_all(runtime_root.join(".tmp"))
             .map_err(|err| format!("failed to create curated plugins sync directory: {err}"))?;
         let lock_file = File::options()
             .write(true)
    @@ -187,7 +189,7 @@
         git_binary: &Path,
     ) -> Result<String, String> {
         let repo_path = curated_plugins_repo_path(codex_home);
    -    let sha_path = codex_home.join(CURATED_PLUGINS_SHA_FILE);
    +    let sha_path = curated_plugins_sha_path(codex_home);
         let remote_sha = git_ls_remote_head_sha(codex_home, git_binary)?;
         let local_sha = read_local_git_or_sha_file(&repo_path, &sha_path, git_binary);
     
    @@ -310,7 +312,7 @@
         http_client_factory: &HttpClientFactory,
     ) -> Result<String, String> {
         let repo_path = curated_plugins_repo_path(codex_home);
    -    let sha_path = codex_home.join(CURATED_PLUGINS_SHA_FILE);
    +    let sha_path = curated_plugins_sha_path(codex_home);
         let runtime = tokio::runtime::Builder::new_current_thread()
             .enable_all()
             .build()
    @@ -367,7 +369,7 @@
         curated_plugins_repo_path(codex_home)
             .join(".agents/plugins/marketplace.json")
             .is_file()
    -        && codex_home.join(CURATED_PLUGINS_SHA_FILE).is_file()
    +        && curated_plugins_sha_path(codex_home).is_file()
     }
     
     fn prepare_curated_repo_parent_and_temp_dir(repo_path: &Path) -> Result<TempDir, String> {
    --- a/codex-rs/core-plugins/src/loader.rs
    +++ b/codex-rs/core-plugins/src/loader.rs
    @@ -19,6 +19,7 @@
     use crate::remote::RemoteInstalledPlugin;
     use crate::remote_plugin_id_resolver::RemoteInstalledPluginsSnapshot;
     use crate::remote_plugin_id_resolver::RemotePluginIdResolver;
    +use crate::startup_sync::curated_plugins_repo_path;
     use crate::store::PluginStore;
     use crate::store::plugin_version_for_source;
     use crate::store::plugin_version_for_source_with_fallback_manifest;
    @@ -484,15 +485,13 @@
         codex_home: &Path,
     ) -> Result<Vec<AbsolutePathBuf>, String> {
         let curated_marketplace_path = AbsolutePathBuf::try_from(
    -        codex_home
    -            .join(".tmp/plugins")
    +        curated_plugins_repo_path(codex_home)
                 .join(".agents/plugins/marketplace.json"),
         )
         .map_err(|_| "local curated marketplace is not available".to_string())?;
         let mut paths = vec![curated_marketplace_path];
     
    -    let api_marketplace_path = codex_home
    -        .join(".tmp/plugins")
    +    let api_marketplace_path = curated_plugins_repo_path(codex_home)
             .join(".agents/plugins/api_marketplace.json");
         if api_marketplace_path.is_file() {
             paths.push(
    --- a/codex-rs/core-plugins/src/store.rs
    +++ b/codex-rs/core-plugins/src/store.rs
    @@ -24,6 +24,7 @@
     
     pub use codex_core_plugin_common::installed::DEFAULT_PLUGIN_VERSION;
     pub use codex_core_plugin_common::installed::PLUGINS_CACHE_DIR;
    +use codex_core_plugin_common::installed::plugin_cache_root;
     pub const PLUGINS_DATA_DIR: &str = "plugins/data";
     const AGENT_PLUGINS_DATA_DIR: &str = "agent-plugins";
     use codex_core_plugin_common::installed::REMOTE_PLUGIN_INSTALL_METADATA_FILE;
    @@ -85,7 +86,7 @@
         }
     
         pub fn try_new(codex_home: PathBuf) -> Result<Self, PluginStoreError> {
    -        let root = AbsolutePathBuf::from_absolute_path_checked(codex_home.join(PLUGINS_CACHE_DIR))
    +        let root = AbsolutePathBuf::from_absolute_path_checked(plugin_cache_root(&codex_home))
                 .map_err(|err| PluginStoreError::io("failed to resolve plugin cache root", err))?;
             let data_root =
                 AbsolutePathBuf::from_absolute_path_checked(codex_home.join(PLUGINS_DATA_DIR))
    --- a/codex-rs/core-plugins/src/remote/remote_installed_plugin_sync.rs
    +++ b/codex-rs/core-plugins/src/remote/remote_installed_plugin_sync.rs
    @@ -13,7 +13,7 @@
     use super::RemotePluginShareDiscoverability;
     use super::ensure_chatgpt_auth;
     use super::fetch_installed_plugins;
    -use crate::store::PLUGINS_CACHE_DIR;
    +use codex_core_plugin_common::installed::plugin_cache_root;
     use crate::store::PluginStore;
     use crate::store::PluginStoreError;
     use codex_login::CodexAuth;
    @@ -403,7 +403,7 @@
             REMOTE_WORKSPACE_SHARED_WITH_ME_PRIVATE_MARKETPLACE_NAME,
             REMOTE_WORKSPACE_SHARED_WITH_ME_UNLISTED_MARKETPLACE_NAME,
         ] {
    -        let marketplace_root = codex_home.join(PLUGINS_CACHE_DIR).join(marketplace_name);
    +        let marketplace_root = store.root().as_path().join(marketplace_name);
             if !marketplace_root.exists() {
                 continue;
             }
    @@ -473,7 +473,7 @@
     }
     
     fn remote_plugin_cache_root(codex_home: &Path) -> PathBuf {
    -    codex_home.join(PLUGINS_CACHE_DIR)
    +    plugin_cache_root(codex_home)
     }
     
     fn is_remote_plugin_cache_mutation_in_flight(
    @@ -497,6 +497,7 @@
     
     #[cfg(test)]
     mod tests {
    +    use crate::store::PLUGINS_CACHE_DIR;
         use super::*;
         use pretty_assertions::assert_eq;
         use serde_json::json;
    --- a/codex-rs/core-plugins/src/remote.rs
    +++ b/codex-rs/core-plugins/src/remote.rs
    @@ -1780,7 +1780,8 @@
             .join(PLUGINS_CACHE_DIR)
             .join(marketplace_name)
             .join(legacy_plugin_id);
    -    if legacy_remote_plugin_cache_root != plugin_cache_root.as_path()
    +    if store.root().as_path() == codex_home.join(PLUGINS_CACHE_DIR)
    +        && legacy_remote_plugin_cache_root != plugin_cache_root.as_path()
             && legacy_remote_plugin_cache_root.exists()
         {
             let result = if legacy_remote_plugin_cache_root.is_dir() {
    --- a/codex-rs/exec-server/src/discoverV2/capability_locations.rs
    +++ b/codex-rs/exec-server/src/discoverV2/capability_locations.rs
    @@ -16,7 +16,7 @@
     use serde::Deserialize;
     use serde::Serialize;
     
    -use codex_core_plugin_common::installed::PLUGINS_CACHE_DIR;
    +use codex_core_plugin_common::installed::plugin_cache_root;
     use codex_core_plugin_common::installed::REMOTE_PLUGIN_INSTALL_METADATA_FILE;
     use codex_core_plugin_common::installed::active_plugin_version;
     use codex_core_plugin_common::installed::parse_remote_plugin_id;
    @@ -77,9 +77,13 @@
         if let Some(system_root) = &request.system_skills_root {
             skill_roots.push(("system-skills", system_root.to_abs_path()?));
         }
    +    let installed_root =
    +        codex_utils_absolute_path::AbsolutePathBuf::from_absolute_path_checked(
    +            plugin_cache_root(codex_home.as_path()),
    +        )?;
         CandidateCapabilityLocations::resolve(
             fs,
    -        Some(PathUri::from_abs_path(&codex_home.join(PLUGINS_CACHE_DIR))),
    +        Some(PathUri::from_abs_path(&installed_root)),
             skill_roots
                 .into_iter()
                 .map(|(id, root)| crate::SkillDiscoveryRoot {

    This is a proposed engineering direction, not a workaround to apply to existing released builds. The running Desktop app remains available and unmodified.

  15. WilliamRickard commented on Oct 15, 2026

    @WilliamRickard

    15 October 2026 follow-up: direct ETW attribution of a live WSL/DrvFs workload. This supplies evidence beyond the prior filesystem microbenchmark and source-only runtime-cache proposal.

    Instrumentation (Windows Desktop + WSL2): Using the 9P provider GUID e13c8d52-b153-571f-78c5-1d4098af2a1e from Microsoft's WSL diagnostic profile, a verbose (level 5), 16-second ETW trace recorded 68,884 9P events (~4,305/s), with zero tracerpt-reported losses. Every provider event came from Windows dllhost.exe PID 23524, which loads vp9fs.dll and wshhyperv.dll. The host consumed about 53% of a logical CPU core during the tracing interval, including tracing overhead. The same provider at level 4 emitted no usable activity.

    A second, correlated 10-second trace recorded 64,832 9P events (~6,483/s). During those same 10 seconds, WSL Linux reported ~5,832 Hyper-V callback interrupts/s and ~5,716 TASKLET softirqs/s. These are different event types, so this is evidence of a high-frequency path, not proof of 1:1 event causation.

    Host file-path attribution: A separate 10-second, level-4 Microsoft-Windows-Kernel-File ETW trace recorded 10,908 kernel file-I/O events from the same dllhost.exe PID. Using file-name events and FileObject/FileKey/Irp linkage, 10,691 were assigned to a path category:

    Windows path category Kernel file events Share of host events
    CODEX_HOME/.tmp/plugins curated cache 4,412 40.4%
    CODEX_HOME/plugins/cache installed bundles 2,683 24.6%
    Other CODEX_HOME files 1,866 17.1%
    Sessions 556 5.1%
    Bundled marketplace 144 1.3%
    Codex binaries 138 1.3%
    Other user files and device paths 892 8.2%
    Unattributed 217 2.0%

    Finding: 65.0% of the Windows 9P host's file events involve just the two plugin caches, and 89.8% involve Codex paths overall, in that captured interval. These counts are ETW events, not unique filesystem requests. A Windows path does not by itself prove which Linux process originated the operation. The workload was live and tracing has overhead; no savings in watts are claimed. Further time-aligned read-only checking found Codex streaming/session log events during both capture intervals, and no logged plugin/installed, plugin/list or plugin-manager events. These traces therefore establish high 9P cache access during active Codex work, not a proven idle polling loop.

    This is direct evidence for the unified runtime-cache-path approach outlined in my seven-file source proposal: move both frequently traversed plugin-cache trees to WSL-native ext4 with a consistent loader, synchroniser and executor path resolver, while preserving persistent auth/config/sessions. The installed binary currently has no supported knob for this. I have not changed the live Codex cache, launcher, WSL or BIOS.

    Raw traces remain only on the local workstation because they contain filesystem metadata and potentially sensitive paths. Only aggregate counts are posted here.

  16. fbernklau commented on Oct 20, 2026

    @fbernklau

    Additional measurements from Windows Desktop + WSL on 2026-10-20: skill discovery remains slow in a current installed build, including the installed plugins/cache tree rather than only the legacy .tmp/plugins catalogue.

    Environment: packaged Windows app 26.1013.4894.0, build 20770; bundled WSL agent 0.163.0-alpha.10.2; Ubuntu-24.04; Windows-backed Desktop CODEX_HOME; SQLite on WSL ext4; 22 installed plugins / 91 discovered skills / 15 saved project roots. This is an existing profile after earlier recovery, not a clean-install reproduction.

    Using the bundled Linux app-server, the existing Codex home and a temporary snapshot of its SQLite state, these sequential single-cwd measurements without strace returned:

    Request Duration Skills
    initialize 232 ms —
    plugin/installed, without cwds 403 ms —
    skills/list, forceReload=false, first call 7,948 ms 91
    same skills/list again, forceReload=false 93 ms 91
    skills/list, forceReload=true 8,381 ms 91

    A separate traced probe (initialization, plugin inventory and three skill queries) recorded 28,840 trace lines, including 17,195 readlink, 3,253 lstat and 1,836 getdents64 calls. These counts cover the entire probe, not one scan. The traversal includes skill assets/reference subdirectories. Tracing itself increased cold-scan timings to roughly 12 seconds; the untraced values above are the appropriate latency comparison.

    During a normal packaged Desktop start, the live log instead showed:

    • Primary renderer skills/list: 24,517 ms.
    • Overlay skills/list: 20,865 ms.
    • model/list: 6 ms, after 13,195 ms queue wait.
    • thread/resume: 37,916 ms.

    The installed app has forced skills-reload paths after bundled-plugin reconciliation and primary-runtime setup; both main renderer and overlay query skills. These observations make repeated invalidation/coalescing worth investigating. They do not establish the exact cache-invalidation sequence inside the live backend.

    Earlier local pruning of the generated legacy marketplace catalogue reduced all-project plugin inventory latency (about 30 seconds to 6–8 seconds), but did not resolve cold Desktop startup. The measurements above are after that partial improvement. No installed plugins were disabled for these new measurements.

    A separate executor plugin-copy failure occurred during the same startup. Its detailed report and self-contained abort/queue reproduction have been added to #55417. That mechanism should be tracked separately from the filesystem scan cost; we are not assuming one fix resolves both.

    I checked the official changelog and currently available app update on 2026-10-20: the installed app reports up_to_date, and I did not find a confirmed released fix for this specific scan/reload behavior. Older reports of improvement or community cache-root prototypes should not be treated as confirmation for this build.

    Request: Please identify a supported shipping correction/build and coalesce/cache discovery so Windows Desktop + WSL remains responsive without user-created home copies, links/redirection or disabling the installed plugin set. The user requires the Desktop app with WSL; CLI/VS Code substitution does not meet their workflow.

    Raw filesystem traces remain local because they contain paths. Only sanitized aggregate results are posted. Submitted with the user's authorization using Codex assistance.

  17. sufeeeringGavinM commented on Nov 15, 2026

    @sufeeeringGavinM

    Additional Windows + WSL reproduction with a plugin-preserving workaround

    This appears related to this issue and #26766. I am adding measurements rather than opening another report. The installation is a Windows desktop build in the 26.1013 family with its WSL backend.

    Observed behavior:

    • Opening existing chats could leave the model selector loading for tens of seconds. Longer message-send delays were reported by the user and were not directly stopwatch-measured.
    • The background Local Work executor repeatedly timed out on plugin/installed and retried.
    • Installed plugin assets were already cached on Linux, but the temporary curated plugin catalog still resolved to Windows-backed storage. This remaining catalog contained thousands of files.

    Diagnostic comparison using the same collection of several dozen project roots:

    Read-only request Before moving the temporary catalog After
    plugin/installed, all configured roots approximately 177 seconds approximately 11 seconds
    plugin/installed, one root, subsequent request approximately 0.62 seconds approximately 0.19 seconds
    skills/list, one root approximately 1.73 seconds approximately 0.42 seconds

    These are sequential local app-server RPC measurements, not controlled end-to-end UI timings. The desktop and other background work remained active, and cache warming may contribute. All 39 baseline skills were retained in the final configuration.

    Local mitigation:

    1. Keep the WSL backend's disposable installed-plugin cache, bundled marketplace definitions, and temporary curated plugin catalog on the Linux filesystem.
    2. Preserve shared user configuration and chat history. Do not delete sessions or disable all plugins.
    3. Use an existing valid native cache immediately at startup; refresh it asynchronously. A foreground full-copy scan with a timeout can silently fall back to the slow Windows-backed home.
    4. Apply the setup at the desktop backend launch boundary rather than only in one desktop shortcut; otherwise a normal Start/taskbar launch bypasses it.

    This is a local workaround, not an upstream fix or a generally supported installation recipe. Relocating a marketplace source blindly can change its identity and hide installed capabilities; one such experiment was rejected after capability verification. The final configuration preserved the original primary-runtime marketplace source.

    Suggested upstream areas to investigate: reuse discovery results across roots with equivalent configuration; avoid repeated full Windows-mounted catalog scans; coalesce retries instead of overlapping timed-out discovery calls; keep cache refresh off the chat-readiness path; provide a supported WSL-local cache setting independent of account/session storage.

    No raw logs, prompts, personal paths, project names, account information, machine identifiers, request IDs, chat IDs, or exact event timestamps are included in this comment. Performance numbers above describe backend components only and do not prove the entire message-send delay has disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverbugperformanceskillswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions