Skip to content

P1: expose process lifecycle via process_status and output-loss fields - #61

Merged
novelKR merged 1 commit into
mainfrom
cursor/p1-process-handles
Sep 20, 2026
Merged

novelKR merged 1 commit into
mainfrom
cursor/p1-process-handles

Conversation

@novelKR

@novelKR novelKR commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • process_id is now a lifecycle handle: process_status reports running|exited plus termination metadata (exited/timeout/terminated/unknown).
  • read_process adds output_lost and retained_from so a truncated 256 KiB window is not silent. EOF is not success.
  • exec_command spawn identity is unchanged (no tty_size). UDS WIRE_PROTOCOL is 4 so older workers fail fast.

Test plan

  • cargo test --locked --offline (root workspace)
  • cargo clippy -p codespace-domain -p codespace-runner -p codespace-server --all-targets --offline -- -D warnings
  • cargo test --locked --offline --manifest-path crates/codex-runtime/Cargo.toml --test runtime_binary
  • python3 -B scripts/check_docs.py check
  • CI on this PR

Out of scope

  • exec_command.tty_size, MCP process_resize / process_wait, signals, OS PID
  • stdout/stderr split, durable process recovery, Tasks replacing process_id

Made with Cursor

exec_command stays spawn identity; agents need a handle API to judge
exit and truncated logs without treating EOF as success.

Co-authored-by: Cursor <cursoragent@cursor.com>
@novelKR
novelKR merged commit 34b2083 into main Sep 20, 2026
17 checks passed
@novelKR
novelKR deleted the cursor/p1-process-handles branch September 20, 2026 07:43
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