You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zjncs (via GitHub)" <gi...@apache.org> on 2026/10/06 05:33:40 UTC

[I] ai: the composer accepts prompts longer than the backend's 8192-char budget — the run is always refused with no explanation [rocketmq-dashboard]

zjncs opened a new issue, #5611:
URL: https://github.com/apache/rocketmq-dashboard/issues/5611

   ## Description
   
   The backend caps an AI message at 8192 characters — `AiMessageDTO.message` carries `@NotBlank @Size(max = 8192)` ("the same budget AiRunService enforces server-side so no caller can ..."). `AiConversationController` converts the violation into an in-stream refusal frame (`ai.request.invalid`), so the run never starts.
   
   But nothing client-side knows about the budget:
   
   - `Composer.tsx`'s textarea has no `maxLength`
   - `chatDraft.ts:buildMessageRequest` (and `draftToMessageRequest` through it) forwards any length
   
   ## Impact
   
   Pasting a long stack trace or log (>8192 chars) into the ops-assistant chat always fails with an unhelpful in-stream refusal; nothing client-side explains or prevents it. The user's text is lost from the composer on the failed send.
   
   ## Expected behavior
   
   - `buildMessageRequest` refuses to build an over-budget request (exported `AI_MESSAGE_MAX_LENGTH = 8192`, mirroring the DTO)
   - the composer textarea caps input at the same budget so the refusal path becomes a safety net rather than the user experience
   
   ## Environment
   
   - branch: master (0228dad5)
   - files: `web/src/pages/ai/chatDraft.ts`, `web/src/pages/ai/components/Composer.tsx`


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] ai: the composer accepts prompts longer than the backend's 8192-char budget — the run is always refused with no explanation [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5611:
URL: https://github.com/apache/rocketmq-dashboard/issues/5611#issuecomment-6159439351

   This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.


-- 
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: [I] ai: the composer accepts prompts longer than the backend's 8192-char budget — the run is always refused with no explanation [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #5611: ai: the composer accepts prompts longer than the backend's 8192-char budget — the run is always refused with no explanation
URL: https://github.com/apache/rocketmq-dashboard/issues/5611


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