Skip to content

feat: clean up session reloadin#1481

Merged
k11kirky merged 1 commit intomainfrom
04-03-feat_clean_up_session_reloadin
Apr 6, 2026
Merged

feat: clean up session reloadin#1481
k11kirky merged 1 commit intomainfrom
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

@k11kirky k11kirky force-pushed the 04-03-feat_clean_up_session_reloadin branch from fe3f90f to 9e67ff2 Compare April 6, 2026 21:16
@k11kirky k11kirky force-pushed the 04-03-feat_update_codex_adapter_and_migrate_to_base_acp_prxy_for_agent branch from bb3031e to b772ead Compare April 6, 2026 21:16
Copy link
Copy Markdown
Contributor Author

k11kirky commented Apr 6, 2026

Merge activity

  • Apr 6, 9:47 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 6, 9:57 PM UTC: Graphite rebased this pull request as part of a merge.
  • Apr 6, 10:06 PM UTC: @k11kirky merged this pull request with Graphite.

@k11kirky k11kirky changed the base branch from 04-03-feat_update_codex_adapter_and_migrate_to_base_acp_prxy_for_agent to graphite-base/1481 April 6, 2026 21:48
@k11kirky k11kirky changed the base branch from graphite-base/1481 to main April 6, 2026 21:56
@k11kirky k11kirky force-pushed the 04-03-feat_clean_up_session_reloadin branch from 9e67ff2 to 21102e8 Compare April 6, 2026 21:57
@k11kirky k11kirky merged commit 2b755fe into main Apr 6, 2026
16 checks passed
@k11kirky k11kirky deleted the 04-03-feat_clean_up_session_reloadin branch April 6, 2026 22:06
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