Skip to content

fix(connect): drop dead wake_console call (404 + 2s sleep every connect)#69

Merged
DRHATL95 merged 1 commit into
devfrom
fix/drop-dead-wake-call
Jul 8, 2026
Merged

fix(connect): drop dead wake_console call (404 + 2s sleep every connect)#69
DRHATL95 merged 1 commit into
devfrom
fix/drop-dead-wake-call

Conversation

@DRHATL95

@DRHATL95 DRHATL95 commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Problem

create_session invoked wake_console on every connect. That method POSTed /v6/servers/home/{id}/wake — a guaranteed 404 (cloud wake is dead; even Greenlight can't remote-wake a standby console) — then unconditionally slept 2 seconds "to let the console wake". Net effect on every stream start, including to an already-on console: a wasted failed round-trip plus a hard 2-second delay for zero benefit.

Fix

Remove wake_console and its single call site. create_session now proceeds straight from its log line to session creation.

Why not fix the wake instead?

A feasibility spike against a real Series X confirmed the raw SmartGlass local power-on packet is ignored by modern console firmware (remote wake requires an authenticated CDP path), and the cloud /wake endpoint is dead. Real wake-on is shelved; this PR just removes the dead code that slowed every connect.

Verification

  • cargo clippy --all-targets -- -D warnings — clean
  • cargo test — 134 passed, 0 failed
  • 1 file changed, 52 deletions(-)

🤖 Generated with Claude Code

…onnect

create_session invoked wake_console on every connect. That method POSTed
/v6/servers/home/{id}/wake — a guaranteed 404 (cloud wake is dead; even
Greenlight can't remote-wake a standby console) — then unconditionally
slept 2s "to let the console wake". Net effect on every stream start,
including to an already-on console: a wasted failed round-trip plus a
hard 2-second delay for zero benefit. Remove the method and its call.

Verified: cargo clippy --all-targets -D warnings clean; cargo test 134 passed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@DRHATL95 DRHATL95 merged commit 910f04c into dev Jul 8, 2026
2 checks passed
@DRHATL95 DRHATL95 deleted the fix/drop-dead-wake-call branch July 8, 2026 01:09
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.

1 participant