# Version pickers plan Status: done in Hub 2.18.0 and 2.19.0 · 2026-11-23 Three forms still ask for a version as free text, though the Hub knows (or could know) every release. This plan turns them into a list to pick from, and gives the Hub the agent's releases so Update agent can do the same. ## Where versions are typed today | Form | Today | What the Hub knows | |---|---|---| | **New install** (`app/(hub)/servers/installs/page.tsx`) | Free text "Release", placeholder "latest" | Every product release; the backend already refuses an unknown version (`releaseFor` in `utils/jobs.js`) | | **Move onto the monorepo** (`components/install/AdoptModal.tsx`) | Free text "Release", placeholder "latest" | The same | | **Update agent** (`app/(hub)/servers/[id]/page.tsx`) | Free text, placeholder "agent@1.0.1" | Nothing: the Hub has no agent releases; the contract only checks the form `agent@x.y.z` | The install's **Update** popup and the **Updates** page already have a list of releases. For the agent, the monorepo has `agent@1.0.0`…`agent@1.5.0` tags and the agent's self-update checks the tag out. Missing: notes (`apps/agent/WHATS-NEW.md`; without it a sync reports "not found"), and a place in the Hub for them. Releases hang off the `Product` enum, which licences, billing, customer products and notices also use, so the agent doesn't become a product. ## Decisions (2026-11-23) - Older versions are offered too (to go back to one): the newest 10, with **Show older versions** to see the rest. Latest stays the default. - Agent releases and their notes show on the Releases page. - The agent's notes are written from its history, for every tag (1.0.0–1.5.0), in crosscode-platform. ## Hub 2.18.0: pickers for products (frontend only) 1. **`components/ReleaseSelect.tsx`**: first "Latest (3.6.1)" (sends no version, as today), then the product's releases newest first, the newest 10 until **Show older versions (n)** is clicked; each marked "(latest)", "running now" and "needs Accounts 1.2.0" where it applies. `UpdateModal` and the Updates page use it too, so all four look the same. 2. **New install**: the popup loads the releases; the list is the chosen product's, and changing the product goes back to Latest. 3. **Move onto the monorepo**: the same list, Cross Events releases from 2.2.0 (the first one in the monorepo; the 2.1.x releases are the old repository's tags, which `adopt` can't check out). No backend changes: the backend already checks the version. ## Hub 2.19.0: agent releases (migration) 0. **crosscode-platform**: `apps/agent/WHATS-NEW.md`, a `## 1.x.y` section per tag (1.0.0–1.5.0; written, not committed yet). Read from the default branch, so no new tag is needed. 1. **`AgentRelease`** (version unique, notes, urgent, releasedAt), its own model and migration, so `Product` and everything on it is untouched. 2. **Sync**: a release source can be for the **Server agent** as well as a product; the default sources gain it (monorepo, `agent@`, `apps/agent/WHATS-NEW.md`). Same rule as products: nothing is removed unless every source was read and tags were found. 3. **API**: `GET /api/admin/agent-releases`; server summaries carry the latest agent version; an update-agent job for a version that isn't a known agent release is refused (like `releaseFor`). 4. **Hub**: Update agent is a `ReleaseSelect` (Latest by default, the running version marked and not pickable, the chosen version's notes under it); the Servers list and a server's page show "agent 1.4.0 · 1.5.0 available"; the Releases page has a **Server agent** filter (from git only, no Add). Later, not in this plan: **Update every agent** on the Servers page (one job per server behind). ## Checks `npx tsc --noEmit`, `npx next build` (and `npx jest` in `backend` for 2.19.0). Each release gets its CHANGELOG entry and a `vX.Y.Z` tag, then the docs commits in crosscode-platform.