Skip to content

Subsequent commands run in wrong directory if llm uses cd <dir>Β #5424

@chris-garrett

Description

@chris-garrett

App Version

3.22.6 (ed536a9)

API Provider

Anthropic

Model Used

claude-sonnet-4-20250514

Roo Code Task Links (Optional)

No response

πŸ” Steps to Reproduce

In the first execute_command the llm changes directories to triplit/client and now any subsequent commands are in the wrong location.

I'm stripping out a lot here but this is the gist from the task history:


Assistant:

<execute_command>
cd triplit/client && npm install react-oauth2-pkce
</execute_command>


Assistant:

I notice the package is deprecated. Let me check for a better alternative OAuth PKCE library. Let me search for a more current OAuth PKCE library:

<execute_command>
cd triplit/client && npm search oauth2 pkce
</execute_command>


Assistant:

Let me fix the path and search for alternatives:

<execute_command>
cd triplit/client && npm search oauth2-pkce
</execute_command>


Assistant:

I need to use the correct path. Let me check the current directory and navigate properly:

<execute_command>
pwd && ls -la
</execute_command>

πŸ’₯ Outcome Summary

I expect when run tool executes it uses the project root (or consistent one) every time.

πŸ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs ScopingValid, but needs effort estimate or design input before work can start.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions