Skip to content

[Bug]: Hermes Agent (ACP Registry): reply after a background process finishes never reaches the thread (post-settle continuation off) #38599

Closed

Description

@hzwnhriz-star

Before submitting

Area

packages/provider-acp-registry (flavor options) / packages/provider-acp (AcpAdapterV2)

Environment

  • T3 Code (Beta) 0.1.10, Windows 10 desktop
  • Hermes Agent v0.23.1 (stable, commit 3b42157), added as an ACP Registry provider, several profiles behind one Hermes gateway

Steps to reproduce

  1. Start a thread with Hermes Agent.
  2. Ask it to run a command in the background with completion notification (e.g. sleep 60 && echo DONE, Hermes terminal with background=true, notify_on_complete=true) and end its turn.
  3. The run finishes; session/prompt returns and the thread shows as completed.
  4. When the process exits, Hermes starts a completion turn on its own and streams the reply as root-session session/update notifications, with no session/prompt in flight.

Expected

The completion reply appears in the thread (as it does for Copilot CLI and Grok).

Actual

Nothing appears. In our case a long job went silent for about 30 minutes; the result only became visible after we changed Hermes settings so the agent waits inside the turn.

Cause (from reading current main, not run)

enablePostSettleContinuation: true is set only in the Copilot branch of packages/provider-acp-registry/src/server/adapter.ts and in packages/provider-grok. For any other registry agent, root-session updates that arrive while no turn is active go to the session-load history buffer and never reach the live thread. A Hermes maintainer reproduced the Hermes side with a bare ACP client and confirmed the completion reply is sent with the ACP session's own id: NousResearch/hermes-agent#157364 (comment) (comment by teknium1, 2026-11-18).

Suggested fix

Enable post-settle continuation for the Hermes Agent registry entry, or make it a generic opt-in for registry agents (which would also cover #33186).

Workaround

In each Hermes profile config, terminal.process_wait_auto_notify: false, and ask the agent to wait for the result inside the turn instead of using completion notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions