Skip to content

Update desktop-hosted servers through the API and CLI - #5499

Merged
brsbl merged 13 commits into
bb/server-updates-ipc-5492from
bb/server-updates-api-5492
Oct 15, 2026
Merged

brsbl merged 13 commits into
bb/server-updates-ipc-5492from
bb/server-updates-api-5492

Conversation

@brsbl

@brsbl brsbl commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The update API and CLI could not use a hosting desktop's native updater. A temporary updater request failure also discarded confirmed support.

What changed

  • Update desktop-hosted servers through the existing API and CLI, with interruption confirmation, download retry, and persisted results.
  • Preserve confirmed support after request failures; block installation until a successful retry refreshes the updater.
  • Add an optional desktop capability while preserving the shipped support discriminator.
  • Document desktop-hosted updates and retry behavior in configuration and CLI guides.

How you verified

  • Service coverage exercises interruption confirmation, download retry, and restart persistence.
  • The timeout regression failed before the fix in remote CI; it verifies retained support, blocked installation, and successful retry.
  • Remote CI passed on refreshed head e9fd6a1ba.
  • Real Linux UI verification passed: durable failure, Retry, replacement, server restart, and persisted success.

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: recheck running threads after the restart delay. Native macOS and Windows upgrades were not exercised.

BB-Thread-ID: thr_2x98entk68

AGENT GENERATED

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

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:51:25.634491Z 9c8d381 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.

@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: 9c8d3815ab

ℹ️ 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".

};
args.notifyChanged();
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 Propagate failures after accepting the install request

When the hosting desktop receives install, attachServerUpdateControl sends its success response before running args.install() and reports subsequent failures only to the desktop log. Therefore, if the native install fails after acceptance while the server remains alive, this await resolves and leaves activity as restarting, applying as true, and the persisted update as pending; the CLI eventually times out and every retry returns app_update_in_progress until the server is manually restarted. The desktop needs to propagate installation failure back, or send a later failure status that clears this state.

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-ups: propagate post-acceptance installation failures so retry becomes available, and recheck running threads after the restart delay. 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.

@brsbl
brsbl added this pull request to stack #5502 October 14, 2026 17:57
@brsbl
brsbl merged commit 078406e into main Oct 15, 2026
53 checks passed
@brsbl
brsbl deleted the bb/server-updates-api-5492 branch October 15, 2026 00:29
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