Skip to content

feat(session): singleton detached worker controls with multiprocessing#35

Open
GeorgesAlkhouri wants to merge 4 commits into
mainfrom
codex/session-worker-singleton-multiprocessing
Open

feat(session): singleton detached worker controls with multiprocessing#35
GeorgesAlkhouri wants to merge 4 commits into
mainfrom
codex/session-worker-singleton-multiprocessing

Conversation

@GeorgesAlkhouri
Copy link
Copy Markdown
Owner

@GeorgesAlkhouri GeorgesAlkhouri commented Mar 26, 2026

Summary

  • add singleton detached session worker lifecycle with session start|status|exec|stop
  • keep legacy docctl session NDJSON stream mode for backward compatibility
  • switch worker spawn from subprocess to multiprocessing spawn
  • enforce strict singleton config matching to prevent accidental session drift
  • add POSIX Unix-socket transport, idle TTL state handling, and stale-state cleanup

Tests

  • make format-check
  • make typecheck
  • make security-lint
  • make import-lint
  • make check-markdown-links
  • make test-cov

Coverage

  • service_session_worker.py to 100% coverage via focused branch tests

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (65cc5ab) to head (a7cc6b2).

Additional details and impacted files
@@            Coverage Diff             @@
##              main       #35    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           23        24     +1     
  Lines         1258      1696   +438     
==========================================
+ Hits          1258      1696   +438     
Flag Coverage Δ
pytest 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link
Copy Markdown

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