Skip to content

Commit 7ba79b2

Browse files
author
prima
committed
fix: Merge error which caused corpo edit issue
1 parent 4dbe7fb commit 7ba79b2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

klite.embd

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22762,7 +22762,15 @@ Current version indicated by LITEVER below.
2276222762
for(var i=0;i<chatunits.length;++i)
2276322763
{
2276422764
let curr = chatunits[i];
22765-
curr = repack_postprocess_turn(curr, countmap);
22765+
if(corpo_editing_turn != i)
22766+
{
22767+
curr = repack_postprocess_turn(curr, countmap); //change whole object
22768+
}
22769+
else
22770+
{
22771+
let reshaped = repack_postprocess_turn(JSON.parse(JSON.stringify(curr)), countmap);
22772+
curr.name = reshaped.name; //only change name
22773+
}
2276622774

2276722775
let resendbtn = ((curr.myturn && i<chatunits.length-1)?`<button type="button" class="btn btn-primary corpoeditbtn" style="float:right;" onclick="corpo_edit_chunk_resend(${i})">Resend</button>`:``);
2276822776
let bodypart = (corpo_editing_turn == i ?
@@ -36072,8 +36080,8 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
3607236080

3607336081
let originalRenderGametext = render_gametext;
3607436082

36075-
render_gametext = (save = true) => {
36076-
originalRenderGametext(save)
36083+
render_gametext = (save = true, forceScroll) => {
36084+
originalRenderGametext(save, forceScroll)
3607736085
if (isAgentModeEnabledAndSetCorrectly())
3607836086
{
3607936087
renderSuggestions()

0 commit comments

Comments
 (0)