Skip to content

Don't write to stdout from the oxide helper process - #1628

Open
wook10 wants to merge 2 commits into
tailwindlabs:mainfrom
wook10:fix/oxide-helper-stdout
Open

wook10 wants to merge 2 commits into
tailwindlabs:mainfrom
wook10:fix/oxide-helper-stdout

Conversation

@wook10

@wook10 wook10 commented Oct 26, 2026

Copy link
Copy Markdown

Fixes #1607

Summary

The oxide helper is started with proc.fork(helperPath) (oxide-session.ts), which inherits the parent's stdio by default. When the language server runs over stdin/stdout (e.g. Sublime LSP), the helper's console.log('Listening for messages...') is written as raw text into the server's JSON-RPC stream, which breaks clients that parse stdout strictly.

The console.log calls in server.ts mentioned in the issue are not a problem: interceptLogs redirects them to window/logMessage before anything is logged. The helper process runs separately and has no such interception, so this PR removes its two log lines.

VS Code isn't affected because it talks to the server over IPC.

Test plan

  • Ran the built server over stdio against tests/fixtures/v4/basic and checked that everything on stdout is a framed JSON-RPC message:
    • before: "Listening for messages...\n" appears on stdout between frames
    • after: stdout contains only JSON-RPC frames
  • pnpm run build passes
  • vitest run src/project-locator.test.ts passes (27 tests)

The oxide helper is started with `fork()` and inherits the language
server's stdio. When the server runs over stdin/stdout, the helper's
`console.log` calls end up as raw text in the JSON-RPC stream and break
LSP clients that read from stdout.

Fixes tailwindlabs#1607
@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Reviews (1) · Last reviewed commit: "Update changelog" · Reviewed by Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

console.log('Listening for messages…') breaks LSP-clients that read data over stdin

1 participant