feat(agents): session_ids - the stop/purge/resume id decision (Issue #63)
This commit is contained in:
1 parent
ead490bddc
commit
b8a30d5b93
3 files changed
+445
No files matched your search
@@ -2032,12 +2032,25 @@ PYEOF
|
||||
# resolver (per-row own id -> workspace-scoped disk scan),
|
||||
# so recording its result into the row before kill guarantees tier-1 on the next
|
||||
# resume. Pass session_name to prefer that specific row's recorded id. Always exits 0.
|
||||
# Note (Issue #63): stop_session.sh no longer calls this directly (it uses mam_session_ids).
|
||||
# ---------------------------------------------------------------------------
|
||||
capture_conversation_id() {
|
||||
local agent="$1" workdir="$2" session_name="${3:-}"
|
||||
find_workspace_uuid "$workdir" "$agent" "$session_name"
|
||||
}
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# mam_session_ids <stop|resume> [args...]
|
||||
# Issue #63: stop/purge/resume conversation-id decision (lib_py.agents.session_ids).
|
||||
# ---------------------------------------------------------------------------
|
||||
mam_session_ids() {
|
||||
env_python "$AGENT_SESSIONS_YAML" "$@" <<'PYEOF'
|
||||
import sys
|
||||
from lib_py.agents.session_ids 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