From 559240f3c8f139cbe4e0b5cc51915b110230030b Mon Sep 17 00:00:00 2001 From: Godopu Date: Sun, 12 Jul 2026 15:34:00 +0900 Subject: [PATCH] refactor(create): force state isolation by default for new sessions - Update default ISOLATE value to 1 in create_session.sh - Add --no-isolate option to allow opting out of directory isolation if desired - Keep --isolate flag for legacy syntax compatibility --- .../multi-agent-mux-create/scripts/create_session.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.agents/skills/multi-agent-mux-create/scripts/create_session.sh b/.agents/skills/multi-agent-mux-create/scripts/create_session.sh index fa5a82a..b9a859b 100755 --- a/.agents/skills/multi-agent-mux-create/scripts/create_session.sh +++ b/.agents/skills/multi-agent-mux-create/scripts/create_session.sh @@ -35,8 +35,8 @@ Options: --tmux-server NAME specify isolated tmux server name --submit-job PROMPT submit a job to multi-agent-mux-delegate-job registry with the given prompt --onboard automatically submit a project alignment/orientation job to the new agent - --isolate provision an isolated per-session state home (.mam/agent_homes/) - so same-CLI multi-role sessions never share a conversation id + --no-isolate disable state isolation (shares global configuration/history) + [default: isolated mode is always active] -h, --help this help EOF } @@ -50,7 +50,7 @@ DRY_RUN=0 TMUX_SERVER_OPT="" SUBMIT_JOB_PROMPT="" ONBOARD=0 -ISOLATE=0 +ISOLATE=1 while [ $# -gt 0 ]; do case "$1" in @@ -63,7 +63,8 @@ while [ $# -gt 0 ]; do --tmux-server) TMUX_SERVER_OPT="$2"; shift 2 ;; --submit-job) SUBMIT_JOB_PROMPT="$2"; shift 2 ;; --onboard) ONBOARD=1; shift ;; - --isolate) ISOLATE=1; shift ;; + --isolate) ISOLATE=1; shift ;; # legacy compatibility + --no-isolate) ISOLATE=0; shift ;; -h|--help) usage; exit 0 ;; *) echo "ERROR: unknown arg: $1" >&2; usage; exit 2 ;; esac