diff --git a/Dockerfile b/Dockerfile index e6c9394f7a..891fdfb6f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,6 +75,13 @@ 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 + +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 && \ chown -R devuser:devusergroup /pythagora && \ 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 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--- {