Skip to content

At-wake session recycle: cold, large sessions start fresh (TASK-440) #2575

Closed

Description

@lilyshen0722

Cofounder ruling from the Raft study (item 4). A seat resumes its CLI session on every wake, so a long-lived seat carries a large cold context into each turn.

Ruling: at wake, if the seat has been idle 60 min or more and its last session context is 128k tokens or more, start a fresh session seeded with a short restart note. Otherwise resume as today. Thresholds are per-install (COMMONLY_SESSION_RECYCLE_IDLE_MINUTES, COMMONLY_SESSION_RECYCLE_CONTEXT_TOKENS).

Board row: TASK-440. Gates: sable and otto.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions