Repository navigation
feat(acpbridge): update status reporting from "paused" to "finished" … - #709
Conversation
…for turn interruptions
There was a problem hiding this comment.
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 threepausedturn-status reports inapps/acp-bridge/internal/runner/runner.go(interrupt during session setup, force-kill after the grace period, cooperativesession/cancel) now reportfinished;reportPausedIfRequestedis renamedreportFinishedIfRequested. - Docs and tests updated —
bridge.go'sInterruptdoc comment,runner_test.go,services/agent-runner/test/e2e/acp_pause_turn_test.go, and the Playwright ACP spec now expectfinished/ "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`.deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
…hed" in conversation feature
… in turn state management

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
finishedinstead ofpaused.Changes
apps/acp-bridge/internal/runner/runner.go: the threepausedturn-status reports (interrupt during session setup, forced kill after the grace period, cooperativesession/cancel) now reportfinished.reportPausedIfRequestedis renamedreportFinishedIfRequested, and comments are updated.apps/acp-bridge/internal/bridge/bridge.go:Interruptdoc comment updated.finished:runner_test.go,services/agent-runner/test/e2e/acp_pause_turn_test.go, andapps/e2e/tests/projects/acp-agent-conversations.spec.ts(badge now reads "Finished").Behavior notes
stop_turn) is unchanged: the API still writesstoppedand the bridge reports nothing.finishedis terminal, so it also triggers queue advancement and the realtime event. Replying to a finished ACP conversation still resumes it.pausedin agent-runner (theEnvironmentID == nilguard), so they needed no change. Temporary-environment agents keep "Waiting for reply".Testing
go build ./...andgo test ./internal/runner/ ./internal/bridge/inapps/acp-bridgepass.go vetonservices/agent-runner/test/e2eis clean.