You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Wang1rrr (via GitHub)" <gi...@apache.org> on 2026/10/19 03:14:28 UTC

[PR] fix(ai): resolve workspace paths before changing child cwd [rocketmq-dashboard]

Wang1rrr opened a new pull request, #6980:
URL: https://github.com/apache/rocketmq-dashboard/pull/6980

   ## What is the purpose of the change
   
   Fixes #6979.
   
   A relative `studio.ai.conversation.workspace-dir` is currently copied into the hosted agent's MCP configuration path, rmqctl configuration argument, and HOME. The agent then changes its working directory to the conversation directory, so those relative paths point somewhere else.
   
   Resolve and normalize the workspace root to an absolute path before deriving any child paths. This also keeps preparation and deletion using the same resolved directory.
   
   ## Verification
   
   Added a regression using a relative root with spaces. It resolves the MCP file, system prompt, and rmqctl config from the child working directory, checks HOME, and exercises workspace deletion.
   
   - Before the fix: the regression fails because the MCP file cannot be found from the child directory.
   - After the fix: `mvn -B -ntp -Dtest=RmqctlWorkspaceTest test` passes all 32 tests and Checkstyle on Java 21.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(ai): resolve workspace paths before changing child cwd [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on PR #6980:
URL: https://github.com/apache/rocketmq-dashboard/pull/6980#issuecomment-6433482328

   Merged as part of #6998 - squashed into `rocketmq-studio` as `1053cd4be`.
   
   Your change here (make `workspaceRoot()` absolute and normalized before the child process changes its working directory) is included.
   
   We grouped 8 of your related AI conversation fixes into a single commit so the history stays reviewable; the other PRs in the group are closed with the same note. Everything was cherry-picked onto the current baseline with you kept as the author, and your tests came along with the change.
   
   Thanks for the consistently well-tested patches.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(ai): resolve workspace paths before changing child cwd [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #6980: fix(ai): resolve workspace paths before changing child cwd
URL: https://github.com/apache/rocketmq-dashboard/pull/6980


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org