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]

Doc: Restore docs on starting web UI on GH codespaces

Kilian Lieret06865a0ff4c1
diff --git a/docs/installation/codespaces.md b/docs/installation/codespaces.md
index 302d0136..8e2c97cc 100644
--- a/docs/installation/codespaces.md
+++ b/docs/installation/codespaces.md
@@ -5,6 +5,24 @@
</video>
1. Click [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/princeton-nlp/SWE-agent)
-2. Add your API keys to `keys.cfg` (find the file in the left sidebar and fill out the template)
+2. Add your API keys to `keys.cfg` (find the file in the left sidebar and fill out the template). More information on the keys [here](keys.md).
3. Make sure to wait until the `postCreateCommand` in the terminal window at the bottom is finished
-4. Enter your SWE-agent command, see [using the web interface](../usage/web_ui.md) or [using the command line](../usage/cl_tutorial.md).
\ No newline at end of file
+4. Enter your SWE-agent command, see [using the web interface](../usage/web_ui.md) or [using the command line](../usage/cl_tutorial.md).
+
+## Running the Web UI
+
+Go to the terminal and enter
+
+```bash
+./start_web_ui.sh
+```
+
+After a while, you should see a popup offering you to forward port `3000`. Click `Open in Browser`.
+
+![port 3000 forwarding popup](../assets/open_port_default.png)
+
+If you instead only see the offer to forward port `8000`, do not click it (this is the port that's being used by the backend).
+
+Instead, click on the `Ports` tab, and click on the globe next to port `3000`:
+
+![port 3000 forwarding manual](../assets/open_port_in_browser.png)
\ No newline at end of file
diff --git a/start_web_ui.sh b/start_web_ui.sh
index e4d848a9..99904ec8 100755
--- a/start_web_ui.sh
+++ b/start_web_ui.sh
@@ -19,7 +19,7 @@ echo " open your browser at http://localhost:3000"
echo "* If you are running in github codespaces, please click the popup "
echo " that offers to forward port 3000 (not 8000!)."
echo " Missed it? Find more information at "
-echo " https://github.com/princeton-nlp/SWE-agent/blob/main/docs/github_codespace.md"
+echo " https://princeton-nlp.github.io/SWE-agent/installation/codespaces#running-the-web-ui"
echo "* Something went wrong? Please check "
echo " web_api.log for error messages!"