session.prompt() resolves to void; the reply lives in session.state.messages. The dream route was awaiting its return value, so parsing crashed with "Cannot read properties of undefined (reading 'match')" once the dream completed. Extract the assistant text post-prompt and fail soft on non-string input in extractDreamProcessorResult. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>