Exec tool should use workspace path as cwd, not process cwd #174
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot#174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The tools plugin sets its base directory to
Path.cwd()(line 125 intools/plugin.py):This means when the agent runs shell commands, they execute in whatever directory cobot was started from (e.g. the cobot source tree), NOT in the agent's workspace.
Impact
When Alpha runs
ls, it sees cobot source code instead of its workspace files (AGENTS.md, SOUL.md, memory/, etc.). The agent has no awareness of its actual workspace.Expected Behavior
The exec tool should resolve its cwd from the workspace plugin:
This way, regardless of where cobot is started (
/home/alpha/workspace/cobot,/tmp, anywhere), the agent always operates in its workspace directory.Context
Discovered during clean workspace testing. The workspace plugin correctly creates
~/.cobot/workspace/with template files, but the agent never sees them because exec runs in the process cwd (/home/alpha/workspace/cobot).