Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0d7d667
Publish the API versions and oldest apps a server serves, and name th…
davidmckayv Nov 18, 2026
707b6c7
Say the version refusal applies to /api/v2 operations only
davidmckayv Nov 18, 2026
3179768
Name the phone app and the Recorder on every request, and say Update …
davidmckayv Nov 18, 2026
d27a193
Name the web app on every request, and show what to update when it an…
davidmckayv Nov 18, 2026
0921225
Merge branch 'feat/version-check-web' into feat/version-check
davidmckayv Nov 18, 2026
b68f733
Merge branch 'feat/version-check-clients' into feat/version-check
davidmckayv Nov 18, 2026
a04650c
Keep the fixture's admin raise within what a server can serve its own…
davidmckayv Nov 18, 2026
00c38b2
Desktop names itself to every OpenBot and says when it or the OpenBot…
davidmckayv Nov 18, 2026
3e214f1
Merge branch 'feat/version-check' into feat/version-check-desktop
davidmckayv Nov 18, 2026
db0eb6a
Serve every app from the last 12 months, and add nothing for an OpenB…
davidmckayv Nov 18, 2026
dad1f4f
Say when an app must update because of a security problem
davidmckayv Nov 18, 2026
cfbe407
Desktop reads launcherApi before it lays out or starts a release
davidmckayv Nov 18, 2026
6a5d630
Merge branch 'feat/version-check' into feat/launcher-api-skew
davidmckayv Nov 18, 2026
07f439a
Merge remote-tracking branch 'origin/main' into feat/version-check
davidmckayv Nov 18, 2026
6f40c3b
Read the OpenBot-Client header one way for the version check and the …
davidmckayv Nov 18, 2026
c8ae8ea
Merge branch 'feat/version-check' into feat/launcher-api-skew
davidmckayv Nov 18, 2026
39ed4dd
Name the first release of each app that calls /api/v2
davidmckayv Nov 18, 2026
ea18620
Merge remote-tracking branch 'origin/main' into feat/version-check
davidmckayv Nov 18, 2026
ac0b4fd
Merge branch 'feat/version-check' into feat/launcher-api-skew
davidmckayv Nov 18, 2026
6997a0f
Merge remote-tracking branch 'origin/main' into feat/version-check
davidmckayv Nov 18, 2026
764e5ac
Merge branch 'feat/version-check' into feat/launcher-api-skew
davidmckayv Nov 18, 2026
6f5b23e
Merge remote-tracking branch 'origin/main' into feat/version-check
davidmckayv Nov 18, 2026
424c301
Merge branch 'feat/version-check' into feat/launcher-api-skew
davidmckayv Nov 18, 2026
86d4497
Merge remote-tracking branch 'origin/main' into feat/version-check
davidmckayv Nov 18, 2026
97d1e36
Merge branch 'feat/version-check' into feat/launcher-api-skew
davidmckayv Nov 18, 2026
0fe5a14
Desktop: Update OpenBot, running, when a launch finds it needs a newe…
davidmckayv Nov 18, 2026
6209b9a
Merge branch 'feat/version-check' into feat/launcher-api-skew
davidmckayv Nov 18, 2026
fb449ab
Merge remote-tracking branch 'origin/main' into feat/launcher-api-skew
davidmckayv Nov 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions desktop/src-tauri/src/client_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,15 @@ pub fn why(deployment: &Deployment, fit: &Fit) -> String {
pub const LOCAL_APP_TOO_OLD: &str =
"The OpenBot on this computer needs a newer version of this app. Update OpenBot to keep going.";

/// The OpenBot on this computer needs a newer version of this app, for `why` in the log: whether its
/// `deployment` said so, or its release needs a launcher contract this app does not speak
/// (`deployment_release::start_problem`). The window says "Update OpenBot" with this app's update.
pub fn local_app_too_old(why: String) -> Problem {
let mut problem = Problem::with(LOCAL_APP_TOO_OLD, why);
problem.kind = Some(APP_TOO_OLD);
problem
}

/**
Whether the OpenBot on this computer, at `base` (`http://127.0.0.1:<port>` of its server), needs a
newer version of this app: its `deployment` read the way every app reads it, with the install's
Expand Down Expand Up @@ -319,13 +328,12 @@ pub fn local_problem(base: &str, install_token: Option<&str>) -> Option<Problem>
let Fit::App { security, .. } = decided else {
return None;
};
let (said, kind) = if security {
(SECURITY_UPDATE, APP_TOO_OLD_SECURITY)
} else {
(LOCAL_APP_TOO_OLD, APP_TOO_OLD)
};
let mut problem = Problem::with(said, why(&deployment, &decided));
problem.kind = Some(kind);
let why = why(&deployment, &decided);
if !security {
return Some(local_app_too_old(why));
}
let mut problem = Problem::with(SECURITY_UPDATE, why);
problem.kind = Some(APP_TOO_OLD_SECURITY);
Some(problem)
}

Expand Down
433 changes: 400 additions & 33 deletions desktop/src-tauri/src/deployment_release.rs

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4845,6 +4845,22 @@ async fn start_stack_inner<R: tauri::Runtime>(
remember_selected_root(&shell, &root);
*shell.leftover_database.lock().unwrap() = None;
}
/*
* A release that needs a newer app than this one is not started, and nothing is woken or
* written for it: the window says "Update OpenBot" with this app's update, and the release stays
* as it was laid out (`deployment_release::start_problem`). Off the async thread, because it can
* ask the release's manifest over blocking HTTP.
*/
let laid_out = root.clone();
if let Some(problem) =
tauri::async_runtime::spawn_blocking(move || deployment_release::start_problem(&laid_out))
.await
.ok()
.flatten()
{
log::warn!("[start] {}", logging::Failure::described(&problem));
return Err(problem);
}
/*
* Resolved from the catalogue rather than taken from the window.
*
Expand Down
117 changes: 117 additions & 0 deletions desktop/src-tauri/test-fixtures/release-manifest-v1.1.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"schemaVersion": 1,
"distribution": {
"id": "CopilotKit/OpenBot",
"repository": "CopilotKit/OpenBot",
"channel": "stable"
},
"version": "v1.1.0",
"source": {
"commit": "e373655cc7d506d11bc99e4165935bf6f8f98fd7",
"upstreamRepository": "CopilotKit/openbot",
"upstreamCommit": "e373655cc7d506d11bc99e4165935bf6f8f98fd7",
"modified": false
},
"artifacts": {
"source": {
"url": "https://github.com/CopilotKit/OpenBot/releases/download/v1.1.0/openbot-source.tar.gz",
"sha256": "918b0b474247927d6bcc223f723cedb249e087ecb89d57e7a576b0a404e7876b"
},
"images": {
"agent-adk": {
"reference": "ghcr.io/copilotkit/openbot-agent-adk@sha256:5f50c88244b5589ae1706fc13548d927fc38bb751bb980819479dbc98a0e12e3"
},
"agent-ag2": {
"reference": "ghcr.io/copilotkit/openbot-agent-ag2@sha256:5099b4b775217429e47b76c7d4b4d2422bc8c36c74ef5b0b7b668081c2b70966"
},
"agent-agno": {
"reference": "ghcr.io/copilotkit/openbot-agent-agno@sha256:3d3ea615ebe955a5b27d4d252386a99c51d3eeb6a821ebfa454477152ac8de46"
},
"agent-antigravity": {
"reference": "ghcr.io/copilotkit/openbot-agent-antigravity@sha256:ca2d525a733b51d93b02de5acdbaf662be8a2a0ff1811e6d1c20a532bce79407"
},
"agent-claude-sdk": {
"reference": "ghcr.io/copilotkit/openbot-agent-claude-sdk@sha256:0db7da223b3eba7ab8afd3dc3d3ebc2ef96ae9441ce90ae406c76a53465cd9c2"
},
"agent-crewai": {
"reference": "ghcr.io/copilotkit/openbot-agent-crewai@sha256:bfbb629a1e0a4d1959f75c9df7eaac5a67d74024ec8a443417d3a8f9f69fe999"
},
"agent-langgraph-agui": {
"reference": "ghcr.io/copilotkit/openbot-agent-langgraph-agui@sha256:3e9557439f204c131c5c0d52b7b8076e7c46686bbd2ebf2b40f75f3adba5fa7e"
},
"agent-langroid": {
"reference": "ghcr.io/copilotkit/openbot-agent-langroid@sha256:215aa800336d4cf0348823ff703c2a29dbca064819ee2925878180be42f4291e"
},
"agent-llamaindex": {
"reference": "ghcr.io/copilotkit/openbot-agent-llamaindex@sha256:35722d8666b953946ca7adb643791f522c000491b9e979a850c2dd218b18fa04"
},
"agent-mastra": {
"reference": "ghcr.io/copilotkit/openbot-agent-mastra@sha256:fcf42c7ad901f7f06381ecac8c4a76e1a21e3ade388e6bb7a4a9a64fe58f3344"
},
"agent-microsoft": {
"reference": "ghcr.io/copilotkit/openbot-agent-microsoft@sha256:248a0440f5f7cbc2331b1e9040aadf38eeb136a8fb1b2d680559dab45e22d623"
},
"agent-pydantic-ai": {
"reference": "ghcr.io/copilotkit/openbot-agent-pydantic-ai@sha256:e13d1bb218879031f3ac70fd06c31885f6c00ff81a81b26127634e615e0fea93"
},
"agent-strands": {
"reference": "ghcr.io/copilotkit/openbot-agent-strands@sha256:11053b61e961edb2877f0b42912f6c9ed56acca9cd5c48bf166f8ec8703643a8"
},
"openbot": {
"reference": "ghcr.io/copilotkit/openbot@sha256:479cccd42fc8942c98c7f326b065ca53cfd58f91d78fd1d5a2680b684e1a5f70"
},
"supervisor": {
"reference": "ghcr.io/copilotkit/openbot-supervisor@sha256:ef25e8829606478a412345f3f63e041f827359c1f9759008e32341ce4f81e0e0"
},
"server": {
"reference": "ghcr.io/copilotkit/openbot@sha256:479cccd42fc8942c98c7f326b065ca53cfd58f91d78fd1d5a2680b684e1a5f70"
},
"agent-computer": {
"reference": "ghcr.io/copilotkit/openbot@sha256:479cccd42fc8942c98c7f326b065ca53cfd58f91d78fd1d5a2680b684e1a5f70"
},
"agent-bot": {
"reference": "ghcr.io/copilotkit/openbot@sha256:479cccd42fc8942c98c7f326b065ca53cfd58f91d78fd1d5a2680b684e1a5f70"
},
"agent-langgraph": {
"reference": "ghcr.io/copilotkit/openbot@sha256:479cccd42fc8942c98c7f326b065ca53cfd58f91d78fd1d5a2680b684e1a5f70"
}
},
"chart": {
"version": "0.3.0",
"url": "https://github.com/CopilotKit/OpenBot/releases/download/v1.1.0/openbot-0.3.0.tgz",
"sha256": "267fa687d676b8feb191ad1c5ceea229a4872a2dfc2148d2dadee295a8fcda8a"
}
},
"compatibility": {
"launcherApi": 1,
"configSchema": 1,
"extensionApi": 1,
"database": {
"from": [
"0088_approval_reviewer_guidance",
"0085_approval_rule_account",
"0083_learning_skill_approvals",
"0082_routine_goal",
"0077_channel_opening"
],
"to": "0132_bot_task_runs",
"rollbackCompatible": false
},
"intelligenceCapabilities": []
},
"upgrade": {
"fromVersions": [
"v1.0.3",
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v0.3.4",
"v0.3.3",
"v0.3.2",
"v0.3.1",
"v0.3.0"
],
"requiresDowntime": true,
"recovery": "restore-backup"
}
}
60 changes: 60 additions & 0 deletions desktop/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4052,6 +4052,66 @@ test("an OpenBot on this computer that raised this app's minimum for a security
expect(view.getByRole("button", { name: "Stop OpenBot" })).toBeTruthy();
});

/*
* The release laid out on this computer needs a launcher contract newer than this app speaks (a
* newer app laid it out, and this one is older): Start does not start it
* (`deployment_release::start_problem`). The window says "Update OpenBot" with the same sentence and
* Update and restart, not that OpenBot stopped or that setup failed, and Update and restart installs
* this app's update.
*/
test("a release that needs a newer app is not started, and the window says Update OpenBot with its update", async () => {
setupConnectedLocalStack(
"/tmp/local-eval-launcher-ahead",
localStatus("ready", "valid"),
);
const said =
"The OpenBot on this computer needs a newer version of this app. Update OpenBot to keep going.";
const previous = invokeHandler;
invokeHandler = async (command, args) => {
if (command === "start_stack")
throw {
said,
detail:
"OpenBot v1.3.0 needs launcherApi 2; this app is v1.1.1 and speaks launcherApi 1",
kind: "app-too-old",
};
if (command === "app_update_offer")
return {
version: null,
current: "1.1.1",
installing: null,
updatesItself: true,
};
if (command === "check_app_update")
return { found: "available", version: "1.3.0", current: "1.1.1" };
if (command === "install_app_update") return new Promise(() => {});
return previous(command, args);
};
const view = await renderApp();
await waitFor(() => expect(localSequence()).toContain("start_stack"));
const heading = await view.findByRole("heading", {
level: 1,
name: "Update OpenBot",
});
expect(view.queryByRole("heading", { name: "OpenBot stopped" })).toBeNull();
expect(view.queryByText("That didn’t finish")).toBeNull();
expect(view.queryByRole("list", { name: "Setup progress" })).toBeNull();
const card = view.getByRole("alert");
expect(card.textContent).toContain(said);
expect(within(card).queryByRole("heading")).toBeNull();
expect(heading.closest(".sheet")?.contains(card)).toBe(true);
// Nothing was shown: the release that needs a newer app is not opened.
expect(localSequence()).not.toContain("show_openbot");
const update = view.getByRole("button", { name: "Update and restart" });
await waitFor(() => expect(update).toHaveProperty("disabled", false));
await userEvent.click(update);
await waitFor(() =>
expect(invokeCalls.map((call) => call.command)).toContain(
"install_app_update",
),
);
});

/*
* The same OpenBot, found already running by a launch that did not start it: the app was quit or
* killed and opened again while OpenBot kept running. Seen on a Mac and on Windows: the window said
Expand Down
57 changes: 38 additions & 19 deletions desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,14 @@ function LocalSetup({ address, choose }: { address: string; choose: boolean }) {
displayedFailure?.shortfall,
local.stopped ? local.blocked?.shortfall : undefined,
);
/*
* The release on this computer needs a newer version of this app, so Start did not start it
* (`deployment_release::start_problem`). Nothing failed and nothing is stopped for good: the
* heading says what to do, and the card under it says why and offers this app's update. No
* failed row, Retry, logs or Repair, which would each say something broke.
*/
const appBehind =
!localStarting && !installingAfresh && appTooOld(displayedFailure);
return (
<main>
<div className="sheet connection-sheet">
Expand All @@ -1591,28 +1599,34 @@ function LocalSetup({ address, choose }: { address: string; choose: boolean }) {
? UPDATING_SELF_CONTAINED
: localStarting || installingAfresh
? "Starting OpenBot"
: roomShort
? ROOM_HEADING
: "OpenBot is stopped"}
: appBehind
? forSecurity(displayedFailure) && displayedFailure
? displayedFailure.said
: "Update OpenBot"
: roomShort
? ROOM_HEADING
: "OpenBot is stopped"}
</h1>
<p className="lede">
{localStarting || installingAfresh
? // No time of its own: the card under it says how long is left, from how long each
// part takes. "This usually takes a minute or two" sat over "About 3 minutes left"
// on Windows G, and the start took four.
"OpenBot is getting ready and opens by itself."
: roomShort
? resourcesShortSaid(roomShort)
: "Your installation and saved connections are ready to reopen."}
</p>
{!appBehind && (
<p className="lede">
{localStarting || installingAfresh
? // No time of its own: the card under it says how long is left, from how long each
// part takes. "This usually takes a minute or two" sat over "About 3 minutes left"
// on Windows G, and the start took four.
"OpenBot is getting ready and opens by itself."
: roomShort
? resourcesShortSaid(roomShort)
: "Your installation and saved connections are ready to reopen."}
</p>
)}
{roomShort && (
<div className="row room-retry">
<button type="button" disabled={busy} onClick={local.retry}>
Retry
</button>
</div>
)}
{freshInstall || (
{freshInstall || appBehind || (
<LocalIntelligence
sequence={local}
offerStart
Expand All @@ -1634,9 +1648,13 @@ function LocalSetup({ address, choose }: { address: string; choose: boolean }) {
{goAhead && <PodmanGoAhead asking={goAhead} />}
{pauseCard}
{updatingLine}
{displayedFailure && !roomShort && (
<Failure problem={displayedFailure} />
)}
{displayedFailure &&
!roomShort &&
(appBehind ? (
<AppTooOld problem={displayedFailure} headed={false} />
) : (
<Failure problem={displayedFailure} />
))}
{updatingSelf && <SelfContainedNote />}
{/* While a local step runs, its Cancel is the only control. */}
{!localStarting && !installingAfresh && (
Expand All @@ -1650,8 +1668,9 @@ function LocalSetup({ address, choose }: { address: string; choose: boolean }) {
>
Change AI connection
</button>
{/* Room is what is short: a repair installs again, and needs room too. */}
{displayedFailure && !roomShort && (
{/* Room is what is short: a repair installs again, and needs room too. And a
release that needs a newer app is not broken: a repair lays the same one out. */}
{displayedFailure && !roomShort && !appBehind && (
<button
type="button"
className="quiet"
Expand Down
Loading
Loading