Repository navigation
Show the hosting server's version in Updates - #5492
Conversation
…bug-thr_ayejxbq8q8
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33fe0ca903
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| await delay(1_500, undefined, { signal: abort.signal }); | ||
| await args.channel.request("install"); |
There was a problem hiding this comment.
Recheck active threads after the restart delay
When an update was submitted without confirmInterruptingThreads and no threads were initially running, a thread can start during this deliberate 1.5-second delay, after the only thread-count check has completed. The subsequent install request stops the hosted server and interrupts that new thread without confirmation. Recheck immediately after the delay before requesting installation, or prevent new thread starts once the service enters the restarting phase.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
P2 review follow-up: recheck running threads immediately before native installation. The restart-delay race reported here belongs to the service in #5499. Recorded in the PR description for follow-up under the P0/P1-only review-fix policy. This thread remains open because the behavior has not been changed.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…bug-thr_ayejxbq8q8
…bug-thr_ayejxbq8q8 # Conflicts: # docs/configuration.md
…bug-thr_ayejxbq8q8
…ar drawer (#5495) ## Human comments ## What was wrong In macOS desktop windows narrower than 768px, New thread in the sidebar drawer sits under the traffic lights, and the sidebar toggle draws on top of it (reported on Discord after desktop-v0.46.0). #5229 (`ff9484883`) moved the navigation rail into the compact drawer and dropped the macOS start inset from `SidebarTopReserveRow`. The drawer's header row now starts right after the rail, at x=52. That is under the lights (x=18–78), and the sidebar toggle, fixed at x=84–112, overlaps it. ## What changed - `SidebarTopReserveRow` (`apps/app/src/components/sidebar/SidebarChrome.tsx`) pads the drawer's header row so New thread starts at x=116, just after the sidebar toggle. That is where it sat in 0.45.0. - The padding applies only on macOS desktop, in the compact drawer (not the framed sidebar), and outside full screen, where there are no traffic lights. - Wide framed windows, browsers and other platforms are unchanged. No wire, CLI or contract changes. ## How you verified - New `SidebarChrome.test.tsx`: the compact macOS drawer reserves the space, while the framed window and a compact browser window don't. CI failed with only the test ([run 38601538235](https://github.com/get-bb/bb/actions/runs/38601538235), app-8: "expected false to be true") and passes with the fix. - Real Mac (macOS 26.5.2), using the Electron desktop dev app built from `main` (before) and from this branch (after), with the same seeded thread. The window was resized natively to 700×800 with the sidebar drawer open, and to 1100×800. - **700px:** New thread moves from x=52–287, under the lights and the toggle, to x=116–287. The hit test at its center returns New thread. - **1100px:** the framed layout is identical before and after. - The colored dots are stand-ins drawn at the traffic lights' native position (18, 18). The native buttons can't be captured without Screen Recording permission. - Not covered: a narrow window in native full screen, where the padding is off by design because there are no lights. - Remote CI runs the tests; nothing was run locally. - CI: every job passes except the plugin SDK npm version guard in Checks. Plugin Fork Check was skipped by change-based selection. The guard fails because `@get-bb/[email protected]` was published to npm at 15:11 UTC today, and building the SDK from `main` now produces a different `dist/provider-bridge-testing.js`. This PR doesn't touch the SDK. Every PR based on current `main` without a version bump fails the same way (for example #5490 and #5443), and #5492 passes because it bumps to 0.6.44. It clears once a bump lands on `main` and this PR's CI reruns. | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Thread · sidebar drawer open (zoom) | macOS desktop · 700×800 |  |  | | Thread · sidebar drawer open | macOS desktop · 700×800 |  |  | | Thread · framed sidebar (unchanged) | macOS desktop · 1100×800 |  |  | ### Merge order with "Compact the macOS app frame and move headers into the title bar" (#5529) Resolved: the PRs can merge in either order. #5495 used to pad the narrow-window drawer header with a literal `88px`, which assumed the sidebar toggle sits at the 84px reserve; with #5529's wider reserve New thread would have started under the toggle (measured at an earlier 88px reserve: New thread at x=112 under the toggle at x=88–116). #5495 now includes `5bd8c8b85`, which derives that padding from `--bb-macos-traffic-light-reserve` (falling back to 84px), so New thread starts 4px after the toggle under either geometry. Measured on a real Mac at 700px: | Build | Sidebar toggle | New thread | | --- | --- | --- | | #5495 head `5bd8c8b85` on main | x=84–112 | x=116 | | #5529 head `96084fc15` + #5495 | x=87–115 | x=119 | BB-Thread-ID: thr_eigbyjruhs 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Human comments
What was wrong
When viewing a desktop-hosted server from another machine, Updates could display the viewing desktop's version instead of the hosting server's version.
What changed
How you verified
a45b47907.The main refresh preserves this layer's UI change. Refreshing the baseline screenshots is incomplete because local browser sessions repeatedly timed out. The earlier evidence below retains its original revision labels.
Before: merge base
29930f73. After: PR head11ac5f24. Identical fixtures, captured at 2×.The cumulative Slop Cop review (
f526a8b9..33fe0ca9) found no P0/P1 issues. The targeted review of capability retention and copy removal (7ca47ca1..942f476c) found no P0/P1 issues.P2 follow-up: require positive desktop ownership evidence before assigning the viewing desktop updater to a same-machine Server row.
BB-Thread-ID: thr_2x98entk68