Skip to content

refactor(hub,web): remove legacy agent_session and inference_turn shim (CL-10991) - #1136

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-10991-remove-legacy-session-shim
Oct 21, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
cl-10991-remove-legacy-session-shim

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Closes CL-10991.

  • Remove apps/hub/src/lazy-run-collector.ts (ensureRunSession / withLazyRunCollector) and createHubPersistMailWithSessionEnsure from apps/hub/src/mailbox-persist.ts so apps/hub no longer synthesizes legacy agent_session rows or dual-writes to session_mail.
  • Delete obsolete e2e/workflows/agent-session.test.ts and e2e/workflows/first-reply-session.test.ts suites and update e2e/hub/mailbox-persist.test.ts.
  • Remove ListingTurnSchema, turns/hasInFlightTurn, and withListingAbandoned from apps/web (insights-api.ts, run-outcome.ts, insights-stats.ts, pages/insights-page.tsx), deriving run outcome status directly from status and endedAt.
  • Delete obsolete docs/agent-session-provisioning.md and docs/run-outcome-status.md and update docs/insights-native-runs.md.

@linear-code

linear-code Bot commented Oct 21, 2026

Copy link
Copy Markdown

CL-10991

@TheGreatAxios
TheGreatAxios enabled auto-merge (squash) October 21, 2026 04:28
@TheGreatAxios
TheGreatAxios merged commit ffb12bb into main Oct 21, 2026
6 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