yyqdbngt opened a new pull request, #3596:
URL: https://github.com/apache/rocketmq-dashboard/pull/3596
### Summary
Adds the first unit tests for the persisted per-user agent engine preference
store.
The store keeps a claude-code default, persists the selection under the
`rocketmq-studio-agent-engine` key with schema version 1, and migrates stale
persisted engines back to the default. The tests cover the default, the setter,
the persistence shape and the migration path.
### Changes
- `web/src/stores/engineStore.test.ts`
- `defaults to the claude-code engine`: initial state is the default
engine.
- `setEngine switches the active engine`: qoder selection lands in the
state.
- `persists the chosen engine with the current schema version`:
localStorage carries state plus version 1.
- `migrates stale persisted engines back to the default`: a version-0
payload is reset to claude-code on load.
### Testing
- `vitest run src/stores/engineStore.test.ts` passes; `tsc --noEmit` and
`eslint` 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]