Skip to content

[codex] Surface live agent plans in web and CLI v2#142

Merged
roackb2 merged 1 commit into
mainfrom
codex/plan-ui-events
May 31, 2026
Merged

[codex] Surface live agent plans in web and CLI v2#142
roackb2 merged 1 commit into
mainfrom
codex/plan-ui-events

Conversation

@roackb2
Copy link
Copy Markdown
Owner

@roackb2 roackb2 commented May 31, 2026

Summary

  • Emit plan.updated as a core live conversation activity when the agent successfully calls update_plan.
  • Carry that activity through the existing control-plane session event stream instead of adding a separate plan API.
  • Render active turn plans in web-v2 and cli-v2, clearing them on run start/session change/run finish.
  • Extend shared client session activity handling so both interfaces consume the same API-derived event shape.

Boundary notes

  • Plan facts stay owned by core agent planning/update_plan semantics.
  • Transport stays in the existing control-plane sessionEvents stream.
  • web-v2 and cli-v2 only render the shared activity state; neither imports core/server/old-cli code.

Validation

  • ./node_modules/.bin/vitest run src/__tests__/integration/core/run-agent.test.ts src/__tests__/unit/client-shared/session-activity-service.test.ts src/__tests__/unit/cli-v2/control-plane-session-store.test.ts src/__tests__/unit/web-v2/agent-plan-panel.test.tsx
  • yarn build
  • yarn test

@roackb2 roackb2 force-pushed the codex/plan-ui-events branch 3 times, most recently from 2e79859 to 3f06a85 Compare May 31, 2026 06:48
@roackb2 roackb2 force-pushed the codex/plan-ui-events branch from 3f06a85 to 10275bc Compare May 31, 2026 06:51
@roackb2 roackb2 marked this pull request as ready for review May 31, 2026 06:55
@roackb2 roackb2 merged commit 50dbef2 into main May 31, 2026
5 checks passed
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.

1 participant