Skip to content

The diff between executing dir and workspace #54

@timturing

Description

@timturing

Given two subdir, test and test2. If I'm currently in test2 and start the agent (e.g. using command mini-agent) with workspace test. The program will execute at the test2 directory instead of in test directory.

e.g.

(mini-agent) D:\uv\project\lwy\test2>mini-agent --workspace ../test
You › output the current directory and touch some test python program in this directory.

╭──────────────────────────────────────────────────────────╮
│ 💭 Step 1/100 │
╰──────────────────────────────────────────────────────────╯

🧠 Thinking:
The user wants me to:

  1. Output the current directory
  2. Create a test Python program in this directory

I can do both of these using bash commands. Let me execute them.

🤖 Assistant:
I'll help you with both tasks. Let me first show the current directory and then create a test Python program.

🔧 Tool Call: bash
Arguments:
{
"command": "pwd"
}
✓ Result:
Path

D:\uv\project\lwy\test2

This will lead to catastrophic damage (in my case, directly removes my .venv under Mini-agent :) )

Metadata

Metadata

Assignees

No one assigned

    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