feat(provider-acp-registry): allow custom local ACP agents to opt into post-settle continuation
Problem
In packages/provider-acp-registry/src/server/adapter.ts, enablePostSettleContinuation and deferFinalizeForBackgroundWork are currently gated behind a hardcoded agent check:
enablePostSettleContinuation: (initializeResult) =>
isAntigravityCli || isHermes(initializeResult),
deferFinalizeForBackgroundWork: (initializeResult) =>
isAntigravityCli || isHermes(initializeResult),
Any other custom local ACP agent configured via acpRegistry that runs background work (background shell jobs, subagents, or forked runs) and later emits unsolicited session/update chunks on the root session after the originating session/prompt has settled has those follow-up updates dropped by T3 Code.
Expected behavior
Custom local ACP agents should be able to opt into post-settle continuation without needing a hardcoded agentInfo.name match in T3 Code.
Suggested approaches
Either (or both):
- Capability negotiation on
initialize: Recognize a documented boolean flag ininitializeResult.agentCapabilities._meta(for example"t3.codes/postSettleContinuation": trueor a standard ACP extension key) to enableenablePostSettleContinuationanddeferFinalizeForBackgroundWork. - Local provider config option: Expose an opt-in setting on local
acpRegistryprovider entries so users running custom ACP agents that emit post-settle updates can enable continuation directly.
Context
We observed this with a custom local ACP v1 agent (alori acp): after a background child run finishes, the agent runs an internal wake turn and emits agent_message_chunk updates on the root session. Those updates work in CLI and HTTP/SSE surfaces, but are discarded in T3 Code because postSettleContinuationEnabled stays false for non-allowlisted acpRegistry agents.
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.