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

   ### Motivation
   
   The existing `chatDraft` tests cover prompt/model normalisation, mode 
whitelisting and history intent. The engine allowlist and the 
boolean/conversation-id flags were untested.
   
   ### Changes
   
   - `preserves supported engines and drops unsupported ones`: 
`qoder`/`claude-code` survive while unknown engines and non-string values are 
dropped.
   - `preserves enhance, new-conversation and conversation-id flags`: truthy 
flags and a conversation id are kept, while falsy flags and a blank 
conversation id are omitted.
   
   ### Verification
   
   ```
   ./node_modules/.bin/vitest run src/pages/ai/chatDraft.test.ts   # 7 passed
   ./node_modules/.bin/tsc --noEmit                                # clean
   ./node_modules/.bin/eslint src/pages/ai/chatDraft.test.ts        # clean
   ```


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