fix(webui): share sidebar and Composer run state (#6337)

This commit is contained in:
chengyongru authored and GitHub committed 2026-10-24 00:43:34 +08:00
1 parent 3d0f8feb77
commit 5ae49a43e7
13 files changed
+378 -374

No files matched your search

+2 -2
View File
@@ -2254,8 +2254,8 @@ function Shell({
}, [client, onModelNameChange]);
useEffect(() => {
return client.onRunStatus((chatId, startedAt) => {
if (startedAt != null) {
return client.onRunStatus((chatId, state) => {
if (state.active) {
const nextRunning = new Set(runningChatIdsRef.current);
nextRunning.add(chatId);
runningChatIdsRef.current = nextRunning;