Skip to content

feat: add POSTHOG_CODE=1 env var to workspace shell#1648

Merged
robbie-c merged 1 commit intomainfrom
posthog-code/add-posthog-code-env-var
Apr 14, 2026
Merged

feat: add POSTHOG_CODE=1 env var to workspace shell#1648
robbie-c merged 1 commit intomainfrom
posthog-code/add-posthog-code-env-var

Conversation

@robbie-c
Copy link
Copy Markdown
Member

@robbie-c robbie-c commented Apr 14, 2026

Summary

  • Adds POSTHOG_CODE=1 to the environment variables set in the task shell tab
  • Lets scripts and tools detect they are running inside a PostHog Code shell session

Test plan

  • Open a task shell tab and verify echo $POSTHOG_CODE outputs 1
Screenshot 2026-04-14 at 14 14 16

Created with PostHog Code

Lets scripts and tools detect they are running inside a PostHog Code
shell session.

Generated-By: PostHog Code
Task-Id: 881bead8-3a68-4abe-ae6c-9bcdcb01d464
@robbie-c robbie-c marked this pull request as ready for review April 14, 2026 13:14
Copy link
Copy Markdown
Contributor

@jonathanlab jonathanlab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@robbie-c robbie-c merged commit ae5043d into main Apr 14, 2026
15 checks passed
@robbie-c robbie-c deleted the posthog-code/add-posthog-code-env-var branch April 14, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants