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

   ## Summary
   
   Consolidates the still-relevant AI workspace fixes from #2441 and #2750 into 
one PR against the current `rocketmq-studio` base.
   
   This PR keeps the AI workspace behavior stable across the Home shortcut, 
draft handoff, history entry, and HTTP streaming path:
   
   - Preserve Home -> AI draft state for prompt enhancement, selected engine, 
and configured model.
   - Initialize the Home model selector from persisted LLM configuration 
instead of the provider default.
   - Normalize streamed Markdown fragments before rendering.
   - Surface slow HTTP stream startup failures as terminal SSE errors.
   - Keep the gateway SSE response alive long enough to report upstream HTTP 
timeout errors.
   - Make the stop-generating action visible while a response is streaming.
   - Add a one-shot Home history intent that opens the existing AI history 
drawer without restoring a conversation unless the user explicitly selects one.
   
   ## Replaces
   
   - Replaces #2441
   - Replaces #2750
   
   ## Issue Links
   
   Closes #2749
   Refs #2440
   
   ## Boundaries
   
   - Does not duplicate LLM settings persistence/API-key changes already 
covered elsewhere.
   - Does not change provider protocol behavior beyond timeout/error 
observability.
   - Keeps Home as a navigation entry point and keeps history UI ownership in 
the AI workspace.
   
   ## Verification
   
   - `npm test -- --run src/pages/ai/__tests__/AiMessage.test.tsx 
src/pages/ai/__tests__/AiPage.test.tsx 
src/pages/home/__tests__/HomePage.test.tsx src/pages/ai/chatDraft.test.ts 
src/stores/aiChatHistoryStore.test.ts` -> 5 files / 43 tests passed
   - `npm exec eslint -- src/pages/home/index.tsx 
src/pages/home/__tests__/HomePage.test.tsx src/pages/ai/index.tsx 
src/pages/ai/chatDraft.ts src/pages/ai/chatDraft.test.ts 
src/pages/ai/__tests__/AiPage.test.tsx 
src/pages/ai/__tests__/AiMessage.test.tsx 
src/stores/aiChatHistoryStore.test.ts` -> passed
   - `npm run build` -> passed
   - 
`JAVA_HOME=/Users/aias/Library/Java/JavaVirtualMachines/openjdk-21.0.2/Contents/Home
 mvn -q -Dtest=OpenAiCompatibleLlmClientTest,OpenAiCompatibleLlmGatewayTest 
test` -> passed
   - `git diff --check origin/rocketmq-studio...HEAD` -> passed
   - TypeScript diagnostics on modified frontend files -> 0 errors
   


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