You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "btlqql (via GitHub)" <gi...@apache.org> on 2026/10/09 13:26:18 UTC
[PR] fix(ai): retry tool catalog load after failure [rocketmq-dashboard]
btlqql opened a new pull request, #5876:
URL: https://github.com/apache/rocketmq-dashboard/pull/5876
## Why
The tool playground sets its once-per-mount bootstrap flag before the catalog request resolves. When `listTools` fails (backend hiccup, proxy 502), the flag stays set forever: reopening the modal never retries, so the tool list stays empty until a full page reload, even though the modal was designed to be re-opened for a fresh catalog.
## What changed
- `web/src/pages/ai/components/ToolPlaygroundModal.tsx`:
- `loadTools` now reports whether the catalog actually loaded.
- `bootstrap` resets the once-per-mount flag when the load failed, so the next open retries instead of showing a permanently empty playground.
- The bootstrap trigger effect now depends on `open`/`disabled` only and calls the latest `bootstrap` through a ref — otherwise the identity churn from the state a failed bootstrap sets would retrigger it in a retry loop.
## Validation
- New `ToolPlaygroundModal.test.tsx`: open with a rejecting `listTools`, close, reopen, and assert the catalog is fetched a second time. Red before (1 call), green after (2 calls, no loop).
- `ToolPlaygroundModal.test.tsx`, `AiPage.test.tsx`, `PromptTemplateModal.test.tsx` all pass (16/16).
--
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] fix(ai): retry tool catalog load after failure [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@rocketmq.apache.org>.
github-actions[bot] commented on PR #5876:
URL: https://github.com/apache/rocketmq-dashboard/pull/5876#issuecomment-6729155203
This pull request has been automatically closed because there has been no activity for 7 days. If you would like to continue working on this, please reopen the PR with updated changes.
--
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] fix(ai): retry tool catalog load after failure [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@rocketmq.apache.org>.
github-actions[bot] closed pull request #5876: fix(ai): retry tool catalog load after failure
URL: https://github.com/apache/rocketmq-dashboard/pull/5876
--
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