Skip to content

agent: add --chdir working-directory option#232

Merged
antirez merged 1 commit into
antirez:mainfrom
gmontana:fix/agent-chdir
May 24, 2026
Merged

agent: add --chdir working-directory option#232
antirez merged 1 commit into
antirez:mainfrom
gmontana:fix/agent-chdir

Conversation

@gmontana
Copy link
Copy Markdown
Contributor

@gmontana gmontana commented May 23, 2026

Summary

Add --chdir DIR to ds4-agent, matching the existing ds4-server working-directory option. This lets external launchers start the native agent from another current directory while still resolving relative runtime assets, including metal/*.metal, from the selected project/install tree.

Also document the flag in the native-agent README section.

Fixes #221

Validation

  • git diff --check
  • make ds4-agent
  • ./ds4-agent --help
  • ./ds4-agent --chdir /tmp/ds4-agent-chdir-does-not-exist --non-interactive exits with the expected chdir error
  • ./ds4_test --server

@antirez antirez merged commit b230e8e into antirez:main May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ds4-agent: set working directory (eg --chdir)

2 participants