fix(startup): set NODE_OPTIONS=--experimental-sqlite for voice-agent#1872
Open
bassilkhilo-ag2 wants to merge 2 commits into
Open
fix(startup): set NODE_OPTIONS=--experimental-sqlite for voice-agent#1872bassilkhilo-ag2 wants to merge 2 commits into
bassilkhilo-ag2 wants to merge 2 commits into
Conversation
node:sqlite (used by conversation-store.ts) requires the --experimental-sqlite flag on Node v22.x. Without it the voice-agent crashes immediately on startup with ERR_UNKNOWN_BUILTIN_MODULE. Surfaced when restarting voice-agent manually after a stale-process health-check warning — the process started on app launch had inherited the flag from the app's launch environment, but a bare npx invocation did not. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HgadGF8wZKK8bKkPt9Mp8S
Contributor
|
@cla-assistant check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Prepend
NODE_OPTIONS="--experimental-sqlite"to thenpx tsxinvocation that starts the voice agent insrc/startup.sh.Why
node:sqlite(used byconversation-store.ts) requires the--experimental-sqliteflag on Node v22.x. Without it the voice-agent crashes immediately on startup withERR_UNKNOWN_BUILTIN_MODULE.This regression is environment-dependent: a process that inherits the flag from Sutando.app's launch environment starts fine, but a bare
npxinvocation (e.g. manual restart from the terminal, or health-check--fixrestart) does not inherit it and fails immediately.Change
One line in
src/startup.sh:Test plan
bash src/startup.shfrom a clean terminal (no existing voice-agent) starts voice-agent and port 9900 responds within ~3slsof -i :9900 | grep LISTEN | awk '{print $2}' | xargs kill) then re-runbash src/startup.sh— restarts cleanly without ERR_UNKNOWN_BUILTIN_MODULEhealth-check.py --fixrestart path (if it kills + restarts voice-agent) starts cleanly🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01KXQJogmVSdYrKtYX1LwzwT