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

   Fixes #4034
   
   
   ## Summary
   
   Adds a focused Vitest suite for the agent engine store 
(`web/src/stores/engineStore.ts`) that locks in its persistence and migration 
behavior: the claude-code default, restoring a persisted supported engine, 
updating the persisted engine through the `setEngine` action (including the 
localStorage write), and migrating stale persisted versions back to claude-code.
   
   ## Why
   
   Agent engine preferences are persisted per user in the browser through 
zustand `persist` with a versioned storage format. There was no regression 
coverage for restoring or migrating that persisted state, so a change to the 
storage key, default value, version, or migration logic could silently break 
users' saved preferences.
   
   ## Testing
   
   - `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` → exit 0
   - `./node_modules/.bin/vitest run src/stores/__tests__/engineStore.test.ts` 
→ 4 tests pass
   


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