Skip to content

Sonny triggers: a finished one-shot's sent turn that later fails goes unseen #422

Closed

Description

@lydakis

Found in review on #419.

A one-shot trigger, or a --runs trigger on its last run, that sends its turn successfully is retired with its state row deleted (trigger::settle, kept_row = !sent || reply failed). If that turn later fails, for example because the machine went offline or a login expired before the model answered, no handle is left to ask the daemon about. So neither /background, the red ✗ N failed count, nor the triggers tool can show the failure. Recurring triggers, such as the nightly memory cleanup, are not affected.

Possible fix: keep the sent row (retire with keep = true) and drop it once its turn is known to have completed. The open question is who drops it and when. Otherwise every finished one-shot stays in the agent's triggers list as an ended row. Raising it before building because it changes the trigger lifecycle.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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