Skip to content

Conversation

ThomasK33
Copy link
Member

Improve Claude connection reliability and queue processing

This PR enhances the connection handling and queue processing for Claude Code:

  • Increases the connection wait delay from 200ms to 600ms to ensure Claude is fully ready before sending queued mentions
  • Implements a more robust connection check that verifies WebSocket handshake completion
  • Adds progressive polling after connection to ensure handshake is complete
  • Increases the delay between sequential message sends to 25ms (from 10ms) to prevent overwhelming the WebSocket connection
  • Adds more detailed logging for connection and queue processing states
  • Implements a retry mechanism that polls until handshake completes when triggered by a new connection

These changes should significantly improve reliability when sending multiple mentions to Claude, especially immediately after connection.

@ThomasK33 ThomasK33 marked this pull request as ready for review September 15, 2025 17:21
Copy link
Member Author

ThomasK33 commented Sep 15, 2025

@ThomasK33 ThomasK33 changed the base branch from thomask33/feat_improve_visual_selection_handling_in_file_tree_explorers to graphite-base/133 September 15, 2025 17:27
@ThomasK33 ThomasK33 force-pushed the thomask33/fix_improve_connection_reliability_with_better_handshake_detection branch from 0c1d1d7 to ece9975 Compare September 15, 2025 17:28
@graphite-app graphite-app bot changed the base branch from graphite-base/133 to main September 15, 2025 17:28
Change-Id: Idffdf62be7dcfb97b83419f942643b64800d3e09
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33 ThomasK33 force-pushed the thomask33/fix_improve_connection_reliability_with_better_handshake_detection branch from ece9975 to 16e9a40 Compare September 15, 2025 17:28
Copy link
Member Author

ThomasK33 commented Sep 15, 2025

Merge activity

  • Sep 15, 5:33 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Sep 15, 5:34 PM UTC: @ThomasK33 merged this pull request with Graphite.

@ThomasK33 ThomasK33 merged commit 2e6ea6f into main Sep 15, 2025
4 checks passed
@ThomasK33 ThomasK33 deleted the thomask33/fix_improve_connection_reliability_with_better_handshake_detection branch September 16, 2025 12:27
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