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

   ## What changed
   - Pass the selected home AI mode through `/ai` navigation state.
   - Normalize supported draft modes in `getChatDraft`.
   - Send the preserved mode in `chatStream` instead of hard-coding `chat`.
   - Add draft parser tests for valid and unsupported modes.
   
   ## Why
   The home page exposes query/diagnose/manage/chat modes, but the selected 
mode was only UI state. Prompts opened from the home page always reached the 
backend as `mode: chat`.
   
   Fixes #817
   
   ## Verification
   - npm ci
   - npm test -- --run src/pages/ai/chatDraft.test.ts
   - npm run build


-- 
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