()
| 779 | // (fresh sessionId + panel init) + fresh StartCascade, with a |
| 780 | // small backoff to let the LS settle. |
| 781 | const sendMessage = async () => { |
| 782 | const sendProto = buildSendCascadeMessageRequest(this.apiKey, cascadeId, text, modelEnum, modelUid, sessionId, { |
| 783 | toolPreamble, images, |
| 784 | nativeMode: !!nativeMode, |
| 785 | nativeAllowlist: nativeAllowlist || null, |
| 786 | nativeEnvironment: nativeEnvironment || '', |
| 787 | additionalSteps: additionalSteps || null, |
| 788 | }); |
| 789 | await grpcUnary( |
| 790 | this.port, this.csrfToken, `${LS_SERVICE}/SendUserCascadeMessage`, grpcFrame(sendProto) |
| 791 | ); |
| 792 | }; |
| 793 | const MAX_PANEL_RETRIES = 3; |
| 794 | const rebuildFullHistoryText = async () => { |
| 795 | if (!(isResume && convo.length > 1)) return; |
nothing calls this directly
no test coverage detected