Skip to content

Commit 1518405

Browse files
primaNexesenex
authored andcommitted
fix: Issue with agent choices not rendering after edit and too many choices being checked for the choices on load
1 parent 6f9b9b4 commit 1518405

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
@@ -25171,7 +25171,7 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
2517125171
if (loadingNewGame)
2517225172
{
2517325173
loadingNewGame = false
25174-
for (let i = combined_chunks.length - 1; i >= 0 && i > combined_chunks.length - 10; i--) {
25174+
for (let i = combined_chunks.length - 1; i >= 0 && i >= combined_chunks.length - 4; i--) {
2517525175
let elem = combined_chunks[i]
2517625176
if (elem.message.indexOf("Action: ") === 0) {
2517725177
let actionJson = elem.message.replace("Action:", "").trim()
@@ -25781,6 +25781,7 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
2578125781

2578225782
removeChoiceContainer()
2578325783
originalMergeEditField()
25784+
renderSuggestions()
2578425785
}
2578525786

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

0 commit comments

Comments
 (0)