Skip to content

Backport five upstream bb fixes (#6247, #6255, #6243, #6334, #6358) - #87

Merged
mistakeknot merged 12 commits into
mainfrom
aleph/upstream-fixes-mk-ooomf.8
Oct 27, 2026
Merged

mistakeknot merged 12 commits into
mainfrom
aleph/upstream-fixes-mk-ooomf.8

Conversation

@mistakeknot

@mistakeknot mistakeknot commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Backports five merged get-bb/bb fixes onto Aleph main (701b154, which includes #85), one commit per upstream PR in upstream merge order. Each commit message names the upstream PR and records the upstream commit in a "Cherry-picked from upstream bb PR #N (commit sha)" line. Bead mk-ooomf.8.

Order Upstream PR Upstream commit Change
1 get-bb#6247 367ca93 Automatic queued messages no longer overtake a pending send
2 get-bb#6255 bddf68d Send messages queued after a manual stop
3 get-bb#6243 943fdfa Retry parent notices after dispatch status changes
4 get-bb#6334 bc93950 Queue system notices during manual compaction
5 get-bb#6358 61b2fe7 Fork Claude sessions from the session's config dir; keep fork intent across failed starts

get-bb#6233 (a Claude Code Full Access approvals setting) is deliberately not taken. Full Access keeps pausing on Claude Code's own prompts, as in 0.8.0. The branch first carried it with an Aleph default that kept that behavior; it was then removed with two revert commits (the default flip, then the get-bb#6233 pick), so the history shows both and the final diff against main has no trace of it and no change to approval or permission behavior. FORK.md tells the next upstream merge to keep the fork's behavior.

Further Aleph-only commits: one records the backports in FORK.md and CHANGELOG.md, and one fixes the get-bb#6255 pause check for retired threads (below).

get-bb#6358: the account pool leaves CLAUDE_CONFIG_DIR unset

Applied as upstream. The new fork helper falls back to ~/.claude when CLAUDE_CONFIG_DIR is unset, which is the pool's case. Kept the retry fix (fork intent survives a failed start). Added a bridge test, "forks a Claude session from ~/.claude when CLAUDE_CONFIG_DIR is unset (account pool)", which stubs HOME and asserts the forked transcript is written under $HOME/.claude/projects with the source content. The upstream test covers the project-level CLAUDE_CONFIG_DIR case.

Conflicts with the fork

Overlap with #85 (startup and stop changes)

No file in the five picks is touched by #85, so there are no textual conflicts. Checked against the file lists: install-machine.sh, start-server.ts, startup-stop-guard.ts and its startup tests, the launcher (packages/bb-app launcher.ts, migration-wait.ts), and the migration marker/lock code (packages/db migrate.ts, migration-lock.ts, packages/config) are not changed by this branch. The packages/db files this branch does touch are the queued-message code, not migration. The bb-app suite, which covers the launcher and migration waits, passes on this branch (below). CHANGELOG.md and FORK.md are edited by both: this branch adds a bullet at the top of "Unreleased / Aleph" ahead of #85's bullets, and a FORK.md entry, with no overlap.

Tests

Rerun on the reduced stack (head f622001), one suite at a time, niced, 8 workers or fewer:

  • @bb/server: 401 files passed, 3 skipped; 7095 passed, 1 skipped; typecheck passes.
  • @bb/db: 79 files, 1342 tests. In the full run 4 tests in migration-restore.test.ts timed out at 15 s under load; that file alone passes (59/59). This branch changes no migration code.
  • @bb/client-core: 25 files, 290 tests passed.
  • provider-claude-code plugin: 27 files, 418 tests passed; typecheck and oxlint pass.
  • @bb/app: 672 files passed, 1 failed; 6830 tests passed, 2 failed, 1 skipped. The two failures are in changelog-preview.test.ts ("reads the repo's own changelog", "has presentation metadata for the newest release"). They fail identically on main 701b154 (measured in a separate worktree: 2 failed, 5 passed, same on this branch): the test wants a version heading first and CHANGELOG.md starts with ## Unreleased. Not caused by this PR. @bb/app typecheck passes; lint reports the same 2 errors (SplitThreadArea.test.tsx, thread-detail-prompt-area-harness.tsx, files this branch does not touch) and 249 warnings as main.
  • bb-app, @bb/templates and bb-plugin-side-chat were not rerun after the revert: this branch no longer changes the templates or the Claude Code settings files, and the earlier full run of those suites passed.

No cross-lab review has been run on the final stack.

🤖 Generated with Claude Code

ymichael and others added 12 commits October 27, 2026 12:22
)

Adds the fullAccessApprovalsEnabled provider setting. When it is off, Full
Access approves every request Claude Code sends, including ask rules, hook
"ask" answers and built-in safety checks. Includes the bridge, plugin
settings, docs and tests from upstream.

Cherry-picked from upstream bb PR get-bb#6233 (commit 9eb0c09).
Bead mk-ooomf.8.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…-bb#6247)

An automatic queued-message claim now yields while another claimed queued
message for the thread is still being sent. Adapted to the fork's all-or-none
claim transactions.

Cherry-picked from upstream bb PR get-bb#6247 (commit 367ca93).
Bead mk-ooomf.8.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…-bb#6255)

Messages queued after a manual stop are sent once the thread settles, and
the queue reports it is waiting on the stop rather than a busy thread.

Cherry-picked from upstream bb PR get-bb#6255 (commit bddf68d).
Bead mk-ooomf.8.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Parent system notices are retried when the parent's dispatch status or
environment changes between the check and the write. Adds the dispatch test.
Adapted to the fork's writable-parent and retired-ingress checks.

Cherry-picked from upstream bb PR get-bb#6243 (commit 943fdfa).
Bead mk-ooomf.8.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Parent system notices that arrive while a manual compaction is running are
queued instead of being sent into the compact turn as a steer, which Codex
rejects.

Cherry-picked from upstream bb PR get-bb#6334 (commit bc93950).
Bead mk-ooomf.8.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nt across failed starts (get-bb#6358)

Forking passes the SDK a session store bound to the session's own
CLAUDE_CONFIG_DIR, and the saved fork details survive a failed start so retry
and send still start the fork. Includes the bridge fork test and the server
retry test.

Cherry-picked from upstream bb PR get-bb#6358 (commit 61b2fe7).
Bead mk-ooomf.8.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Upstream get-bb#6233 adds the fullAccessApprovalsEnabled setting and turns it off
by default, so Full Access approves every request Claude Code sends. Aleph
0.8.0 pauses Full Access on Claude Code's own prompts (permissions.ask rules,
PreToolUse hooks that answer ask, built-in safety checks), and this fork keeps
that behavior: the setting ships, but its default is true. Setting it to false
gives the upstream behavior.

Tests that asserted the upstream default now assert the Aleph default, and the
docs and the claude-code-provider skill describe it.

Bead mk-ooomf.8.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ed thread

The pause check added with get-bb#6255 read the requested thread's id.
When a retired thread redirects to its successor, the message lands on the
successor, so the check must read the successor's id; otherwise a message
queued after the successor was manually stopped got thread-busy and the
automatic drain held it. Upstream has no retired redirect, so this
mismatch came from adapting the pick to the fork. Adds a regression test
for a manually stopped successor.

Bead mk-ooomf.8.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…-bb#6233)"

The get-bb#6233 setting is not taken, so its default flip goes with it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…et-bb#6233)"

Full Access keeps pausing on Claude Code's own prompts, as in 0.8.0.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mistakeknot mistakeknot changed the title Backport six upstream bb fixes (#6233, #6247, #6255, #6243, #6334, #6358) Backport five upstream bb fixes (#6247, #6255, #6243, #6334, #6358) Oct 27, 2026
@mistakeknot
mistakeknot merged commit 3992155 into main Oct 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants