Skip to content

Feature request: Remove stop hook suppression. #799

Description

@KJ7LNW

Certain cases like rate limiting and five hour or weekly usage limits now suppress stop hook triggers.

They used to work in 2.1.50, and they no longer work in 2.1.101: This means stop hooks are no longer capable of detecting a problem and delaying with reasonably appropriate retry.

In the hourly limit case, it was capable of sleeping until the limit was done. In the rate limit case, it could just back off a few minutes at a time to retry and wait until it's done being rate limited.

eg:

  {                                                           
     "hook_event_name" : "Stop",                                                                                     
     "last_assistant_message" : "You've hit your limit · resets 8pm (America/Los_Angeles)",
     "permission_mode" : "acceptEdits",                                                                            
     "stop_hook_active" : false                                                                                      
  }        

or, eg "API Error: Request rejected (429) · Rate limited"

But now it doesn't trigger the stop hook at all.

I'm guessing there's just an early return gate for certain conditions like this that's probably trivial to clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions