[Bug] Sub-agent permission_prompt completion not signaled
Resolved 💬 3 comments Opened Mar 12, 2026 by HeytalePazguato Closed Apr 10, 2026
Bug Description
There seems to be no way to determine if a sub-agent permission_prompt input was completed. The parent agent remains in waiting and there seems not to be any preToolUse or postToolUse after the decision was submitted for the sub-agent
Environment Info
- Platform: win32
- Terminal: cursor
- Version: 2.1.71
- Feedback ID: 2ed9b57a-5b4b-41a8-bf08-911c0283ccd4
Errors
[{"error":"AbortError: The operation was aborted.\n at unknown\n at abortChildProcess (node:child_process:947:42)\n at onAbortListener2 (node:child_process:35:24)","timestamp":"2026-03-09T03:32:22.170Z"},{"error":"Error: Failed to create shell snapshot: Command failed: C:\\Program Files\\Git\\bin\\bash.exe -c -l SNAPSHOT_FILE='C:\\Users\\jecs9\\.claude\\shell-snapshots\\snapshot-bash-1773027394452-yhfoq9.sh'\n # No user config file to source\n\n # First, create/clear the snapshot file\n echo \"# Snapshot file\" >| \"$SNAPSHOT_FILE\"\n\n # When this file is sourced, we first unalias to avoid conflicts\n # This is necessary because aliases get \"frozen\" inside function definitions at definition time,\n # which can cause unexpected behavior when functions use commands that conflict with aliases\n echo \"# Unset all aliases to avoid conflicts with functions\" >> \"$SNAPSHOT_FILE\"\n echo \"unalias -a 2>/dev/null || true\" >> \"$SNAPSHOT_FILE\"\n\n echo \"shopt -s expand_aliases\" >> \"$SNAPSHOT_FILE\"\n\n \n # Check for rg availability\n echo \"# Check for rg availability\" >> \"$SNAPSHOT_FILE\"\n echo \"if ! (unalias rg 2>/dev/null; command -v rg) >/dev/null 2>&1; then\" >> \"$SNAPSHOT_FILE\"\n \n cat >> \"$SNAPSHOT_FILE\" << 'RIPGREP_FUNC_END'\n function rg {\n if [[ -n $ZSH_VERSION ]]; then\n ARGV0=rg 'C:\\Users\\jecs9\\.local\\bin\\claude.exe' \"$@\"\n elif [[ \"$OSTYPE\" == \"msys\" ]] || [[ \"$OSTYPE\" == \"cygwin\" ]] || [[ \"$OSTYPE\" == \"win32\" ]]; then\n ARGV0=rg 'C:\\Users\\jecs9\\.local\\bin\\claude.exe' \"$@\"\n elif [[ $BASHPID != $$ ]]; then\n exec -a rg 'C:\\Users\\jecs9\\.local\\bin\\claude.exe' \"$@\"\n else\n (exec -a rg 'C:\\Users\\jecs9\\.local\\bin\\claude.exe' \"$@\")\n fi\n}\nRIPGREP_FUNC_END\n \n echo \"fi\" >> \"$SNAPSHOT_FILE\"\n \n\n # Add PATH to the file\n echo \"export PATH=\\$PATH\" >> \"$SNAPSHOT_FILE\"\n \n\n # Exit silently on success, only report errors\n if [ ! -f \"$SNAPSHOT_FILE\" ]; then\n echo \"Error: Snapshot file was not created at $SNAPSHOT_FILE\" >&2\n exit 1\n fi\n \n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:1432:138)\n at exitHandler (node:child_process:109:27)\n at emit (node:events:98:22)\n at #maybeClose (node:child_process:778:16)\n at #handleOnExit (node:child_process:532:72)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-09T03:36:45.110Z"},{"error":"ENOENT: no such file or directory, unlink 'C:\\Users\\jecs9\\AppData\\Local\\Temp\\claude\\C--Users-jecs9-Documents-00-Personal-Work-event-horizon\\tasks\\a5ffa873373eee385.output'","timestamp":"2026-03-09T17:07:09.413Z"},{"error":"Error: 1P event logging: 15 events failed to export (code=ECONNREFUSED, ECONNREFUSED)\n at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:6813:2694)\n at async doExport (B:/~BUN/root/src/entrypoints/cli.js:6813:1563)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-09T20:39:49.420Z"},{"error":"Error: {\"message\":\"Failed to export 15 events (code=ECONNREFUSED, ECONNREFUSED)\",\"originalLine\":\"6813\",\"originalColumn\":\"1715\",\"line\":\"6813\",\"column\":\"1715\",\"sourceURL\":\"B:/~BUN/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 15 events (code=ECONNREFUSED, ECONNREFUSED)\\n at doExport (B:/~BUN/root/src/entrypoints/cli.js:6813:1715)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (B:/~BUN/root/src/entrypoints/cli.js:2626:25030)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:108:79642)\n at lS6 (B:/~BUN/root/src/entrypoints/cli.js:108:80186)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:109:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-09T20:39:49.422Z"},{"error":"ENOENT: no such file or directory, unlink 'C:\\Users\\jecs9\\…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗