Skip to content

Resolve existing Codex host credentials consistently in containerized desktop setup #2205

Closed

Description

@integry

Actual Linux desktop acceptance on b5836ed found a reproducible existing-config onboarding mismatch. User requested using Codex from the host. Isolated backend container HOME=/root, while approved host credential directory is mounted at /home/propr-desktop-test/.codex and CODEX_CONFIG_PATH points there. UI saved default ~/.codex. packages/core/src/config/configManagerAgents.ts resolveConfigPath expands tilde against backend HOME, and codexDockerArgsBuilder mounts that path for execution. Playground returned 401 Missing bearer or basic authentication. Editing only the saved agent configPath to the actual mounted absolute directory made the same Codex CLI 0.153.3 + gpt-5.6-sol request succeed in 6.6s. Host auth remained unchanged; no credential contents disclosed.

Implement a focused fix against desktop epic #1970 /1950-epic-cross-platform-dsk only. Existing-host-config selection, login/status checks and execution must agree on the configured host credential mapping (CODEX_CONFIG_PATH/HOST_CODEX_DIR where appropriate), without accidentally using container /root or silently falling back to another account. Preserve explicitly chosen custom paths and managed-credential behavior. Show a clear actionable unavailable-path error rather than launching anonymously. Add tests for host/backend HOME mismatch, explicit custom config, managed config and absent mapping; never log/copy secrets into diagnostics. No unrelated provider redesign. Open linked PR with Closes this issue; leave open for Ultrafix and root validation. Related acceptance #1962.

Activity

  1. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Please implement this evidence-backed existing-host-config correction now, base 1950-epic-cross-platform-dsk. AI/base labels already present. Keep scope independent of #2203 sidebar and #2204 notification applicability. Open linked PR with Closes #2205; leave open for Ultrafix/root validation.

  2. propr-dev commented on Sep 7, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2205/gpt-5.6-sol-resolve-existing-codex-ho-20260907-2142-bl5
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2205-20260907-2142-gpt-5.6-sol-bl5

    🔍 Track Task Execution

  3. added a commit that references this issue on Sep 7, 2026
  4. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Merged into desktop epic #1970 via #2208, merge a1cf599. Final Ultrafix review 9/10, independent 60 focused tests passed, and all current CI checks passed including full suite. Live isolated runtime upgrade and integrated acceptance remain in #1962.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions