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.

feat(posthog_ai): default the composer to auto mode (#88589)

Georgiy Tarasov5240e6d2e4a1
diff --git a/products/posthog_ai/frontend/logics/runInteractionLogic.test.ts b/products/posthog_ai/frontend/logics/runInteractionLogic.test.ts
index 943e241f2d5d..221019c1e8e7 100644
--- a/products/posthog_ai/frontend/logics/runInteractionLogic.test.ts
+++ b/products/posthog_ai/frontend/logics/runInteractionLogic.test.ts
@@ -367,7 +367,7 @@ describe('runInteractionLogic', () => {
runtime_adapter: 'claude',
model: 'claude-sonnet-5',
reasoning_effort: 'high',
- initial_permission_mode: 'plan',
+ initial_permission_mode: 'auto',
resume_from_run_id: RUN_ID,
pending_user_message: 'continue from here',
})
diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.test.ts b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.test.ts
index 58a274767d3a..406ca840a149 100644
--- a/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.test.ts
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.test.ts
@@ -96,8 +96,8 @@ describe('taskTrackerSceneLogic', () => {
// state). Dropping either regresses follow-up streaming / loses the first prompt.
expect(runBody).toMatchObject({
mode: 'interactive',
- // Claude's default is Plan, matching the desktop app's per-runtime default.
- initial_permission_mode: 'plan',
+ // Both runtimes default to Auto, so a new task starts working without a plan approval.
+ initial_permission_mode: 'auto',
pending_user_message: 'do the thing',
})
const streamKey = logic.values.activeCreation?.streamKey
diff --git a/products/posthog_ai/frontend/utils/composerModes.test.ts b/products/posthog_ai/frontend/utils/composerModes.test.ts
index e96ad63b9e58..511bebd9fdae 100644
--- a/products/posthog_ai/frontend/utils/composerModes.test.ts
+++ b/products/posthog_ai/frontend/utils/composerModes.test.ts
@@ -48,9 +48,9 @@ describe('composerModes', () => {
expect(resolveModeForRuntimeAdapter(adapter, mode)).toBe(expected)
})
- // Claude opens on Plan and Codex on Auto, matching the desktop app.
+ // Both runtimes open on Auto.
it.each([
- [RuntimeAdapterEnumApi.Claude, ClaudeMode.Plan],
+ [RuntimeAdapterEnumApi.Claude, ClaudeMode.Auto],
[RuntimeAdapterEnumApi.Codex, CodexMode.Auto],
])('%s defaults to %s', (adapter, expected) => {
expect(getDefaultModeForRuntimeAdapter(adapter)).toBe(expected)
diff --git a/products/posthog_ai/frontend/utils/composerModes.ts b/products/posthog_ai/frontend/utils/composerModes.ts
index f2eb7c6f22c2..37275582dbe1 100644
--- a/products/posthog_ai/frontend/utils/composerModes.ts
+++ b/products/posthog_ai/frontend/utils/composerModes.ts
@@ -93,11 +93,11 @@ export function getRuntimeModeVocabulary(runtimeAdapter: string): PermissionMode
return runtimeAdapter === RuntimeAdapterEnumApi.Codex ? CODEX_MODES : CLAUDE_MODES
}
-/** Claude opens on Plan, Codex on Auto — matching the desktop app's per-runtime defaults. */
+/** Both runtimes open on Auto — the agent gets to work instead of waiting on a plan approval. */
export function getDefaultModeForRuntimeAdapter(runtimeAdapter: string): PermissionMode {
return runtimeAdapter === RuntimeAdapterEnumApi.Codex
? CodexTaskRunCreateSchemaInitialPermissionModeEnumApi.Auto
- : InitialPermissionModeEnumApi.Plan
+ : InitialPermissionModeEnumApi.Auto
}
export const DEFAULT_COMPOSER_MODE: PermissionMode = getDefaultModeForRuntimeAdapter(RuntimeAdapterEnumApi.Claude)