Skip to content

Provider usage fails with "Provider is not running" when the login-shell PATH differs per shell (fnm) #6533

Closed

Description

@ratulsarna

Since #6219, providerUsage refreshes the login-shell env with allowStale: true, so the refresh lands while the usage request is still running. If PATH changed, replaceBaseShellEnv shuts down the maintenance runtime that request is using, and the request fails with Provider "codex" is not running. With fnm, PATH changes on every probe (eval "$(fnm env)" adds a new fnm_multishells/<pid>_<ms> dir), so every usage call on that host fails and the usage panel stays empty.

Fix: don't shut down a maintenance runtime that has active requests (retire it once they finish), and ignore fnm multishell dirs when comparing PATH, which is also what set off #1156.

Activity

  1. added a commit that references this issue on Oct 29, 2026
    e852a33
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions