Skip to content

Cross-project child thread creation rejects a valid parent thread #1711

Closed

Description

@SawyerHood

Source

Discord report by Mockafjongen: https://discord.com/channels/1522478522332090528/1535636404497809459/1537860221139951699

Problem

An agent tried to start a child thread in another project with --parent-self. The request failed with 400 Parent thread is invalid. The child could not report completion to its parent.

This blocks agent work that spans multiple repositories.

Expected result

A child thread can use a parent from another project. The child remains under its parent in the thread view, with a clear indicator for the different project.

AGENT GENERATED: by GPT-5

Activity

  1. added
    bug
    on Aug 17, 2026
  2. added theissue type on Aug 17, 2026
  3. added
    threads
    and removed
    bug
    on Aug 18, 2026
  4. SawyerHood commented on Aug 18, 2026

    @SawyerHood
    CollaboratorAuthor

    Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1711.html

    • Verdict: REPRODUCED · root-cause confidence: high
    • Root cause (short): assertValidParentThread (apps/server/src/services/threads/thread-parent.ts:161-163) deliberately rejects any parent whose projectId differs from the new thread's with 400 parent_thread_invalid reason=wrong_project; the CLI hides the reason, and isLiveParentThread duplicates the same-project assumption for the parent permission ceiling and env inheritance.
    • Proposed fix: If cross-project parents are wanted: drop the wrong_project branch in assertValidParentThread; split isLiveParentThread so the project comparison remains only where the parent's environment is reused (personal-project branch of resolveCreateThreadEnvironment) while the permission ceiling (Child threads can run with more permissions than their parent #1593), visibility inheritance and managed-child semantics apply regardless of project (add a test that an auto parent's cross-project child requesting full is clamped); remove "wrong_project" from ParentThreadInvalidReason in server-contract + app lifecycle-errors mapping (as PR Allow cross-project sender attribution for thread messages #235 did for the sender varia…
    • Caveats: Worktree HEAD was a108fa7 (origin/main, 5 commits past base 16ceb3a); the relevant server/CLI/contract files are byte-identical at the base commit (verified via git diff), and origin/main does not fix the issue. The rejection is a deliberate design choice (kept explicitly in PR Allow cross-project sender attribution for thread messages #235), so the issue is effectively a feature request; screenshots show behaviour with the guard experimentally remove…

    The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at 16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).

    AGENT GENERATED: by Claude Opus 5

  5. added
    confirmed-repro
    on Aug 18, 2026
  6. added a commit that references this issue on Aug 18, 2026
    664482f
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

    confirmed-reprothreads

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions