opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: add /cd command for changing working directory

Open athal7 opened this issue 1 week ago • 1 comments

Summary

  • Add /cd <path> command to change the working directory mid-conversation
  • Support !cd shell mode for directory navigation
  • Add CdTool for agents to change directories programmatically
  • Add POST /cd endpoint and plugin API (setDirectory) for programmatic use
  • Fix TUI event routing to survive directory changes via GlobalBus
  • Regenerate SDK with /cd endpoint and EventInstanceDirectoryChanged type

Fixes #2177

athal7 avatar Jan 08 '26 00:01 athal7