bobbai00 commented on code in PR #8753:
URL: https://github.com/apache/texera/pull/8753#discussion_r4319147756


##########
agent-service/src/server.ts:
##########
@@ -493,6 +493,15 @@ export function buildApp() {
 
             wsLog.info({ agentId, preview: msg.content.substring(0, 50) }, 
"received command");
 
+            // Reject a prompt that arrives while a run is already in flight
+            // instead of re-pointing that run's warehouse mid-execution 
(#8711).
+            // Checked before setDelegateWarehouse so a busy agent's delegate
+            // config is left untouched.
+            if (agent.getState() !== AgentState.AVAILABLE) {
+              sendEventToClient(ws, new WsServerErrorEvent("Agent is busy 
processing another message"));

Review Comment:
   valid



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