Skip to content

feat(acpbridge): update status reporting from "paused" to "finished" … - #709

Merged
pikann merged 3 commits into
masterfrom
feature/enhance-acp-agent
Nov 6, 2026
Merged

pikann merged 3 commits into
masterfrom
feature/enhance-acp-agent

Conversation

@pikann

@pikann pikann commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Only agents running in a temporary (ephemeral) environment keep a conversation alive between turns, so only they have a "Waiting for reply" (paused) status. ACP agents had no such state to wait in, yet stopping one with the composer's stop button left it at "Waiting for reply".

Now, when the user stops an ACP agent's turn, the bridge reports finished instead of paused.

Changes

  • apps/acp-bridge/internal/runner/runner.go: the three paused turn-status reports (interrupt during session setup, forced kill after the grace period, cooperative session/cancel) now report finished. reportPausedIfRequested is renamed reportFinishedIfRequested, and comments are updated.
  • apps/acp-bridge/internal/bridge/bridge.go: Interrupt doc comment updated.
  • Tests updated to expect finished: runner_test.go, services/agent-runner/test/e2e/acp_pause_turn_test.go, and apps/e2e/tests/projects/acp-agent-conversations.spec.ts (badge now reads "Finished").

Behavior notes

  • A full Stop (stop_turn) is unchanged: the API still writes stopped and the bridge reports nothing.
  • finished is terminal, so it also triggers queue advancement and the realtime event. Replying to a finished ACP conversation still resumes it.
  • CLI provider agents and agents in static environments already skip paused in agent-runner (the EnvironmentID == nil guard), so they needed no change. Temporary-environment agents keep "Waiting for reply".
  • A running bridge daemon must be rebuilt and restarted to pick this up.

Testing

  • go build ./... and go test ./internal/runner/ ./internal/bridge/ in apps/acp-bridge pass.
  • go vet on services/agent-runner/test/e2e is clean.
  • The Go e2e test and the Playwright spec were not run.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Reporting finished for a user-initiated pause also publishes a terminal status to StreamAgentConversationStatus, which the automation engine and git router treat as success. A user pressing stop on an automation-triggered or git-run ACP conversation will now advance the automation graph walk / mark the run succeeded as if the agent completed its work.

Reviewed changes

  • ACP pause now reports finished — the three paused turn-status reports in apps/acp-bridge/internal/runner/runner.go (interrupt during session setup, force-kill after the grace period, cooperative session/cancel) now report finished; reportPausedIfRequested is renamed reportFinishedIfRequested.
  • Docs and tests updated — bridge.go's Interrupt doc comment, runner_test.go, services/agent-runner/test/e2e/acp_pause_turn_test.go, and the Playwright ACP spec now expect finished / "Finished".

ℹ️ ACP pause spec still describes the old paused behavior

apps/e2e/features/projects/acp-agent-conversations.feature is the source spec for acp-agent-conversations.spec.ts, but it still says the bridge reports "paused" and the badge reads "Waiting for reply" (lines 8-12, 33-34, and the closing comment at 44-46). The spec file was updated; the feature file was not.

Technical details
# Stale ACP pause spec

## Affected sites
- `apps/e2e/features/projects/acp-agent-conversations.feature:8-12` — background says the conversation leaves "Running" once the bridge reports "paused".
- `apps/e2e/features/projects/acp-agent-conversations.feature:33-34` — scenario says the bridge reports "paused" and the badge reads "Waiting for reply".
- `apps/e2e/features/projects/acp-agent-conversations.feature:44-46` — closing comment says the bridge reports "paused" after a pause.

## Required outcome
- The feature file should describe the new `finished` / "Finished" behavior, matching `apps/e2e/tests/projects/acp-agent-conversations.spec.ts`.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit e2c8662 into master Nov 6, 2026
9 checks passed
@pikann
pikann deleted the feature/enhance-acp-agent branch November 6, 2026 04:57
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