Bug: "Process already running" error when reconnecting #41

Closed
opened 2026-01-16 13:41:38 -08:00 by naomi · 0 comments
Owner

Description

When attempting to reconnect after a previous session, the app fails with a "process already running" error, even when the Claude process should have been terminated.

Expected Behavior

  • User should be able to disconnect and reconnect without issues
  • The previous Claude process should be properly cleaned up on disconnect

Current Behavior

  • After connecting once and disconnecting (or if a session ends unexpectedly), attempting to reconnect fails
  • Error message indicates the process is "already running"

Possible Causes

  • The stop_claude command may not be properly terminating the subprocess
  • Process state may not be correctly reset after disconnection
  • Race condition between process termination and state cleanup

Suggested Investigation Areas

  • src-tauri/src/wsl_bridge.rs - stop() method and process cleanup
  • src-tauri/src/commands.rs - stop_claude and start_claude commands
  • Process handle management in the SharedBridge state

This issue was created with help from Hikari~ 🌸

## Description When attempting to reconnect after a previous session, the app fails with a "process already running" error, even when the Claude process should have been terminated. ## Expected Behavior - User should be able to disconnect and reconnect without issues - The previous Claude process should be properly cleaned up on disconnect ## Current Behavior - After connecting once and disconnecting (or if a session ends unexpectedly), attempting to reconnect fails - Error message indicates the process is "already running" ## Possible Causes - The `stop_claude` command may not be properly terminating the subprocess - Process state may not be correctly reset after disconnection - Race condition between process termination and state cleanup ## Suggested Investigation Areas - `src-tauri/src/wsl_bridge.rs` - `stop()` method and process cleanup - `src-tauri/src/commands.rs` - `stop_claude` and `start_claude` commands - Process handle management in the `SharedBridge` state --- ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-01-20 13:57:49 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#41