Skip to content

[Bug] Nix error when using ! in opencode #6468

Closed as not planned
Closed as not planned

Description

@suse-coder

Description

I have a vscode dev container (ubuntu) with nix feature. When I run nix develop (with direnv automatically) it works in the shell that i can run the commands like: just or bun, but when I start opencode (from nix) it works only when it calls it, but when I do ! in opencode -> then the command it gives error:

Image

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Dec 30, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues all relate to shell environment and PATH inheritance problems when using the ! command in opencode, which appears to be the core issue you're experiencing with nix develop environments.

    Feel free to ignore if none of these address your specific case.

  2. suse-coder commented on Dec 30, 2025

    @suse-coder
    Author

    Seems like the Path is lost:

    Image

    vs:

    Image
  3. repairman29 commented on Jan 9, 2026

    @repairman29

    Hi! I'm interested in contributing to this. Let me know if you'd like to discuss the implementation approach.

    (Connected through Echeo)

  4. rekram1-node commented on Jan 9, 2026

    @rekram1-node
    Contributor

    @repairman29 pr welcome or if u wanna make a proposal first go ahead

  5. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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