: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(context): allow dream tasks to run unattended (#99761)
Peter Kirkham2a747bcfc782
diff --git a/products/context_layer/backend/temporal/dreaming.py b/products/context_layer/backend/temporal/dreaming.pyindex 9bf44c60cd17..b5884ad969f6 100644--- a/products/context_layer/backend/temporal/dreaming.py+++ b/products/context_layer/backend/temporal/dreaming.py@@ -201,7 +201,7 @@ async def dispatch_dream_run(input: DispatchDreamRunInput) -> DispatchDreamRunOuruntime_adapter="codex",model="gpt-5.6-sol",reasoning_effort="high",- initial_permission_mode="bypassPermissions",+ initial_permission_mode="full-access",),step_name="context-layer-dream",ai_stage=DREAM_AI_STAGE,diff --git a/products/context_layer/backend/test/test_dreaming.py b/products/context_layer/backend/test/test_dreaming.pyindex b0e598d6a231..19c4f94b1384 100644--- a/products/context_layer/backend/test/test_dreaming.py+++ b/products/context_layer/backend/test/test_dreaming.py@@ -168,7 +168,7 @@ class TestDreamingLane(BaseTest):assert context.runtime_adapter == "codex"assert context.model == "gpt-5.6-sol"assert context.reasoning_effort == "high"- assert context.initial_permission_mode == "bypassPermissions"+ assert context.initial_permission_mode == "full-access"assert context.posthog_mcp_scopes == [*dreaming.MCP_READ_SCOPES, dreaming.CONTEXT_LAYER_INTERNAL_SCOPE]assert trigger_mock.call_args.kwargs["ai_stage"] == dreaming.DREAM_AI_STAGEprompt = trigger_mock.call_args.args[0]