You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "tju-yxq (via GitHub)" <gi...@apache.org> on 2026/09/06 02:33:09 UTC
[PR] feat(ai): search chat history [rocketmq-dashboard]
tju-yxq opened a new pull request, #3981:
URL: https://github.com/apache/rocketmq-dashboard/pull/3981
## What changed
The AI history drawer showed only the most recent conversations and had no search control. Older conversations remained stored but were effectively unreachable through the drawer.
This change adds history search:
- add `searchAiChatConversations(conversations, searchTerm, limit)`;
- trim and case-normalize the search term;
- match the first user prompt plus message text, summaries, and thinking text;
- preserve the most-recent ordering;
- search all persisted conversations rather than only the default recent eight;
- return the normal recent list when the search box is empty;
- add a search input at the top of the history drawer;
- keep the existing empty state when no conversation matches.
Closes #3567
## Validation
- `npm test -- aiChatHistoryStore.test.ts --run` — 12 tests passed
- `npm test -- AiPage.test.tsx --run` — 17 tests passed
- `npm run lint -- --quiet` — 0 errors; 10 existing warnings remain elsewhere in the tree
- `npm run build` — passed
- `git diff --check` — passed
The GitHub Actions status is not being described as green here; the checks above are local validation on this branch.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(ai): search chat history [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3981: feat(ai): search chat history
URL: https://github.com/apache/rocketmq-dashboard/pull/3981
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org