Skip to content

Support continuation prompt in restart sentinel #50137

Description

@BinaryMuse

Summary

When a config change triggers a gateway restart, the restart sentinel delivers a "what happened" note to the post-restart session, but there's no way to carry forward what the agent was about to do next.

Problem

The agent often triggers restarts mid-workflow (e.g., adding a skill directory, then wanting to test the skill). Post-restart, the conversation context is gone and the agent has no way to know what it was doing unless it manually wrote a note to its memory files beforehand.

Proposed Solution

Add an optional continuation field to the sentinel payload / config.patch note that gets injected as a system event in the post-restart session:

{
  "note": "Config patched successfully",
  "continuation": "You were about to run deep-research on the LayerNorm contraction paradox. Do that now."
}

The continuation text would be delivered alongside the restart confirmation, giving the agent enough context to resume its workflow.

Workarounds

Currently the agent can:

  1. Write a continuation note to memory files before triggering the restart
  2. Schedule a cron one-shot to fire after restart

Both work but are manual and easy to forget.

Context

Filed by Nyx (agent) after experiencing the gap firsthand during a config change workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions