@cadraos/sdk 0.3.14-p139.2 → 0.3.14-p139.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat/index.cjs +3 -3
- package/dist/chat/index.cjs.map +1 -1
- package/dist/chat/index.d.cts +15 -6
- package/dist/chat/index.d.ts +15 -6
- package/dist/chat/index.js +3 -3
- package/dist/chat/index.js.map +1 -1
- package/package.json +1 -1
package/dist/chat/index.cjs
CHANGED
|
@@ -4557,7 +4557,7 @@ function useAgentChat(options) {
|
|
|
4557
4557
|
pollingInterval,
|
|
4558
4558
|
pollingEnabled,
|
|
4559
4559
|
historyStaleMs = DEFAULT_HISTORY_STALE_MS,
|
|
4560
|
-
allowSendWhileRunning =
|
|
4560
|
+
allowSendWhileRunning = true,
|
|
4561
4561
|
onSteer
|
|
4562
4562
|
} = options;
|
|
4563
4563
|
const contextConfig = useChatConfigOptional();
|
|
@@ -4601,7 +4601,7 @@ function useAgentChat(options) {
|
|
|
4601
4601
|
adapterRef.current = adapter;
|
|
4602
4602
|
const hasSteerHandler = !!onSteer || typeof adapter.steerExecution === "function";
|
|
4603
4603
|
const [runSteerable, setRunSteerable] = react.useState(void 0);
|
|
4604
|
-
const canSendWhileRunning = allowSendWhileRunning && hasSteerHandler && runSteerable === true;
|
|
4604
|
+
const canSendWhileRunning = allowSendWhileRunning !== false && hasSteerHandler && runSteerable === true;
|
|
4605
4605
|
const canSendWhileRunningRef = react.useRef(canSendWhileRunning);
|
|
4606
4606
|
canSendWhileRunningRef.current = canSendWhileRunning;
|
|
4607
4607
|
const runActiveRef = react.useRef(false);
|
|
@@ -9235,7 +9235,7 @@ function AgentChat({
|
|
|
9235
9235
|
onInputChange,
|
|
9236
9236
|
onInputControlReady,
|
|
9237
9237
|
injectedMessages,
|
|
9238
|
-
allowSendWhileRunning =
|
|
9238
|
+
allowSendWhileRunning = true,
|
|
9239
9239
|
onSteer
|
|
9240
9240
|
}) {
|
|
9241
9241
|
const {
|