Skip to content

refactor: organize session option and conversation owners (40 moves) - #37289

Merged
nwparker merged 1 commit into
mainfrom
module-organization/session-owners40-m1df33f7b
Nov 2, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-organization/session-owners40-m1df33f7b

Conversation

@nwparker

@nwparker nwparker commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Put session options and conversations beside the code that owns them, keeping existing behavior intact.

What Changed

Move 13 session-option owners and 27 conversation, lifecycle, journal and view owners into concrete src/shared/agent-session/ subdirectories. Retarget desktop, CLI, mobile, tests and mocks across 607 code outputs, plus two CI routing-prefix updates in one metadata file. Use direct defining-owner imports; add no barrels or forwarding modules.

Why

Complete two connected ownership boundaries in one larger cleanup PR. This reduces the remaining serial PR count while keeping the preservation audit coherent.

Linked Issue

Module-organization tracker, kept locally.

Visual Proof

N/A — module organization and imports only; no visual or interaction changes.

Testing

  • Two independent audits of the exact commit: all 608 outputs, 648 changed paths, 689 input bodies and 1,108 resolution witnesses checked; all 42,062 parent entries outside scope remain exact.
  • Full AST, literal, import-binding, runtime-owner, mock, hook and initialization checks; no new barrels or forwarding files.
  • 80 focused tests across 10 suites pass; shared owners, desktop consumers and mobile are covered. Node, web, CLI and mobile typechecks pass, along with routing and all 40 completed static/ratchet checks.
  • Ran required pnpm check:changed --base=08813758b655899831bd4278214eadf7ae7d7344 --maxWorkers=2; used the AGENTS scoped fallback based on the prior eight-minute related-test expansion; stop only that stage and retain all 40 other checks. Six process-host rebuild watcher timeouts reproduced in isolated runs on both this commit and pristine main 98d22faa. The complete broad gate is not claimed to pass locally; applicable CI must pass before merge.
  • Reapplied the identical 608-output implementation onto current main, including test(plugins): make the CSP refusal Electron probe deterministic on Linux #37326’s script-driven Linux CSP probe fix. All 689 input bodies and 1,108 witnesses remain byte-identical.
  • Preserved current main’s picker-recovery and release-compatibility fixes; all five affected compatibility suites and the module-location resolver pass on pristine main (31 tests).
  • Applicable CI and strict actual-parent preservation are required before merge. No rendered UI check; behavior and presentation are unchanged.

Risk

Level: Low. A wrong module or mock target could break options or conversations across desktop, CLI and mobile. Exact body/binding audits, focused tests, typechecks and CI cover these boundaries. Revert the PR to restore the previous organization; wire and saved-data formats are unchanged.

Review

Two independent native Codex source audits cover the exact commit. Detailed evidence and the tracker remain ignored locally.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer content is copied or translated.

Notes

Preserves cross-platform, remote, mobile and folder-workspace contracts. No performance claim.

Checklist

  • Two connected boundaries batched in one larger PR
  • Change, reason, risk and rollback explained
  • Visual proof marked N/A with a reason
  • Source and import ownership reviewed
  • Cross-platform, remote, mobile and folder-workspace impact considered
  • Applicable CI and actual-parent preservation required before merge

@nwparker
nwparker force-pushed the module-organization/session-owners40-m1df33f7b branch 3 times, most recently from de2953a to 25dc624 Compare November 2, 2026 03:12
@nwparker
nwparker force-pushed the module-organization/session-owners40-m1df33f7b branch from 25dc624 to 46da18f Compare November 2, 2026 04:49
@nwparker
nwparker force-pushed the module-organization/session-owners40-m1df33f7b branch from 46da18f to 3e109da Compare November 2, 2026 05:14
@nwparker
nwparker merged commit 9b39188 into main Nov 2, 2026
85 checks passed
nwparker pushed a commit that referenced this pull request Nov 2, 2026
#37191 added an import of the old path after #37289 moved the module, breaking
main's typecheck for every PR.
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