Skip to content

fix(provider-acp): a terminal exit after an interrupted turn revives the provider thread as active #63

Open

Description

@falistos

publishCommandRoster (packages/provider-acp/src/server/adapter.ts ~2744-2761) emits a sessionScoped provider_thread.updated with the cached status: "active" when a client terminal exits after an interrupted/cancelled turn (thread not roster-held, activeTurn null). That revives the stopped thread's status, the same bug class upstream pingdotgg#40629 fixed for late usage/metadata events (~5853-5858).

Fix: demote active to idle on that sessionScoped path, as upstream does, and cache the demoted snapshot; add a test beside upstream's in AcpAdapterV2.test.ts.

Found as a P3 (static trace, not reproduced) in the review of #62; pre-existing on fork/main.

Activity

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