Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
c08227c
feat: sample effective worker capacity
andrebrait Nov 10, 2026
afc07e8
PR #432: fix(chat): mark the streaming reply as streaming
andrebrait Nov 10, 2026
67e9601
PR #438: feat(files): highlight .diff files and pick the highlighting…
andrebrait Nov 10, 2026
3d4cbbc
test: cover sampler acquisition and baseline recovery
andrebrait Nov 10, 2026
2bc625c
feat: report worker capacity and retain creation identities
andrebrait Nov 10, 2026
32cab71
feat: prepare isolated repository worktrees on workers
andrebrait Nov 10, 2026
2ff8f15
fix: preserve clone reservations and isolate Git fetches
andrebrait Nov 10, 2026
011404f
fix: reserve clone preparation across processes
andrebrait Nov 10, 2026
6ea8858
feat: retain fresh host capacity and stable creation channels
andrebrait Nov 10, 2026
d4d5c07
feat: rank explicit host pools by effective capacity
andrebrait Nov 10, 2026
1b59e24
fix: retain creation proxies reused during refusal cleanup
andrebrait Nov 10, 2026
c8cbae7
feat: administer explicit host pools through hosts API
andrebrait Nov 10, 2026
a31a938
feat: prepare pooled projects through guarded host operations
andrebrait Nov 10, 2026
4cf1238
feat: expose pooled repositories as logical projects
andrebrait Nov 10, 2026
693e7f6
fix: allow bounded long-running worker preparation
andrebrait Nov 10, 2026
4af6d7f
fix: reject mixed logical targets in standalone project batches
andrebrait Nov 10, 2026
be491d1
feat: admit durable pooled sessions without duplicate starts
andrebrait Nov 10, 2026
f027101
fix: finish retained adoption and bound pooled initialization
andrebrait Nov 10, 2026
7500612
feat: place independent agent sessions through host pools
andrebrait Nov 10, 2026
0aa83ce
feat: make pooled placement transparent in the UI
andrebrait Nov 10, 2026
f8103f6
feat: add atomic local worker maintenance controls
andrebrait Nov 10, 2026
efbff33
fix: retain pooled agent recovery identity in native errors
andrebrait Nov 10, 2026
6c8d01e
PR #432: fix(chat): mark the streaming reply as streaming
andrebrait Nov 10, 2026
3b59842
PR #439: fix(markdown): keep dollar amounts out of inline math
andrebrait Nov 10, 2026
f13571b
fix: retain pooled composer and owner-bound file surfaces
andrebrait Nov 10, 2026
8f0f424
feat: route workspace filesystem operations through their session owner
andrebrait Nov 10, 2026
bfedd55
fix: enforce source ownership across pooled workspace controls
andrebrait Nov 10, 2026
c536c2c
fix: patch reachable DOCX XML parser vulnerabilities
andrebrait Nov 10, 2026
218532d
Merge deployed production 67e96015 into transparent host pool
andrebrait Nov 10, 2026
cea58a1
Merge remote-tracking branch 'origin/deploy/integration' into feat/tr…
andrebrait Nov 10, 2026
d6f2e17
feat: gate pool capacity, creation identity and preparation on link p…
andrebrait Nov 10, 2026
f335ed2
chore: refresh knowledge graph after production merge
andrebrait Nov 10, 2026
79e19d7
docs(hosts): design shared provider credentials for linked hosts
andrebrait Nov 10, 2026
6d3e969
docs(hosts): pin the minimum OMP version for shared credentials
andrebrait Nov 10, 2026
6a2040f
docs(hosts): plan shared credentials and record the broker probe
andrebrait Nov 10, 2026
04b7650
docs(hosts): clarify the credentials environment check in the plan
andrebrait Nov 10, 2026
38f9b20
feat(hosts): add a per-host credential sharing setting
andrebrait Nov 11, 2026
850b12f
feat(auth): run omp's auth broker as an idle-stopped child
andrebrait Nov 11, 2026
0425e39
Merge the transparent host pool into shared credentials
andrebrait Nov 11, 2026
b256562
docs(hosts): shared credentials use link protocol 9 on top of the hos…
andrebrait Nov 11, 2026
be90fcc
feat(hosts): forward allow-listed auth-broker requests for sharing hosts
andrebrait Nov 11, 2026
4e8fbae
fix(hosts): re-check a sharing host after its request body is read
andrebrait Nov 11, 2026
a963a41
docs(hosts): design cluster membership and moving a host's projects i…
andrebrait Nov 11, 2026
b6e9c22
docs(hosts): one cluster, with this machine as its master
andrebrait Nov 11, 2026
9ac05b6
docs(hosts): plan cluster membership
andrebrait Nov 11, 2026
b19c4dc
feat(hosts): link protocol v9 carries the credential sharing flag
andrebrait Nov 11, 2026
6bd4aba
fix(hosts): refuse to start a sharing host's session when sharing can…
andrebrait Nov 11, 2026
ee38c7a
feat(hosts): forward auth-broker requests from omp through the host d…
andrebrait Nov 11, 2026
99b35ab
fix(hosts): accept omp's version text, refuse redirects and survive l…
andrebrait Nov 11, 2026
661c521
feat(hosts): match pool checkouts by repository, not by URL text
andrebrait Nov 11, 2026
2f418da
feat(hosts): start omp with shared credentials on sharing hosts
andrebrait Nov 11, 2026
b49af44
fix(hosts): parse repository URLs with a strict allow-list
andrebrait Nov 11, 2026
4176e5b
feat(hosts): report the Git origin of a host's projects
andrebrait Nov 11, 2026
68acb26
feat(hosts): credential sharing toggle in Settings
andrebrait Nov 11, 2026
8b9e5e9
docs(hosts): document shared credentials
andrebrait Nov 11, 2026
68e6ca5
fix(hosts): bound gitOrigins input, origins and run time
andrebrait Nov 11, 2026
624b607
feat(hosts): compute cluster joins and leaves
andrebrait Nov 11, 2026
7b94481
Merge upstream/main into feat/transparent-host-pool
andrebrait Nov 11, 2026
af6b133
fix(hosts): validate pool worker paths with the worker's path rules
andrebrait Nov 11, 2026
5cc5c1e
fix(hosts): pin projects that cannot become valid cluster projects
andrebrait Nov 11, 2026
df41125
feat(hosts): join and leave the cluster from the API
andrebrait Nov 11, 2026
e536a9a
fix(hosts): decide credentials at every process start, log broker ref…
andrebrait Nov 11, 2026
f12ff27
docs(hosts): say when a login reaches a sharing host and what a host …
andrebrait Nov 11, 2026
eff1902
fix(hosts): join the cluster from a fresh read and skip checkouts ano…
andrebrait Nov 11, 2026
34ebaec
Merge shared credentials into cluster membership
andrebrait Nov 11, 2026
d4d41ce
Merge the host pool's current head into shared credentials
andrebrait Nov 11, 2026
5e78619
chore: refresh knowledge graph after shared credentials
andrebrait Nov 11, 2026
ffb34fb
feat(hosts): cluster members use the master's provider logins
andrebrait Nov 11, 2026
117bca7
fix(hosts): cut a host's credential requests when a pool save ends it…
andrebrait Nov 11, 2026
2f694fe
feat(sidebar): list a cluster member's own projects under the cluster
andrebrait Nov 11, 2026
4b80da5
feat(hosts): cluster switch in Settings
andrebrait Nov 11, 2026
c958e93
docs(hosts): document cluster membership
andrebrait Nov 11, 2026
b12b692
fix(sidebar): list cluster projects first and show when a project's n…
andrebrait Nov 11, 2026
ef16e81
fix(hosts): share cluster readiness checks and recover membership state
andrebrait Nov 11, 2026
dff75a9
docs(hosts): clarify cluster upgrade and project exclusions
andrebrait Nov 11, 2026
0d59f0f
Merge completed shared credentials and host pool into cluster membership
andrebrait Nov 11, 2026
58a8142
fix(hosts): keep joined projects visible and named, and place cluster…
andrebrait Nov 11, 2026
e38aaac
docs(hosts): describe what joining changes for this machine and what …
andrebrait Nov 11, 2026
ca1fa70
fix(hosts): support Windows pool journals and OMP export launchers
andrebrait Nov 11, 2026
c1dcb65
test: make pool Git and upload fixtures portable to Windows
andrebrait Nov 11, 2026
3cca0f7
Merge the host pool's Windows fixes into shared credentials
andrebrait Nov 11, 2026
c9a0034
Merge the host pool's Windows fixes into cluster membership
andrebrait Nov 11, 2026
2962b06
chore: refresh knowledge graph after cluster membership
andrebrait Nov 11, 2026
1b93ffd
Merge upstream main (squashed host pools, #443) into shared credentials
andrebrait Nov 11, 2026
d201930
chore: refresh knowledge graph after shared credentials
andrebrait Nov 11, 2026
e097361
Merge shared credentials (on upstream main) into cluster membership
andrebrait Nov 11, 2026
69ae950
chore: refresh knowledge graph after cluster membership
andrebrait Nov 11, 2026
e969044
Merge upstream main (Windows Git fixes) into shared credentials
andrebrait Nov 11, 2026
65538d3
chore: refresh knowledge graph after shared credentials
andrebrait Nov 11, 2026
6e9f4c2
fix(hosts): stop the auth broker's whole process tree on Windows and …
andrebrait Nov 11, 2026
7c96515
fix(hosts): forward omp's single-block clear and refuse starts on hos…
andrebrait Nov 11, 2026
b81249c
Merge upstream main (#452, #453) into shared credentials
andrebrait Nov 12, 2026
fc64871
Merge shared credentials (as merged in #449) into cluster membership
andrebrait Nov 12, 2026
dfade85
Merge upstream main through #449 (15e14bf5; its tree equals the share…
andrebrait Nov 12, 2026
40c81d3
Merge upstream main (zh-TW, chat fixes) into cluster membership
andrebrait Nov 12, 2026
e9579f2
chore: refresh knowledge graph after cluster membership
andrebrait Nov 12, 2026
104f890
fix(hosts): ask Git whether a project is its repository's main checko…
andrebrait Nov 12, 2026
62afaac
fix(hosts): address review: revoke leaves the cluster, joins need omp…
andrebrait Nov 12, 2026
5f0869d
fix(hosts): revoke reads the registry first, sessions follow membersh…
andrebrait Nov 12, 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
35 changes: 34 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ app/api/
transport-metrics/route.ts GET { now } (the SSE clock probe) | POST { samples } → <agent dir>/omp-web/transport-metrics.jsonl
hosts/route.ts GET hosts (this machine first) | POST { label } → token once + login command | PATCH { id, label?, allowAgentStart?, shareCredentials? } (`local`: label only, empty resets to "This machine"; `shareCredentials` on `local` is 400) | DELETE ?id= revoke (registry first, then close the link); 503 if hosts.json is unreadable
hosts/link/route.ts GET WebSocket upgrade (the `ompweb host` daemon; bearer checked before the upgrade, skipped by the `proxy.ts` gate) | POST 426 for pre-WebSocket daemons
hosts/broker/[...path]/route.ts allow-listed forwarding of an omp auth broker's endpoints for a host with `shareCredentials`; authenticated by the host token, outside the password gate (`proxy.ts` `UNGATED`); see "Remote hosts → Shared credentials"
hosts/broker/[...path]/route.ts allow-listed forwarding of an omp auth broker's endpoints for a host that shares credentials (`sharesCredentials`: its `shareCredentials` flag or cluster membership); authenticated by the host token, outside the password gate (`proxy.ts` `UNGATED`); see "Remote hosts → Shared credentials"
hosts/[id]/cluster/route.ts PUT { projectsRoot } join the cluster (the host's Git projects bind to cluster projects by repository, `gitOrigins`; this machine is added too by any join while it is not a member) | DELETE leave; 409 `{ error, code }` for offline/old daemon/`cluster_changed`, 503 if `pools.json` is unreadable
notifications/devices/route.ts GET VAPID key + subscribed | PUT { deviceId, prefs, subscription? }
notifications/presence/route.ts POST { clientId, deviceId, visible, sessionId, seq }
notifications/test/route.ts POST { deviceId } send a test push (502 on push-service refusal)
Expand Down Expand Up @@ -155,6 +156,7 @@ lib/
daemon-broker.ts daemon side: the loopback forwarder that gives a sharing host's omp processes `OMP_AUTH_BROKER_URL`/`OMP_AUTH_BROKER_TOKEN` (`credentialsEnv`); forwards to the link's server with the link's host token
registry.ts `<agent dir>/omp-web/hosts.json`: create/update/revoke, token hashing and lookup; the `local` record (`rotateLocalHostToken`, `customLocalLabel`)
session-index.ts sessions and projects across hosts, cached per host; `hostForSessionId`, `sessionSpawnTarget`, `invalidateLocalSessionLists`
cluster.ts pure cluster rules: `clusterOf` (= `pools[0]`), `isClusterMember`, `sharesCredentials`, `joinCluster`/`leaveCluster`, `clusterJoinBlock`, `ompSharesCredentials` (also the daemon's spawn check); browser-importable (Settings uses it)
update-types.ts shared per-host software status and operation contract
updates.ts daemon-side version checks, compatibility gate and durable update state
update-worker.ts host-only install/restart helper; never starts or stops the web-server service
Expand Down Expand Up @@ -569,6 +571,37 @@ The table is static imports, not a runtime glob, so `bun build --compile` (`scri
- **Scope.** The host can read current access tokens and stored API keys;
refresh tokens stay on the server. Not shared: `models.yml` custom providers,
environment-variable API keys, omp settings.
- **Cluster** (`docs/specs/2026-11-11-cluster-membership-design.md`). The
cluster is `pools[0]`; `local` is its master, added on creation or on the next
join if an existing first pool lacks it. The rest of `pools.json` is ignored
by the interface.
- **Membership computes credential sharing; it is never stored.** A member
other than `local` shares regardless of its `shareCredentials` flag
(`sharesCredentials(record, pools)`), so leaving restores the host's own
setting. An unreadable `pools.json` refuses a start (503
`pool_storage_unavailable`) rather than starting with other logins.
- **Every writer of `pools.json` that can end a host's sharing aborts that
host's broker requests** (`abortBrokerRequests`): `PUT /api/hosts` and the
cluster `DELETE`. A flag change or revoke writes `hosts.json` and likewise
aborts requests when sharing ends.
- **Membership, not the confirmation or `enabled`, grants sharing.** A host
added to `pools[0]` through `PUT /api/hosts` (or a `pools.json` edit) shares
without the join dialog, and so do members of a disabled first pool.
- **Placement skips members that cannot share.** `startPooledSession` leaves
out a member that `sharesCredentials` forces to share unless its link is
shared (`hostOwnsLifecycle`) at `SHARED_CREDENTIALS_SINCE_VERSION`, before
preparation; `spawnRpc`'s 426 stays the last guard. Other pools' members
keep their own eligibility.
- **Join keeps what the host showed.** A created cluster project takes the
host project's name, else its folder name (split on `/` and `\`), and its
alias; binding a visible checkout un-hides a hidden cluster project.
`POST /api/projects` pool registration matches by `repositoryKey` (or the
identical text) and keeps the stored origin.
- **Not mirrored to members:** `models.yml` custom providers,
environment-variable API keys and omp settings; a cluster session's models
depend on the member chosen.
- **Only grouping passes `pools` to `projectTargetId`.** Selection, expand
keys, reorder, pin and drag use the project's own target.
- **Remote paths never reach `allowFileRoot`** or any other main-side
filesystem check: they mean nothing on main. `startNewRpcSession` calls
`allowFileRoot` and the local session-list invalidation only for the local
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to **omp-web** (`@kahme247/ompweb`) are documented in this f

### Added

- **Cluster membership in Settings.** There is one cluster, the first pool in `pools.json`, and this machine is its master. Each linked host has an **In the cluster** switch in **Settings → Hosts**; turning it on asks for the folder on that host where the cluster keeps the checkouts it creates and says what changes, turning it off asks for confirmation. A host can join while it is online, on link protocol 9, answering `gitOrigins` and running omp 15.13.1 or newer (a member always uses this machine's provider logins); otherwise the switch is disabled and says why. While this machine is not a member yet, any join adds it too: the switch then also needs this machine's daemon ready, and the dialog says that this machine's Git projects become cluster projects whose new sessions start on any member with capacity (currently Linux hosts only, so a macOS or Windows master runs none itself). Joining matches the host's Git projects to cluster projects by repository, so the same repository on several members is one project and its sessions are listed together (`git@github.com:a/b.git` and `https://github.com/a/b` match); adding a cluster project by another URL form of a repository it already has returns that project. A created cluster project keeps the name and alias the host showed (its folder name when it had none), and a visible checkout makes a matching hidden cluster project visible again. Projects without a single Git `origin`, subfolders and linked worktrees stay on their node. A host too slow to report its Git remotes within the time limit keeps the remaining projects on its node; leaving and joining again retries them. Leaving unbinds the matched projects, so they are listed under the host again, and keeps the checkouts the cluster created and the projects it gained from the host; hide any you do not want. Revoking a member removes it from the cluster the same way; while `pools.json` cannot be read, the revoke is refused. A pool disabled through the API takes no new sessions, so this machine's Git projects moved into it cannot start any. Custom providers in `models.yml`, environment-variable API keys and omp settings are not mirrored to members yet. New: `PUT`/`DELETE /api/hosts/[id]/cluster`, and the host operation `gitOrigins`.
- **The sidebar groups the cluster.** The cluster is one group: its projects first, then the projects of its members that could not join, each marked with its node's name; a new session there starts on that node. Members no longer have a group of their own, and standalone hosts keep theirs.
- **Cluster members use this machine's provider logins.** A member always runs its sessions with this machine's provider logins, whatever its own **Use this server's provider logins** setting says; Settings shows that toggle on and disabled. It is computed from membership, so leaving brings the host's own setting back. If `pools.json` cannot be read, session starts on a host are refused rather than started with other logins. Cluster placement skips a member whose daemon cannot take these logins (below link protocol 9, or a link that does not share) before preparing a checkout there.
**Before upgrading:** after this update, every linked host already in the first pool uses this machine's provider logins (it can read their access tokens and stored API keys) without a confirmation having been shown. This includes a first pool disabled through the API, and a host added to the first pool later through `PUT /api/hosts` or by editing `pools.json`. Each linked member needs an updated ompweb host daemon (link protocol 9) and omp 15.13.1 or newer; until its daemon is updated, cluster placement skips that member, and a start fails when no other member is eligible. Before updating, remove a host that should not receive the logins from the first pool using `PUT /api/hosts` or editing `~/.omp/agent/omp-web/pools.json`; the old version has no membership switch.
- **Hosts can use the server's provider logins.** **Settings → Hosts** has a per-host toggle, **Use this server's provider logins**, off by default; turning it on asks for confirmation. Sessions started on that host then use the logins stored on the ompweb server instead of the host's own, through `omp auth-broker serve` on the server and a loopback forwarder in the host daemon. The host token never enters an omp process's environment, and OAuth refresh tokens never leave the server machine; the host can read current access tokens and stored API keys. Starting a session on a sharing host needs a daemon on link protocol v9 and omp 15.13.1 or newer, and is refused otherwise rather than falling back to the host's own logins. Custom providers in `models.yml`, environment-variable API keys and omp settings are not shared. A reverse proxy must let `/api/hosts/broker/` through without its own authentication, response buffering or redirects.
- **Windows hosts can be pool workers and accept local maintenance controls.** `ompweb host status`, `drain` and `resume` now work on Windows through a named pipe with a random name and a per-start token, kept in `<agent dir>/omp-web/host-control.json`; requests without the current token are refused. Windows hosts also report CPU busy time and available memory, so pools can place sessions on them. Windows reports no load average, so CPU pressure there comes from busy time alone.
- **Archive and restore sessions on linked hosts.** Archiving now works for sessions on any linked machine, not only this one. The Archived Sessions browser lists every host's archive, shows which host each session is on, and restores it on that host. A host that is offline or runs an older ompweb host is named in the browser instead of hiding its archive silently. Restore rejects a session ID already active on any registered host, so every registered host must be online to restore, even an archive on this machine; the browser names the offline host that blocks it. A per-session claim stops web-server processes that share one agent directory from restoring the same session together; it does not coordinate separate web servers that share a daemon. A restore on another host keeps running when the web server stops waiting for it (after 30 s, or when the link drops), so the session stays claimed until that host's daemon process confirms it stopped: restoring the same ID again, on any host, is refused until then instead of creating a second active copy. Only the daemon process that took the restore can confirm that, so if the daemon was replaced, restarted or shut down meanwhile, or its host was unregistered, the session stays blocked: there is no timeout and no automatic clearing, and recovery is manual (see AGENTS.md). A restored session's attachments and other files are put back before the session becomes visible, so a file attached from another tab at that moment can no longer fail the restore or block retrying it. Restore streams archives with fixed 256 MiB compressed and expanded limits and rejects unsupported session IDs before consuming the archive.
Expand Down
84 changes: 73 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,79 @@ the daemon's link when it starts, so start the web server first.

### Transparent host pools

A configured host pool appears as one target with one entry per registered repository.
Choose the pool rather than a worker; new independent sessions are placed on an eligible
worker and receive an isolated local worktree. Adding a pool project registers its Git
origin, not a central clone. The selected worker prepares its checkout when the session
starts and reports authentication, preparation, or repository conflicts explicitly.
Standalone hosts, including the Mac, retain typed paths and local clone progress/cancellation.
Existing non-pooled workspaces on member hosts remain accessible in the sidebar; those
hosts are not offered as ordinary pool-creation targets. Resolving the owner for a new
chat's attachment does not replace its live composer or discard its draft and uploads.
Placement and preparation failures are also shown when command discovery or system-prompt
inspection starts a session lazily; retrying remains an explicit user action.
ompweb has at most one cluster: the first pool in `pools.json`. This machine is its master.
Creating the cluster adds this machine; an existing first pool that lacks it gains it on the
next join. The cluster appears in the sidebar as one group with one entry per Git repository.
Choose the cluster rather than a member; new independent sessions are placed on an eligible
member and receive an isolated local worktree. Adding a cluster project registers
its Git origin, not a central clone; adding another URL form of a repository the cluster
already has returns that project, unhidden, and keeps its stored origin. The selected member
prepares its checkout when the session starts and reports authentication, preparation, or
repository conflicts explicitly.
Standalone hosts, including the Mac, keep their own groups with typed paths and local clone
progress/cancellation. Resolving the owner for a new chat's attachment does not replace its
live composer or discard its draft and uploads. Placement and preparation failures are also
shown when command discovery or system-prompt inspection starts a session lazily; retrying
remains an explicit user action.

**Joining and leaving.** Each linked host has an **In the cluster** switch in **Settings →
Hosts**. Turning it on asks for a folder on that host for the checkouts the cluster creates
(default `<home>/ompweb-cluster`) and shows what changes. It needs the host online, its daemon
on link protocol 9 with the `gitOrigins` operation, and omp 15.13.1 or newer (a member always
uses this machine's provider logins); otherwise the disabled switch asks for an update of
ompweb or omp, or shows the host's unavailable status. While this machine is not a member yet,
its own daemon needs the same, and the switch asks to restart the host service on this machine
(or to update its omp).

- **Joining:** the host's Git projects are matched by repository: the same repository on
several members is one cluster project, and its sessions are listed together. `git@github.com:a/b.git`
and `https://github.com/a/b` are the same repository. Projects without a single Git `origin`,
subfolders and linked worktrees stay on their node; the cluster shows them with the node's
name, and a new session there starts on that node. Nothing on the host's disk changes. A
cluster project created from a host project keeps the name and alias it showed (the folder
name when it had no name of its own). A visible checkout that matches a hidden cluster project
makes that project visible again. This machine joins with the first host added while it is
not a member (when the cluster is created, or on the next join of an older first pool without
it): its Git projects then become cluster projects too, and new sessions in them start on any
member with capacity, not in its own checkout.
A second checkout of a repository already bound on that host also stays on its node.
Projects inside, or containing, the chosen checkout folder stay on their node too; pick an
empty folder that is not a parent of existing projects.
- **Leaving:** the host takes no new cluster sessions. Its matched projects are listed under
the host again. Checkouts the cluster created inside the host's folder stay bound, so
sessions the cluster started there stay under the cluster's projects. The cluster keeps the
projects it gained from the host, so they may now be listed twice; hide any you do not want.
This machine cannot leave, and the cluster stays when the last linked host does. Revoking a
member removes it from the cluster the same way; while `pools.json` cannot be read, the revoke
is refused.
- **Provider logins:** a member always uses this machine's provider logins, whatever its own
[**Use this server's provider logins**](#use-the-servers-provider-logins-on-a-host) setting
says; Settings shows it on and disabled. This is computed from membership, so leaving brings
the host's own setting back. A member can read this machine's access tokens and stored API
keys. Cluster placement skips a member that cannot take these logins (daemon below link
protocol 9, or a link that does not share) before preparing a checkout there. Only provider
logins are shared: `models.yml` custom providers, environment-variable API keys and omp
settings are not mirrored to members yet, so the models a cluster session can use depend on
the member it runs on.
- **Limits:** a host that is too slow to report its Git remotes within the time limit keeps
the remaining projects on its node; leaving and joining again retries them. Only Linux hosts
report capacity, so a macOS or Windows master never runs cluster sessions itself: its Git
projects start only on other members, and a start fails with "No pool worker currently has
eligible capacity" when none has capacity. A pool disabled through the API takes no new
sessions, including this machine's Git projects moved into it, which then cannot start
anywhere; its members still use this machine's provider logins. Settings cannot enable it
again.

**Upgrade note.** After this update, every linked host already in the first pool uses this
machine's provider logins (it can read their access tokens and stored API keys), without a
confirmation having been shown. This includes a first pool disabled through the API, and a
host added to the first pool later through `PUT /api/hosts` or by editing `pools.json`:
membership, not scheduling, grants the logins. Each linked member needs an updated ompweb host
daemon (link protocol 9) and omp 15.13.1 or newer; until the daemon is updated, cluster
placement skips that member, and a start fails when no other member is eligible. Before
updating, remove a host that should not receive the logins from the first pool using
`PUT /api/hosts` or editing `~/.omp/agent/omp-web/pools.json`; the old version has no
membership switch.

Creation retries reuse the same intent and creation identity. Once a real session is known,
its owner remains authoritative for resume, files, terminal, uploads, artifacts, rename, and
Expand Down
Loading
Loading