Skip to content

Conda activation error appears during task execution #48732

@feeiyu

Description

@feeiyu

Reproduction steps

When executing a task in Zed to open LazyGit while using Zsh, the interface first displays a Conda activation error before showing the LazyGit interface.

  • Install Conda and initialize it for Zsh (conda init zsh).
  • Set up a task to open LazyGit.
  • Open a Python file in Zed, and select the conda virtual environment.
  • Run the task in Zed
2026-02-08.22-33-02.webm

Current vs. Expected behavior

Expected Behavior:
The LazyGit interface should open without the Conda activation error.

Actual Behavior:
A Conda activation error is displayed before the LazyGit interface appears.

Zed version and system specs

Zed: v0.224.0+nightly.2158.aa11edf99d9aa6aa23d8876242e74354fa4d4ada (Zed Nightly aa11edf)
OS: Linux Wayland ubuntu 24.04
Memory: 15 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 2060 with Max-Q Design || NVIDIA || 580.126.09

Attach Zed log file

Zed.log

Relevant Zed settings

tasks.json
[
  {
    "label": "lazygit",
    "command": "lazygit -p $ZED_WORKTREE_ROOT",
    "hide": "on_success",
    "reveal_target": "center",
    "allow_concurrent_runs": false,
  },
  {
    "label": "Television Text Search",
    "command": "zed \"$(tv text)\"",
    "hide": "on_success",
    "allow_concurrent_runs": true,
    "use_new_terminal": true,
  },
]

Relevant Keymap

keymap.json
  {
    "context": "vim_mode == normal && !menu",
    "bindings": {
      "space g g": [
        "task::Spawn",
        { "task_name": "lazygit", "reveal_target": "center" },
      ],
    },
  },

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:integrations/environmentEnvironment variables, direnv, asdf, etcarea:tasksFeedback for Zed tasksfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcplatform:linux/waylandLinux Waylandpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugs

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions