Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Local extension host crash prevents reconnection after network interruption #661

Open
@ericpaulsen

Description

@ericpaulsen

Timeline of Events

  1. 07:01:57 - Extension Host Process exited normally (code: 0)
  2. 07:02:27 - ManagementConnection disconnected, 3-hour reconnection timeout starts
  3. 08:57-09:02 - Multiple "CSRF token not found" errors from Coder extension
  4. 09:02:16 - Critical failure sequence:
    • Socket timeout after 20 seconds (unacknowledgedMsgCount: 17)
    • Attempted reconnection
    • resolveAuthority(ssh-remote) returned an error after 1 ms Cannot resolve authority
    • Permanent error - connection given up

Root Cause Analysis:

Primary Issue: Coder Extension Local Host Crash
The local extension host (PID 29360) terminated at 09:01:56, which killed all local extensions including the Coder extension that manages remote authority resolution.When VS Code tried to reconnect at 09:02:16, it called resolveAuthority(ssh-remote) but the extension was already dead, causing instant failure.Secondary Issues:

  1. CSRF token errors - Repeated failures from the Coder extension (lines 64, 72, 236, 482, 483, 1044, 1290, 1291)
  2. Navigator deprecation warnings - PendingMigrationError spam (not critical but noisy)

Why Language Features Break:

From the logs at 09:02:16:

Error: Unable to read file 'vscode-remote://.../.vscode/settings.json' (Canceled: Canceled)Error: Unable to read file 'vscode-remote://.../.vscode/tasks.json' (Canceled: Canceled)Error: Unable to read file 'vscode-remote://.../.vscode/launch.json' (Canceled: Canceled)

Full logs here:https://gist.github.com/ericpaulsen/1cacac3145384f2b1ea1c11be0b08d60

When the connection dies:

  1. All file system operations are canceled
  2. Language servers lose their connection to workspace files
  3. Extensions can't read configuration
  4. IntelliSense, linting, navigation all fail

Recommendations:

Immediate:

  1. File issue for Coder extension stability - The local extension host should not be crashing. The CSRF token errors suggest authentication/session management bugs
  2. Check for Coder extension updates - Logs show v1.11.3 with navigator deprecation warnings

Workarounds for users:

  1. Keep VS Code window focused when possible (reduces suspend/resume issues)
  2. Use "Remote-SSH: Kill VS Code Server on Remote" then reconnect (cleaner than window reload)
  3. Consider web VS Code for critical work

Investigation needed:

  1. Why is the Coder extension repeatedly failing CSRF token validation?
  2. Why did the local extension host terminate at 09:01:56?
  3. Is there a memory leak or resource exhaustion pattern?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp