feat: orch up starts issue sessions in existing worktrees
orch up MANIFEST reads an issue manifest (a path, or NAME in manifest_dir, default <config>/manifests, set in <config>/config.toml) and starts one detached session per listed worktree, across repos. Each worktree brings its own machine, profile and .hx/task.md; the task text now reaches the agent. Sessions live in <state>/issues.db; orch issues shows them grouped by issue. Also: liveness checks use kill(pid, 0) instead of /proc (broken on macOS), the same branch name in two repos no longer counts as the same place, and the merge queue column ticket is renamed to issue (migrated on open). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
440b19180e
commit
20f88d88df
16 files changed
+791
-65
No files matched your search
@@ -156,6 +156,13 @@ impl Run {
|
||||
}
|
||||
}
|
||||
|
||||
/// Does a process with this pid exist? Works on Linux and macOS (no `/proc` there).
|
||||
pub fn pid_alive(pid: u32) -> bool {
|
||||
// SAFETY: signal 0 only checks that the process exists.
|
||||
let r = unsafe { libc::kill(pid as i32, 0) };
|
||||
r == 0 || std::io::Error::last_os_error().raw_os_error() == Some(libc::EPERM)
|
||||
}
|
||||
|
||||
pub fn kill_group(pgid: u32) {
|
||||
// SAFETY: plain syscall; hx is spawned with process_group(0) so pgid == its pid.
|
||||
unsafe { libc::killpg(pgid as i32, libc::SIGKILL) };
|
||||
|
||||
Reference in new issue
Block a user