@saltcorn/agents 0.7.15 → 0.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-view.js +4 -4
- package/package.json +1 -1
package/agent-view.js
CHANGED
|
@@ -557,7 +557,7 @@ const run = async (
|
|
|
557
557
|
{
|
|
558
558
|
type: "button",
|
|
559
559
|
class: "btn btn-primary btn-sm rounded-pill px-3",
|
|
560
|
-
onclick: "unset_state_field('run_id')",
|
|
560
|
+
onclick: "unset_state_field('run_id', this)",
|
|
561
561
|
title: "New chat",
|
|
562
562
|
},
|
|
563
563
|
i({ class: "fas fa-plus me-1" }),
|
|
@@ -582,7 +582,7 @@ const run = async (
|
|
|
582
582
|
type: "button",
|
|
583
583
|
class: "btn btn-secondary btn-sm pt-0 pb-1",
|
|
584
584
|
style: "font-size: 0.9em;height:1.5em",
|
|
585
|
-
onclick: "unset_state_field('run_id')",
|
|
585
|
+
onclick: "unset_state_field('run_id', this)",
|
|
586
586
|
title: "New session",
|
|
587
587
|
},
|
|
588
588
|
i({ class: "fas fa-redo fa-sm" }),
|
|
@@ -598,7 +598,7 @@ const run = async (
|
|
|
598
598
|
return isModernSidebar
|
|
599
599
|
? div(
|
|
600
600
|
{
|
|
601
|
-
onclick: `set_state_field('run_id',${run.id})`,
|
|
601
|
+
onclick: `set_state_field('run_id',${run.id}, this)`,
|
|
602
602
|
class:
|
|
603
603
|
"prevcopilotrun modern-session-item" +
|
|
604
604
|
(isActive ? " active-session" : ""),
|
|
@@ -621,7 +621,7 @@ const run = async (
|
|
|
621
621
|
)
|
|
622
622
|
: div(
|
|
623
623
|
{
|
|
624
|
-
onclick: `set_state_field('run_id',${run.id})`,
|
|
624
|
+
onclick: `set_state_field('run_id',${run.id}, this)`,
|
|
625
625
|
class: "prevcopilotrun border p-2",
|
|
626
626
|
},
|
|
627
627
|
div(
|