From 76ec0dd9296faefbd69f41612226e937c7d314ed Mon Sep 17 00:00:00 2001 From: Godopu Date: Sun, 12 Jul 2026 10:27:59 +0900 Subject: [PATCH] fix(skills): support automatic bypass of large-session resume warning dialogs - Add 'Resuming the full session' and 'Resume from summary' patterns to TUI validation constants - Update handle_startup_dialogs to automatically submit the choice on large-session warnings, preventing start/resume lockups --- .agents/skills/lib.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.agents/skills/lib.sh b/.agents/skills/lib.sh index 3e0bfeb..172687c 100644 --- a/.agents/skills/lib.sh +++ b/.agents/skills/lib.sh @@ -23,7 +23,7 @@ WORKSPACE_ROOT="$(cd "$SKILL_DIR/../.." && pwd)" AGENT_SESSIONS_YAML="${AGENT_SESSIONS_YAML:-$WORKSPACE_ROOT/.mam/agent-sessions.yaml}" # Central TUI dialog and readiness validation tokens (OP-6) -_MAM_DIALOG_TOKENS='Do you trust the files|Yes, proceed|No, exit|Allow this|Press Enter to continue|browser to authenticate|Use arrow keys|Esc to cancel' +_MAM_DIALOG_TOKENS='Do you trust the files|Yes, proceed|No, exit|Allow this|Press Enter to continue|browser to authenticate|Use arrow keys|Esc to cancel|Resuming the full session|Resume from summary' _MAM_READY_TOKENS_CLAUDE='Anthropic|Assistant|Chat|Welcome|projects' # Workspace-relative defaults with environment overrides (Phase Z) @@ -1221,6 +1221,8 @@ handle_startup_dialogs() { _sks_tmux send-keys -t "$sess" Down sleep 0.3 _sks_tmux send-keys -t "$sess" Enter + elif printf '%s\n' "$pane" | grep -q 'Resuming the full session'; then + _sks_tmux send-keys -t "$sess" Enter elif printf '%s\n' "$pane" | grep -Eq "$_MAM_READY_TOKENS_CLAUDE"; then return 0 fi