Repository navigation
Backport five upstream bb fixes (#6247, #6255, #6243, #6334, #6358) - #87
Merged
Merged
Conversation
) 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]>
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]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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
~/.claudewhenCLAUDE_CONFIG_DIRis 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 stubsHOMEand asserts the forked transcript is written under$HOME/.claude/projectswith the source content. The upstream test covers the project-levelCLAUDE_CONFIG_DIRcase.Conflicts with the fork
hasClaimedQueuedThreadMessageschecks inside the fork'srunAllOrNoneClaimtransactions (the automatic policy claims nothing while a claimed message exists; the pinned path checks too). Took upstream's competing-claim tests (nextandtargeted).waitingOnis "stopping" when the thread status isstoppingor auto-send is paused, otherwise thread-busy. Review found that my first adaptation read the pause for the requested (retired) thread instead of the successor the message lands on, so a manually stopped successor gave thread-busy and the automatic drain held the message. Upstream has no retired redirect and reads the thread it queues on, so this was introduced by the adaptation, not upstream. Fixed in the last commit (the pause is read for the successor), with a regression test for a manually stopped successor inretired-ingress.test.ts; the test fails without the fix.requireParentWritableInTransaction, retired-ingress handling andQueuedMessageThreadUnavailableError. Added aParentSystemMessageStateChangedErrorretry loop indeliverParentSystemMessageToWritableParent, and exportedParentSystemMessageCompactionActiveError: the manual-compaction check runs in the steer-append transaction, andqueueParentSystemMessageandsendPinnedQueuedMessagequeue the notice instead.public-thread-compaction.test.tskeeps both imports.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.tsand its startup tests, the launcher (packages/bb-applauncher.ts,migration-wait.ts), and the migration marker/lock code (packages/dbmigrate.ts,migration-lock.ts,packages/config) are not changed by this branch. Thepackages/dbfiles 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 inmigration-restore.test.tstimed 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-codeplugin: 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 inchangelog-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/apptypecheck 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/templatesandbb-plugin-side-chatwere 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