Skip to content

fix: hide Codex subagent lifecycle events#3522

Merged
trunk-io[bot] merged 2 commits into
mainfrom
posthog-code/hide-codex-subagent-lifecycle-events
Jul 16, 2026
Merged

fix: hide Codex subagent lifecycle events#3522
trunk-io[bot] merged 2 commits into
mainfrom
posthog-code/hide-codex-subagent-lifecycle-events

Conversation

@MattPua

@MattPua MattPua commented Jul 16, 2026

Copy link
Copy Markdown
Member

Problem

Codex subagent wait and close operations appear in the conversation tool list, exposing internal orchestration details.

CleanShot 2026-07-16 at 14 21 40@2x

Changes

  • Filter Codex wait and closeAgent tool calls before they reach conversation state
  • Apply the filter to live events and session history replay

How did you test this?

  • pnpm exec vitest run src/adapters/codex-app-server/mapping.test.ts
  • pnpm exec biome lint src/adapters/codex-app-server/mapping.ts
  • pnpm typecheck

Automatic notifications

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

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: 3602ad5c-5325-483e-95c4-cc8c96830be7
@MattPua
MattPua marked this pull request as ready for review July 16, 2026 18:27
@MattPua MattPua added the Stamphog This will request an autostamp by stamphog on small changes label Jul 16, 2026
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit d6ba9a4.

@trunk-io

trunk-io Bot commented Jul 16, 2026

Copy link
Copy Markdown

😎 Merged directly without going through the merge queue, as the queue was empty and the PR was up to date with the target branch - details.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Trivial display filter — returning null for internal lifecycle tool names prevents them from rendering in the UI. No production risk.

@greptile-apps

greptile-apps Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix: hide Codex subagent lifecycle event..." | Re-trigger Greptile

@posthog

posthog Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

👋 Visual changes detected for this PR.

Review and approve in PostHog Visual Review

If these changes are unexpected, they may be caused by a flaky test or a broken snapshot on master. Don't approve — rerun the job or wait for a fix.

@trunk-io
trunk-io Bot merged commit 66bb8b8 into main Jul 16, 2026
31 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/hide-codex-subagent-lifecycle-events branch July 16, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant