orca icon indicating copy to clipboard operation
orca copied to clipboard

[Bug]: False "agent running" notifications persist for all agents after starting Claude Agents (Orca VSSH / WSL)

Open matheuspimentaa opened this issue 5 months ago • 5 comments

Operating system

Windows

Orca version

v1.4.70.0

Details

When I start Claude Agents from the Agents section, Orca behaves as if an agent is continuously running, which triggers repeated notifications. These notifications are false — no agent is actually active.

The issue also persists across restarts: even after fully closing and reopening Orca, starting any agent (not just Claude Agents via Agent View) reproduces the same false-notification behavior.

Steps to reproduce

  1. Connect to a WSL environment using Orca VSSH.
  2. Open the Agents section and start Claude Agents.
  3. Observe Orca treating it as a running agent and emitting notifications.
  4. Fully close and reopen Orca.
  5. Start any agent (including ones not using Claude Agents / Agent View).

Expected behavior Notifications should only fire for agents that are actually running, and stopping/restarting Orca should reset any stale agent state.

Actual behavior Orca reports a phantom running agent and emits false notifications continuously. The state is not cleared by restarting Orca, and it then affects every agent that is started afterward.

Environment

  • Connection: Orca VSSH → WSL
  • (adicione aqui: versão do Orca, distro/versão do WSL, versão do Claude Code se relevante)

Video https://www.loom.com/share/af3734203ffb4769abfeb1b7dd7b96de

matheuspimentaa avatar Jun 15 '26 18:06 matheuspimentaa

@orca-ide @AmethystLiang @Jinwoo-H I needed some feedback on this, because it's really getting in the way of my work—when an agent finishes a job, I'm left wondering why it still shows the agent as "running," with the message Analyze this conversation and determine: Does the assistant have more autonomous work to do RIGHT NOW? Conversation: [ { "parentUuid": "7ebb0c35-cea1-495f-9563-2de3d3869108", "isSidechain": - Claude.

Image

matheuspimentaa avatar Jun 16 '26 16:06 matheuspimentaa

I took a look and created this PR https://github.com/stablyai/orca/pull/5517, which may address this issue

Will land it and make a release soon!

Jinwoo-H avatar Jun 16 '26 19:06 Jinwoo-H

@Jinwoo-H @AmethystLiang It hasn't been resolved yet, and the problem has happened again.

Image

matheuspimentaa avatar Jun 22 '26 16:06 matheuspimentaa

Rechecked the current Windows/WSL status lifecycle against main at 506f6ffbb (Orca 1.4.133). I could not run a valid live Claude-agent reproduction because the Ubuntu WSL Claude CLI on this host is not authenticated.

Deterministic current coverage is healthy: 120/120 relevant stale-row, completion-notification, status-drop/ack cleanup, and WSL relay-manager tests passed (3 platform-specific cases skipped). This includes:

  • stale parent/child row suppression from #5517;
  • dropping completion snapshots after a newer turn starts;
  • clearing finished/reused-pane status and acknowledgement state;
  • WSL relay Stop → done event handling and bounded relay recovery.

The June 22 report is important evidence that #5517 alone did not fix the real setup. Since then, #7903 (merged July 10) replaced the WSL/VSSH hook transport with a guest-resident per-distro relay and guest-side hook installers. That is the material current change to validate.

Could you retest on Orca 1.4.133+ and report this exact sequence?

  1. Start one Claude agent through the same VSSH → WSL project.
  2. Let it finish without opening a second agent.
  3. Note whether the row changes from working to done and whether notifications stop.
  4. Fully close/reopen Orca, start one different agent, and note whether the old prompt/agent identity reappears.

Please include only:

  • WSL distro/version and Claude Code version;
  • whether the project runtime says WSL or a Remote Orca Server;
  • the stale row's displayed agent type/state (no conversation content needed);
  • any Orca log lines containing [agent-hooks] WSL hook relay around start/finish/restart, with tokens/paths redacted.

If it still reproduces on the new relay, those timestamps will tell us whether the guest never emitted Stop, the relay dropped it, or the renderer retained a correctly delivered done event—the three fixes are in different layers.

OrcaWin avatar Jul 10 '26 21:07 OrcaWin

Closing as likely fixed by the current WSL hook relay and lifecycle teardown path. The related current-main suites pass 120 tests (3 platform skips), and the older VSSH hook path from this report has since been replaced by the newer WSL relay.

If authenticated Claude on Orca 1.4.133 or newer still leaves phantom running-agent notifications after the agent exits, please open a new issue referencing #5404 with the distro, Claude version, launch path, and whether the stale state survives a full app restart.

OrcaWin avatar Jul 10 '26 23:07 OrcaWin