Skip to content

Support automatic successor threads for long-running tasks #4547

Description

@Techno911

Scenario: a long-running agent thread reaches a context-cost threshold. A plugin can warn the agent, but the next user turn still lands in the same large thread. The warning alone does not transfer work to a fresh context. Expected: BB provides a first-class handoff operation that creates a child successor in the same project and environment, attaches a task summary, links the old and new threads, and routes continuation without losing an in-flight turn. Workaround in a local fork: commit 611d7be47 on feature/thread-project-dnd-and-panes makes the soft warning truthful and creates a successor after a hard stop. The workaround cannot safely reroute a new user message at the soft threshold.

Activity

  1. added
    threads
    on Sep 30, 2026
  2. oskarrough commented on Sep 30, 2026

    @oskarrough

    Hey, just a few thoughts to consider :)

    • Several harnesses auto-compact by themselves (configurable)
    • Why not use /compact?

    Maybe you could solve it with a bb plugin that injets a prompt? I don't think this should be a bb feature.

    1. Context limit reached in a thread
    2. Plugin asks thread to Create a new thread and open it with a handover prompt from this thread
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

    threads

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions