Skip to content

Commit 77d2e1c

Browse files
author
prima
committed
fix: Issue with agent choices not rendering after edit and too many choices being checked for the choices on load
1 parent 567a81c commit 77d2e1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

klite.embd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25061,7 +25061,7 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
2506125061
if (loadingNewGame)
2506225062
{
2506325063
loadingNewGame = false
25064-
for (let i = combined_chunks.length - 1; i >= 0 && i > combined_chunks.length - 10; i--) {
25064+
for (let i = combined_chunks.length - 1; i >= 0 && i >= combined_chunks.length - 4; i--) {
2506525065
let elem = combined_chunks[i]
2506625066
if (elem.message.indexOf("Action: ") === 0) {
2506725067
let actionJson = elem.message.replace("Action:", "").trim()
@@ -25671,6 +25671,7 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
2567125671

2567225672
removeChoiceContainer()
2567325673
originalMergeEditField()
25674+
renderSuggestions()
2567425675
}
2567525676

2567625677
let originalBtnBack = btn_back, originalBtnRedo = btn_redo, originalBtnRetry = btn_retry;

0 commit comments

Comments
 (0)