Skip to content

single line multicommands containing .. will result in opencode asking permission for project dirs parent (when there is no need) #52289

Description

@allanlaal

Description

single line multicommands containing .. will result in opencode asking permission for project dirs parent (when there is no need)

sth like the agent trying to run: cd xx && cd .. && do sth else
will result in opencode thinking we wanna go 1 level up from project root

Plugins

No response

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 Sep 30, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Please add the OpenCode version, operating system, and terminal you're using; the system-information fields are currently unanswered.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    • #8192: OpenCode asks for permission for chained cd commands that stay within the project.
    • #18930: External-directory prompt for cd ./dir && cd ../dir2.
    • #51885: Successive cd commands resolve against the wrong directory.

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

  3. allanlaal commented on Oct 8, 2026

    @allanlaal
    Author

    @github-actions this is not a duplicate. this issue shows that #18930 fix did not work

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