# fix\(providers\): settle command-only Pi prompts without an agent run · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/f30d33e771b5e67973d96aa8e80382921dc0de44)

Repository: [stienswout/t3code](https://git.cafe/stienswout/t3code)

Visibility: public

Requested revision: f30d33e771b5e67973d96aa8e80382921dc0de44

Requested commit: f30d33e771b5e67973d96aa8e80382921dc0de44

Commit: f30d33e771b5e67973d96aa8e80382921dc0de44

Tree: e9cb876d366e89a2fbe7ec70ff82bf2b4c21e298

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(providers): settle command-only Pi prompts without an agent run

A prompt that only runs an extension slash command never starts an agent
run, so pi emits no agent_settled and the turn spun forever. The deferred
id-less prompt ack is the completion signal for that shape: on ack with no
agent activity observed, probe get_state and settle the turn when Pi
reports idle. The probe result re-enters the event queue so the check
stays ordered behind any agent activity Pi emitted first.

Also carries concurrent review-fix work from the shared worktree:
additional PiRpc request-lifecycle hardening beyond the settle probe.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [baeee705bfc6e50e329987cb09448aeb3ba96d8e](https://git.cafe/stienswout/t3code/commit/baeee705bfc6e50e329987cb09448aeb3ba96d8e?format=markdown)

[Source at this commit](https://git.cafe/stienswout/t3code/tree/f30d33e771b5e67973d96aa8e80382921dc0de44?format=markdown)
