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
This commit is contained in:
@@ -35,8 +35,8 @@ Options:
|
|||||||
--tmux-server NAME specify isolated tmux server name
|
--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
|
--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
|
--onboard automatically submit a project alignment/orientation job to the new agent
|
||||||
--isolate provision an isolated per-session state home (.mam/agent_homes/<uuid>)
|
--no-isolate disable state isolation (shares global configuration/history)
|
||||||
so same-CLI multi-role sessions never share a conversation id
|
[default: isolated mode is always active]
|
||||||
-h, --help this help
|
-h, --help this help
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ DRY_RUN=0
|
|||||||
TMUX_SERVER_OPT=""
|
TMUX_SERVER_OPT=""
|
||||||
SUBMIT_JOB_PROMPT=""
|
SUBMIT_JOB_PROMPT=""
|
||||||
ONBOARD=0
|
ONBOARD=0
|
||||||
ISOLATE=0
|
ISOLATE=1
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@@ -63,7 +63,8 @@ while [ $# -gt 0 ]; do
|
|||||||
--tmux-server) TMUX_SERVER_OPT="$2"; shift 2 ;;
|
--tmux-server) TMUX_SERVER_OPT="$2"; shift 2 ;;
|
||||||
--submit-job) SUBMIT_JOB_PROMPT="$2"; shift 2 ;;
|
--submit-job) SUBMIT_JOB_PROMPT="$2"; shift 2 ;;
|
||||||
--onboard) ONBOARD=1; shift ;;
|
--onboard) ONBOARD=1; shift ;;
|
||||||
--isolate) ISOLATE=1; shift ;;
|
--isolate) ISOLATE=1; shift ;; # legacy compatibility
|
||||||
|
--no-isolate) ISOLATE=0; shift ;;
|
||||||
-h|--help) usage; exit 0 ;;
|
-h|--help) usage; exit 0 ;;
|
||||||
*) echo "ERROR: unknown arg: $1" >&2; usage; exit 2 ;;
|
*) echo "ERROR: unknown arg: $1" >&2; usage; exit 2 ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user