Skip to content

Refactor control-plane sessions screen into focused modules - #25

Merged
roackb2 merged 4 commits into
mainfrom
codex/refactor-sessions-screen-hooks
May 2, 2026
Merged

Refactor control-plane sessions screen into focused modules#25
roackb2 merged 4 commits into
mainfrom
codex/refactor-sessions-screen-hooks

Conversation

@roackb2

@roackb2 roackb2 commented May 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add regression coverage for the control-plane sessions screen before refactoring.
  • Extract SessionsScreen state and interaction concerns into screen-specific hooks under hooks/sessions-screen/.
  • Move sessions-screen-only helpers/components into screens/sessions-screen/, including mobile layout selection and file mention menu rendering.
  • Reduce SessionsScreen.tsx to the desktop composition/shared state assembly path while preserving existing behavior.

Verification

  • yarn eslint
  • yarn typecheck
  • yarn vitest run src/__tests__/integration/web/control-plane-sessions-screen.test.tsx
  • yarn test
  • Prior refactor verification also included yarn build.

Notes

The companion notes repo still has the uncommitted planning document changes from this refactor discussion; this PR only covers the implementation repo changes.

@roackb2
roackb2 marked this pull request as ready for review May 2, 2026 04:01
@roackb2
roackb2 merged commit 51005c9 into main May 2, 2026
4 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