fix: raise Zulip truncation limit from 1500 to 10000 (Zulip max)
CI / validate (pull_request) Failing after 1s
CI / validate (pull_request) Failing after 1s
This commit is contained in:
@@ -590,8 +590,9 @@ export default function (pi: ExtensionAPI) {
|
|||||||
if (!pending || !pending.zulipMessageId) return;
|
if (!pending || !pending.zulipMessageId) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const preview = streamingAccumulator.length > 1800
|
const MAX_PREVIEW = 9500;
|
||||||
? streamingAccumulator.slice(0, 1800) + "\n\n_… still generating…_"
|
const preview = streamingAccumulator.length > MAX_PREVIEW
|
||||||
|
? streamingAccumulator.slice(0, MAX_PREVIEW) + "\n\n_… still generating…_"
|
||||||
: streamingAccumulator;
|
: streamingAccumulator;
|
||||||
await queue!.editMessage(pending.zulipMessageId, preview);
|
await queue!.editMessage(pending.zulipMessageId, preview);
|
||||||
} catch {
|
} catch {
|
||||||
@@ -646,8 +647,9 @@ export default function (pi: ExtensionAPI) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const truncated = responseText.length > 1500
|
const MAX_ZULIP_MSG = 10000;
|
||||||
? responseText.slice(0, 1500) + "\n\n[...truncated, see session for full output]"
|
const truncated = responseText.length > MAX_ZULIP_MSG
|
||||||
|
? responseText.slice(0, MAX_ZULIP_MSG) + "\n\n[...truncated at Zulip limit, see session for full output]"
|
||||||
: responseText;
|
: responseText;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user