From 9e7dc0ba3358723d2d57812caec50958093cc4d6 Mon Sep 17 00:00:00 2001 From: mijauexe Date: Thu, 3 Jul 2025 09:24:09 +0200 Subject: [PATCH 1/4] Improve testing instructions --- core/prompts/troubleshooter/define_user_review_goal.prompt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/prompts/troubleshooter/define_user_review_goal.prompt b/core/prompts/troubleshooter/define_user_review_goal.prompt index 44c068eacd..b899a88ea2 100644 --- a/core/prompts/troubleshooter/define_user_review_goal.prompt +++ b/core/prompts/troubleshooter/define_user_review_goal.prompt @@ -42,6 +42,12 @@ Here is an example output with a few user steps: } ---end_of_example--- +** VERY IMPORTANT **: +When you mention a URL, always write the entire URL. For example, ** DO NOT ** write /some/url but write http://localhost:5173/some/url for the frontend or http://localhost:3000/some/url for the backend. This way, the user can just copy and paste the URL into their browser without needing to think about it. + +** VERY IMPORTANT **: +If you need to execute a Mongo command, make sure to mention the entire command and use the package mongosh and ** NOT ** mongo - for example, mongosh --eval 'db.collection.find({})' + If nothing needs to be tested for this task, instead of outputting the steps, just output an empty list like this: ---example_when_test_not_needed--- { From 1dd4869623fa8533c3b24c3f921bdb1e9319c8c6 Mon Sep 17 00:00:00 2001 From: MarkoBosnjak1 Date: Mon, 7 Jul 2025 13:24:40 +0200 Subject: [PATCH 2/4] First version of posthog --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Dockerfile b/Dockerfile index e6c9394f7a..a2abadc1d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,6 +75,24 @@ RUN chown -R devuser:devusergroup /usr/local/share/code-server && \ cp -f /favicon.svg /usr/local/lib/code-server/src/browser/media/favicon-dark-support.svg && \ cp -f /favicon.svg /usr/local/lib/code-server/src/browser/media/favicon.svg +# Configure PostHog analytics integration +RUN sed -i "s|'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' ;|'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' https://us-assets.i.posthog.com ;|g" /usr/local/lib/code-server/lib/vscode/out/server-main.js && \ + sed -i '//r /dev/stdin' /usr/local/lib/code-server/lib/vscode/out/vs/code/browser/workbench/workbench.html << 'EOF' + +EOF + RUN chmod +x /entrypoint.sh && \ chmod +x /var/init_data/on-event-extension-install.sh && \ chown -R devuser:devusergroup /pythagora && \ From 04bd13c727afc1fbe0559e6420666a2793b10db1 Mon Sep 17 00:00:00 2001 From: MarkoBosnjak1 Date: Mon, 7 Jul 2025 13:41:10 +0200 Subject: [PATCH 3/4] Remove init user --- Dockerfile | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index a2abadc1d1..72d502474f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -77,20 +77,15 @@ RUN chown -R devuser:devusergroup /usr/local/share/code-server && \ # Configure PostHog analytics integration RUN sed -i "s|'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' ;|'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' https://us-assets.i.posthog.com ;|g" /usr/local/lib/code-server/lib/vscode/out/server-main.js && \ - sed -i '//r /dev/stdin' /usr/local/lib/code-server/lib/vscode/out/vs/code/browser/workbench/workbench.html << 'EOF' - + sed -i '//r /dev/stdin' /usr/local/lib/code-server/lib/vscode/out/vs/code/browser/workbench/workbench.html << 'EOF' \ + \ EOF RUN chmod +x /entrypoint.sh && \ From 29af7db31af7809c5254672f7e059eb3f8111d67 Mon Sep 17 00:00:00 2001 From: MarkoBosnjak1 Date: Mon, 7 Jul 2025 13:57:24 +0200 Subject: [PATCH 4/4] Use posthog html file instead of inline --- Dockerfile | 16 +++++----------- cloud/posthog.html | 8 ++++++++ 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 cloud/posthog.html diff --git a/Dockerfile b/Dockerfile index 72d502474f..891fdfb6f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,17 +76,11 @@ RUN chown -R devuser:devusergroup /usr/local/share/code-server && \ cp -f /favicon.svg /usr/local/lib/code-server/src/browser/media/favicon.svg # Configure PostHog analytics integration -RUN sed -i "s|'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' ;|'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' https://us-assets.i.posthog.com ;|g" /usr/local/lib/code-server/lib/vscode/out/server-main.js && \ - sed -i '//r /dev/stdin' /usr/local/lib/code-server/lib/vscode/out/vs/code/browser/workbench/workbench.html << 'EOF' \ - \ -EOF +RUN sed -i "s|'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' ;|'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' https://us-assets.i.posthog.com ;|g" /usr/local/lib/code-server/lib/vscode/out/server-main.js + +COPY cloud/posthog.html /tmp/posthog.html +RUN sed -i '//r /tmp/posthog.html' /usr/local/lib/code-server/lib/vscode/out/vs/code/browser/workbench/workbench.html && \ + rm /tmp/posthog.html RUN chmod +x /entrypoint.sh && \ chmod +x /var/init_data/on-event-extension-install.sh && \ diff --git a/cloud/posthog.html b/cloud/posthog.html new file mode 100644 index 0000000000..5ef4a68e6b --- /dev/null +++ b/cloud/posthog.html @@ -0,0 +1,8 @@ + \ No newline at end of file