Skip to content

fix(tui): reap orphan slash workers#25765

Closed
solovision24 wants to merge 2 commits into
NousResearch:mainfrom
solovision24:dev/t_95010e19-lifecycle
Closed

fix(tui): reap orphan slash workers#25765
solovision24 wants to merge 2 commits into
NousResearch:mainfrom
solovision24:dev/t_95010e19-lifecycle

Conversation

@solovision24

Copy link
Copy Markdown

Summary

  • add a narrow TUI slash_worker orphan reaper for stale direct-child worker processes
  • trigger throttled reaping on session create/close and force it during TUI gateway shutdown
  • cover process-safety behavior with regression tests

Verification

  • python -m pytest tests/test_tui_gateway_server.py -q
  • python -m pytest tests/test_tui_gateway_server.py::test_session_create_close_race_does_not_orphan_worker tests/test_tui_gateway_server.py::test_session_create_no_race_keeps_worker_alive tests/test_tui_gateway_server.py::test_get_db_degrades_cleanly_when_sessiondb_init_fails tests/test_lazy_session_regressions.py -q
  • python -m py_compile tui_gateway/server.py tests/test_tui_gateway_server.py
  • static diff scan: no findings
  • independent reviewer: passed

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/tui Terminal UI (ui-tui/ + tui_gateway/) comp/cron Cron scheduler and job management labels May 14, 2026
@solovision24 solovision24 deleted the dev/t_95010e19-lifecycle branch May 15, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cron Cron scheduler and job management comp/tui Terminal UI (ui-tui/ + tui_gateway/) P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants