Skip to content

feat: clean up session reloadin#1481

Open
k11kirky wants to merge 1 commit into04-03-feat_update_codex_adapter_and_migrate_to_base_acp_prxy_for_agentfrom
04-03-feat_clean_up_session_reloadin
Open

feat: clean up session reloadin#1481
k11kirky wants to merge 1 commit into04-03-feat_update_codex_adapter_and_migrate_to_base_acp_prxy_for_agentfrom
04-03-feat_clean_up_session_reloadin

Conversation

@k11kirky
Copy link
Copy Markdown
Contributor

@k11kirky k11kirky commented Apr 3, 2026

simplify agent reconnection

Problem

The agent service had separate code paths for handling session reconnection between Codex and Claude adapters, leading to code duplication and inconsistent handling.

Changes

  • Consolidated the reconnection logic for both Codex and Claude adapters into a single code path
  • Moved PostHog JSONL hydration to be Claude-specific (non-Codex adapters) while keeping it within the unified flow
  • Both adapters now use unstable_resumeSession method, with Claude delegating to SDK's resumeSession and Codex delegating to codex-acp's loadSession internally
  • Added clarifying comments explaining the different internal implementations for each adapter

Copy link
Copy Markdown
Contributor Author

k11kirky commented Apr 3, 2026

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