Good catch! Let me investigate why the input prompt is getting stuck. Let me look at the spawn-cli logic more carefully and check if there are other tests that work:
[tool: read_file — Tool use: read_file • Read file: /Users/[user]/Projects/superagents/src/tests/e2e/init.e2e.test.ts]
[tool: run_terminal_cmd — Tool use: command • Run command: cd /Users/[user]/Projects/superagents && node -e " const { input } = require('@inquirer/prompts'); console.log('Testing input prompt format...'); setTimeout(() => pro]
Let me check what the actual prompt format looks like and debug the spawn-cli logic:
[tool: read_file — Tool use: read_file • Read file: /Users/[user]/Projects/superagents/src/tests/utils/spawn-cli.ts]
[tool: codebase_search — Tool use: codebase_search • Searched codebase "How does inquirer/prompts format different prompt types like input vs select vs password?" • 9 results]
I see the issue! The problem is in the prompt detection logic in spawn-cli.ts. The input prompt from @inquirer/prompts has a different format and the detection logic isn't catching it properly. Let me fix this by improving the prompt detection:
[tool: search_replace — Tool use: code_edit • Edit file: /Users/[user]/Projects/superagents/src/tests/utils/spawn-cli.ts]
Actually, let me simplify the detection logic - I think I'm overcomplicating it. Let me use a more straightforward approach:
[tool: search_replace — Tool use: code_edit • Edit file: /Users/[user]/Projects/superagents/src/tests/utils/spawn-cli.ts]
Now let me rebuild and test this:
[tool: run_terminal_cmd — Tool use: command • Run command: cd /Users/[user]/Projects/superagents && pnpm build]
Let me create a simple test script to see what the actual prompt output looks like:
[tool: write — Tool use: code_edit • Edit file: /Users/[user]/Projects/superagents/test-prompt-debug.js]
[tool: run_terminal_cmd — Tool use: command • Run command: cd /Users/[user]/Projects/superagents && timeout 12 node test-prompt-debug.js 2>&1 | head -200]
Good! I can see the select prompts are working. Let me run it a bit longer to see what the password and input prompts look like:
[tool: run_terminal_cmd — Tool use: command • Run command: cd /Users/[user]/Projects/superagents && timeout 12 node test-prompt-debug.js 2>&1 | grep -A 5 "SENDING: sk-test123|SENDING: lw-test123|SENDING: Build|hasPassword.]
Let me capture the full output and especially look for the "What do you want to build?" prompt:
[tool: run_terminal_cmd — Tool use: command • Run command: cd /Users/[user]/Projects/superagents && timeout 12 node test-prompt-debug.js 2>&1 > /tmp/debug-output.txt && grep -E "What do you want to build|hasInput.*true" /tmp/]