Skip to content

Wrong working directory #3391

Closed
Closed

Description

@somera

Description

I worked with opencode v0.15.14 ~2h today.

And sometimes the working directory was wrong.

Image

I'm uwing it with qwen3-coder:30b with ollama self hosted. I set this

Environment="OLLAMA_CONTEXT_LENGTH=32768"
Environment="OLLAMA_KV_CACHE_TYPE=q8_0"

Is this opencode or AI problem?

OpenCode version

0.15.14

Steps to reproduce

I can't reprodeuce it. 8 times is ok, 2 times not

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Git Bash

Activity

  1. github-actions commented on Oct 23, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Oct 23, 2025

    @rekram1-node
    Contributor

    @somera this is the llm calling the tool to list root directory, I think we can do some prompt updates but we do tell the llm to use absolute paths and it is "doing that" but maybe we need to make it more clear that "/" is root :

    In tool args

    path: z.string().describe("The absolute path to the directory to list (must be absolute, not relative)").optional(),
    

    In the tool description:

    Lists files and directories in a given path. The path parameter must be absolute; omit it to use the current workspace directory. You can optionally provide an array of glob patterns to ignore with the ignore parameter. You should generally prefer the Glob and Grep tools, if you know which directories to search.

  3. self-assigned this
    on Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions