feat(create,resume): same-cwd ordering of post-discovered agents (Issue #63)
This commit is contained in:
1 parent
fa93cc5622
commit
e594d2b650
5 files changed
+444
-2
No files matched your search
@@ -2051,6 +2051,21 @@ sys.exit(main(sys.argv[1:]))
|
||||
PYEOF
|
||||
}
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# mam_id_order_wait <workspace> <agent> <session> [uuid]
|
||||
# Issue #63: same-cwd creation/resume ordering for post-discovered agents.
|
||||
# ---------------------------------------------------------------------------
|
||||
mam_id_order_wait() {
|
||||
local workspace="$1" agent="$2" session_name="$3" uuid="${4:-}"
|
||||
local abs; abs="$(mam_abs_workspace "$workspace")"
|
||||
env_python "$AGENT_SESSIONS_YAML" wait --cwd "$abs" --agent "$agent" \
|
||||
--session "$session_name" --owner-pid "$$" --uuid "$uuid" <<'PYEOF'
|
||||
import sys
|
||||
from lib_py.agents.id_order import main
|
||||
sys.exit(main(sys.argv[1:]))
|
||||
PYEOF
|
||||
}
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Session isolation — Universal Global Config (Option B, P3-1)
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user