Skip to content

fix(codex): preserve mode and skill suggestions#2890

Merged
richardsolomou merged 1 commit into
mainfrom
posthog-code/gpt-codex-bypass-mode
Jun 26, 2026
Merged

fix(codex): preserve mode and skill suggestions#2890
richardsolomou merged 1 commit into
mainfrom
posthog-code/gpt-codex-bypass-mode

Conversation

@richardsolomou

@richardsolomou richardsolomou commented Jun 24, 2026

Copy link
Copy Markdown
Member

Problem

Codex could apply the selected mode but leave PostHog Code showing or enforcing stale read-only state. GPT tasks also lost local skill slash suggestions because Codex does not emit Claude-style skill commands.

Changes

  • Sync Codex startup, fork, and running selector mode state after auto or full-access changes.
  • Keep local skill fallback suggestions merged for Codex / menus, without changing Claude command authority.
  • Validate Codex mode fallbacks so Claude-only values like plan become auto.

How did you test this?

  • pnpm --dir packages/agent exec vitest run src/adapters/codex/codex-agent.test.ts src/execution-mode.test.ts src/adapters/codex/models.test.ts
  • pnpm --dir packages/core exec vitest run src/sessions/cloudSessionConfig.test.ts
  • pnpm --dir packages/ui exec vitest run src/features/message-editor/suggestions/getSuggestions.test.ts, plus package typechecks and Biome.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 96a038c.

@greptile-apps

greptile-apps Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "feat(codex): expose bypass permissions m..." | Re-trigger Greptile

Comment thread packages/agent/src/adapters/codex/models.ts Outdated
Comment thread packages/core/src/sessions/sessionService.ts
Comment thread packages/agent/src/adapters/codex/codex-agent.ts Outdated
@richardsolomou richardsolomou force-pushed the posthog-code/gpt-codex-bypass-mode branch from f52a069 to df3a81b Compare June 24, 2026 10:18
@richardsolomou richardsolomou changed the title feat(codex): expose bypass permissions mode fix(codex): preserve initial permission mode Jun 24, 2026
@richardsolomou richardsolomou force-pushed the posthog-code/gpt-codex-bypass-mode branch from df3a81b to 4a9cd78 Compare June 24, 2026 10:23
Generated-By: PostHog Code
Task-Id: 30ab2de3-1bc3-4df3-affc-1ebb648777bd
@richardsolomou richardsolomou force-pushed the posthog-code/gpt-codex-bypass-mode branch from 4a9cd78 to 96a038c Compare June 24, 2026 10:35
@richardsolomou richardsolomou changed the title fix(codex): preserve initial permission mode fix(codex): preserve mode and skill suggestions Jun 24, 2026
@richardsolomou richardsolomou requested a review from a team June 24, 2026 10:56
@richardsolomou richardsolomou merged commit 8567488 into main Jun 26, 2026
23 checks passed
@richardsolomou richardsolomou deleted the posthog-code/gpt-codex-bypass-mode branch June 26, 2026 15:10
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