You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] CLI crashes at load: await in non-async SIGINT handler (src/cli/index.js:1646) #35
The enclosing .action(async (target, options) => {...}) is async, but the SIGINT arrow function is not. await in a non-async function is a parse-time error, and because ESM parses the whole module before executing, it takes down the entire CLI binary rather than just the monitor command.
Fix
Make the handler async (process.on('SIGINT', async () => {), or hoist the import above the handler. The MCP server entry (src/mcp/server.js) is unaffected and still starts.
Thanks for the exact parse-time diagnosis. Current main has an async SIGINT callback at this location, node --check passes, and the CLI loads successfully. Closing as resolved; credit to @SarthakB11 for identifying the fault clearly.
Activity
nirholas commentedon Sep 12, 2026
looking into this
nirholas commentedon Sep 14, 2026
Thanks for the exact parse-time diagnosis. Current main has an async SIGINT callback at this location, node --check passes, and the CLI loads successfully. Closing as resolved; credit to @SarthakB11 for identifying the fault clearly.
docs(credits): name the people behind XActions in CONTRIBUTORS.md, an…