Merge pull request #2843 from steve02081504/patch-1

join chatlog with `\x01`
This commit is contained in:
Cohee 2024-09-14 21:51:36 +03:00 committed by GitHub
commit 2b08d61c27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,15 +217,16 @@ class WorldInfoBuffer {
depth = MAX_SCAN_DEPTH;
}
let result = this.#depthBuffer.slice(this.#startDepth, depth).join('\n');
const JOINER = '\n\x01';
let result = this.#depthBuffer.slice(this.#startDepth, depth).join(JOINER);
if (this.#injectBuffer.length > 0) {
result += '\n' + this.#injectBuffer.join('\n');
result += JOINER + this.#injectBuffer.join(JOINER);
}
// Min activations should not include the recursion buffer
if (this.#recurseBuffer.length > 0 && scanState !== scan_state.MIN_ACTIVATIONS) {
result += '\n' + this.#recurseBuffer.join('\n');
result += JOINER + this.#recurseBuffer.join(JOINER);
}
return result;