Skip to content

Conversation

@joshka-oai
Copy link
Collaborator

  • Moved the unix-only suspend/resume logic into a dedicated job_control module housing SuspendContext, replacing scattered cfg-gated fields and helpers in tui.rs.
  • Tui now holds a single suspend_context (Arc-backed) instead of multiple atomics, and the event stream uses it directly for Ctrl-Z handling.
  • Added detailed docs around the suspend/resume flow, cursor tracking, and the Arc/atomic ownership model for the 'static event stream.
  • Renamed the process-level SIGTSTP helper to suspend_process and the cursor tracker to set_cursor_y to better reflect their roles.

- Moved the unix-only suspend/resume logic into a dedicated job_control
  module housing SuspendContext, replacing scattered cfg-gated
  fields and helpers in tui.rs.
- Tui now holds a single suspend_context (Arc-backed) instead of
  multiple atomics, and the event stream uses it directly for Ctrl-Z
  handling.
- Added detailed docs around the suspend/resume flow, cursor
  tracking, and the Arc/atomic ownership model for the
  'static event stream.
- Renamed the process-level SIGTSTP helper to suspend_process
  and the cursor tracker to set_cursor_y to better reflect their roles.
@joshka-oai joshka-oai enabled auto-merge (squash) November 10, 2025 22:51
@joshka-oai joshka-oai merged commit 60deb67 into main Nov 10, 2025
25 checks passed
@joshka-oai joshka-oai deleted the joshka/refactor-job-control branch November 10, 2025 23:13
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants