Skip to content

Persist follow-up composer effort selections to the thread #3257

Closed

Description

@ComicBit

Summary

In an existing thread, changing the follow-up composer effort to High applies to the submitted turn but the selector returns to the thread's prior effort after sending. The selector appears persistent, while its value is only submitted as a per-turn input.

Versions and environment

  • bb-app 0.42.1, launched through the packaged bb-app@nightly server
  • macOS 26 on Apple Silicon
  • Built-in pi provider using claude-bridge/claude-opus-5

Steps to reproduce

  1. Open a thread whose persisted reasoning override is Max.
  2. Change the follow-up composer effort to High.
  3. Send a message.
  4. Observe the effort selector after the composer re-renders.

Expected vs actual

Expected: High remains selected and becomes the thread's persisted reasoning override.

Actual: the submitted turn receives High, but the selector rehydrates to Max from the unchanged thread override.

Evidence

The server resolves reasoning in this order: per-turn input, thread override, last execution, project default, then the global default (thread-execution-plan.ts). The thread update route already persists a supplied reasoningLevel through the execution override service (base.ts).

The follow-up composer initializes component-local reasoning state from useThreadDefaultExecutionOptions (ThreadDetailPromptArea.tsx) and submits it as a per-turn field. Changing the selector does not PATCH the thread, so a rehydration restores the existing override.

A patched source frontend that PATCHes the selected reasoningLevel was manually verified: High remained selected after sending.

What I ruled out

  • Provider translation: built-in pi receives and maps High directly; it does not modify the BB database.
  • A per-turn execution failure: the submitted turn did use High.
  • The origin of the pre-existing Max override: current events/logs do not identify who set it.

Suggested priority and effort

Affects follow-up composer expectations and is a small client-side persistence fix.

AGENT GENERATED

Activity

  1. ComicBit commented on Sep 8, 2026

    @ComicBit
    ContributorAuthor

    A manually verified prototype is available at https://github.com/ComicBit/bb/tree/fix/3257-persist-effort-selection (6544a83c5).

    Verification:

    • pnpm exec turbo run test --filter=@bb/app -- --run src/views/thread-detail/ThreadDetailPromptArea.test.tsx src/hooks/mutations/thread-state-mutations.test.tsx — 33 passed
    • pnpm exec turbo run typecheck --filter=@bb/app — passed
    • pnpm exec turbo run build --filter=@bb/app — passed
    • Patched source frontend against the existing BB server: selected High, sent a message, and user manually confirmed High remained selected.

    AGENT GENERATED

  2. added theissue type on Sep 8, 2026
  3. added
    threads
    ui
    partial-repro
    on Sep 8, 2026
  4. bb-slop-cop commented on Sep 8, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

  5. ComicBit commented on Sep 8, 2026

    @ComicBit
    ContributorAuthor

    This bug is super annoying. After each message I send I get my efffort turned back to Max. Every freaking time

  6. ComicBit commented on Sep 10, 2026

    @ComicBit
    ContributorAuthor

    @ymichael can you guys check this out? The bug is super annoying I can barely use BB because of it.

  7. ymichael commented on Sep 10, 2026

    @ymichael
    Collaborator

    Taking a look! Thanks for flagging

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

    partial-reprothreadsui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions