Skip to content

fix(vpn): remove unused success field from WakeResponse - #27202

Merged
EhabY merged 1 commit into
mainfrom
fix/vpn-wake-response-unused-success
Jul 14, 2026
Merged

EhabY merged 1 commit into
mainfrom
fix/vpn-wake-response-unused-success

Conversation

@EhabY

@EhabY EhabY commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #26739, addressing the last unresolved review comment: #26739 (comment)

WakeResponse.success was always set to true in tunnel.go, regardless of whether a rebind actually happened (e.g. when debounced or the tunnel isn't running yet), so it carried no useful information to the manager. This mirrors the earlier removal of the unused error_message field from the same message earlier in #26739.

  • Removed success from the WakeResponse proto message and regenerated vpn/vpn.pb.go.
  • Updated tunnel.go to send an empty WakeResponse{}.
  • Updated vpn/tunnel_internal_test.go to assert the response is present instead of checking GetSuccess().

Generated by Coder Agents on behalf of @EhabY.

WakeResponse.success was always set to true regardless of whether a
rebind actually happened (e.g. when debounced or the tunnel isn't
running yet), so it carried no useful information. Remove it,
mirroring the earlier removal of the unused error_message field from
the same message.
@EhabY
EhabY merged commit 2261f26 into main Jul 14, 2026
50 of 51 checks passed
@EhabY
EhabY deleted the fix/vpn-wake-response-unused-success branch July 14, 2026 08:26
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants