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
@@ -238,6 +238,10 @@ if [ "${DRY_RUN:-0}" = "1" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Issue #63: wait if another same-cwd session of this post-discovered agent
|
||||
# is still being created or has not recorded its id yet (lib.sh mam_id_order_wait).
|
||||
mam_id_order_wait "$WORKSPACE" "$AGENT" "$SESSION_NAME" "$UUID" || exit 1
|
||||
|
||||
if [ "$AGENT" = "opencode" ]; then
|
||||
if [ -z "${OPENCODE_PERMISSION:-}" ]; then
|
||||
export OPENCODE_PERMISSION='{"*":"allow"}'
|
||||
|
||||
Reference in new issue
Block a user