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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to