Skip to content

fix: honor hook stop decisions during prompt admission #559

Description

@LeXwDeX

Why

UserPromptSubmit continue:false is aggregated but ignored by SessionPrompt; the real prompt flow still contacts the model.

Scope

Apply continuation/stop precedence at prompt admission and related stop hooks, with visible reasons and no accidental re-entry.

Approach

Turn the audit reproduction into a repository regression, fix the runtime boundary, and verify callers and adjacent hooks tests using Bun 1.3.14. Keep the user's existing working-tree edits outside this delivery.

Acceptance

A real SessionPrompt request with continue:false makes zero model calls; normal prompts and blocked prompt controls retain their intended behavior.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions