Skip to content

Show the hosting server's version in Updates - #5492

Merged
brsbl merged 23 commits into
mainfrom
bb/reproduce-and-fix-bug-thr_ayejxbq8q8
Oct 15, 2026
Merged

brsbl merged 23 commits into
mainfrom
bb/reproduce-and-fix-bug-thr_ayejxbq8q8

Conversation

@brsbl

@brsbl brsbl commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Display the server's reported version in a Server row, including when the viewing machine is unknown.
  • Check the server for updates when the viewing client is a desktop app.
  • Remove generic manual-update instructions.

How you verified

  • Component regressions cover server identity and absent manual guidance. The guidance assertions failed before the fix in remote CI.
  • Chrome for Testing 155.0.8059.39 showed server version 0.43.4 instead of viewer version 0.46.0, without mobile overflow.
  • Remote CI passed on refreshed head 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 head 11ac5f24. Identical fixtures, captured at 2×.

Screen / state Viewport Before After
Updates / available Desktop · 1440×900 Before: viewer version After: server version
Updates / available Mobile · 390×844 Before: generic instruction After: server version

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

AGENT GENERATED

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +209 to +210
await delay(1_500, undefined, { signal: abort.signal });
await args.channel.request("install");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T17:08:45.046898Z 33fe0ca PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@brsbl brsbl changed the title Update desktop-hosted servers from Settings Update desktop-hosted bb servers from Settings Oct 14, 2026
@brsbl brsbl changed the title Update desktop-hosted bb servers from Settings Show the hosting server's version in Updates Oct 14, 2026
@brsbl
brsbl added this pull request to stack #5502 October 14, 2026 17:57
@brsbl
brsbl merged commit 6302d15 into main Oct 15, 2026
48 checks passed
@brsbl
brsbl deleted the bb/reproduce-and-fix-bug-thr_ayejxbq8q8 branch October 15, 2026 00:29
brsbl added a commit that referenced this pull request Oct 15, 2026
…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 |
![Before 700
zoom](https://github.com/user-attachments/assets/1f708c7d-f2aa-42ee-aa2d-c5043d2468ed)
| ![After 700
zoom](https://github.com/user-attachments/assets/793b9443-c4e1-463f-a2e6-31c785b87891)
|
| Thread · sidebar drawer open | macOS desktop · 700×800 | ![Before
700](https://github.com/user-attachments/assets/379ba908-be84-4d51-aa75-654ff175ff77)
| ![After
700](https://github.com/user-attachments/assets/ffa9aebd-8e67-4d79-b9db-c46057e63433)
|
| Thread · framed sidebar (unchanged) | macOS desktop · 1100×800 |
![Before
1100](https://github.com/user-attachments/assets/a77833bb-81f7-4b5f-9546-fd5fb4a0c6b7)
| ![After
1100](https://github.com/user-attachments/assets/1327b504-d9f3-4e91-8706-a83257371042)
|

### 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]>
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.

1 participant