Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Web fix: Checkbox default state not reflected

Kilian Lieret658eb2842e8a
diff --git a/sweagent/frontend/src/components/controls/LRunControl.js b/sweagent/frontend/src/components/controls/LRunControl.js
index f1d0ad9a..d8df997c 100644
--- a/sweagent/frontend/src/components/controls/LRunControl.js
+++ b/sweagent/frontend/src/components/controls/LRunControl.js
@@ -67,6 +67,7 @@ function LRunControl({isComputing, isConnected, handleStop, handleSubmit, setDat
type="switch"
id="custom-switch"
label="Test run (no LM queries)"
+ checked={testRun}
onChange={(e) => setTestRun(e.target.checked)}
/>
</div>