@iota-uz/sdk 0.4.35 → 0.4.37

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.
@@ -3003,7 +3003,10 @@ var ChatMachine = class {
3003
3003
  )
3004
3004
  });
3005
3005
  const normalized = normalizeRPCError(err, "Failed to send message");
3006
- this._updateInput({ inputError: normalized.userMessage });
3006
+ this._updateInput({
3007
+ message: content,
3008
+ inputError: normalized.userMessage
3009
+ });
3007
3010
  this._updateMessaging({
3008
3011
  streamError: normalized.userMessage,
3009
3012
  streamErrorRetryable: normalized.retryable
@@ -19702,10 +19705,14 @@ async function* sendMessage(deps, sessionId, content, attachments = [], signal,
19702
19705
  } catch (err) {
19703
19706
  if (err instanceof Error) {
19704
19707
  if (err.name === "AbortError") {
19705
- yield {
19706
- type: "error",
19707
- error: connectionTimedOut ? `Stream request timed out after ${deps.streamConnectTimeoutMs}ms` : "Stream cancelled"
19708
- };
19708
+ if (connectionTimedOut) {
19709
+ yield {
19710
+ type: "error",
19711
+ error: `Stream request timed out after ${deps.streamConnectTimeoutMs}ms`
19712
+ };
19713
+ } else {
19714
+ throw err;
19715
+ }
19709
19716
  } else {
19710
19717
  yield {
19711
19718
  type: "error",