Loyal-Young opened a new pull request, #5372:
URL: https://github.com/apache/rocketmq-dashboard/pull/5372

   ### Which Issue(s) This PR Fixes
   
   - Fixes #5371
   
   ### Brief Description
   
   The AI assistant API Key input stays editable during save. Previously, a 
successful save always cleared the input, even if the operator had typed a 
newer key while that request was pending. The success handler now clears the 
input only when its current value matches the key submitted by that save.
   
   ### Verification
   
   - The new regression fails on the original code: after saving `sk-first` and 
entering `sk-second` before completion, the field becomes empty.
   - `cd web && node node_modules/vitest/vitest.mjs run 
src/pages/settings/__tests__/AiAssistantTab.test.tsx --pool=threads 
--maxWorkers=1 --reporter=dot` — 10 tests passed.
   - `cd web && node node_modules/eslint/bin/eslint.js 
src/pages/settings/AiAssistantTab.tsx 
src/pages/settings/__tests__/AiAssistantTab.test.tsx` — passed.
   - `cd web && node node_modules/typescript/bin/tsc -p tsconfig.app.json 
--noEmit --pretty false` — passed.
   - `git diff --check` — passed.
   
   ### AI Assistance
   
   AI assistance helped trace the save completion path and draft the in-flight 
edit regression. I reproduced the loss on the original code, reviewed the 
conditional clear, and ran the checks above.
   


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