Skip to content

Lock session to current directory #841

Closed

Description

@SeanRoberts

I started a session in ~/.config/tmux to update some tmux config and was surprised to find that opencode started scanning my home directory for a .tmux.conf file and then created one there when it couldn't find one.

I think the expectation here is that opencode should not read or write above the directory where the session is started.

Activity

  1. self-assigned this
    on Jul 10, 2025
  2. rekram1-node commented on Aug 14, 2025

    @rekram1-node
    Contributor

    This is default behavior now, opencode is locked to current dir, tools with throw if it tries to go outside. Tho it can always get smart writing scripts to get around if it wants

  3. AndrewBakerATL commented on Aug 23, 2025

    @AndrewBakerATL

    Is this the only operating form now, or is there a way to toggle it back to allow it to interact with other directories?

  4. rekram1-node commented on Aug 23, 2025

    @rekram1-node
    Contributor

    soon support will be added to either disable the lock or add other dirs, not sure when or exact ux but I know the team has talked about it internally

  5. AndrewBakerATL commented on Aug 23, 2025

    @AndrewBakerATL

    In the meantime then, is the only option to restore the functionality downgrading? To which, what release was it that included the change. I went to the tagged releases, but didn't see mention of the change. Checked until ~ v0.5.1

  6. rekram1-node commented on Aug 23, 2025

    @rekram1-node
    Contributor

    tbh I am not sure I think that change was quite a while ago :/

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