Skip to content

bug: gc handoff requests restart but controller doesn't kill/restart the session #70

@alexsiri7

Description

@alexsiri7

Problem

gc handoff sends the handoff mail and prints requesting restart... with exit code 144, but the controller never actually kills and restarts the session. The agent sits idle waiting to be restarted, but nothing happens. The user has to manually re-engage.

Expected behavior

After gc handoff:

  1. Mail is sent (works)
  2. Restart is requested (works — exit code 144)
  3. Controller detects the restart request and kills the session
  4. Controller starts a fresh session
  5. New session picks up the handoff mail and resumes work

Step 3-5 are not happening.

Observed behavior

After gc handoff, the session remains alive. The controller does not act on the restart request. The user must manually continue the conversation.

Context

  • Running as mayor agent in a Gas City workspace
  • gc runtime request-restart may have the same issue (used by witness/deacon patrol formulas for context refresh)
  • If this affects all agents, patrol loops that rely on restart-on-context-full won't work either

Reproduction

  1. Start a mayor session
  2. Run gc handoff "test" "test handoff"
  3. Observe: mail is sent, exit code 144, but session is not killed

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugBroken behaviorpriority/p1High — core workflow broken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions