Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(tasks): seed sandbox OAuth apps during local setup (#93947)

Thomas Obermüllerdb96398d1492
diff --git a/bin/ensure-local-setup b/bin/ensure-local-setup
index 77a98b981fea..b3b5077a999f 100755
--- a/bin/ensure-local-setup
+++ b/bin/ensure-local-setup
@@ -86,6 +86,8 @@ def ensure_wizard_oauth_app() -> None:
STEPS = [
("dev personal API key", lambda: call_command("setup_local_api_key")),
("wizard cloud-run OAuth app", ensure_wizard_oauth_app),
+ # Local migrate runs use --scope=postgres, which skips bin/migrate's tasks-oauth scope, so seed the sandbox agent OAuth apps here.
+ ("task sandbox OAuth apps", lambda: call_command("setup_tasks_oauth")),
]