Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 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
dad3cde
docs(hosts): design the master's omp configuration for cluster members
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
546984d
docs(hosts): plan the cluster's shared configuration
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
f235b34
Merge completed cluster membership into cluster configuration
andrebrait Nov 11, 2026
2c16b0e
feat(hosts): describe the master's omp configuration as a manifest
andrebrait Nov 11, 2026
5672861
fix(hosts): accept an empty master config and type every manifest fai…
andrebrait Nov 11, 2026
0aaaa79
feat(hosts): serve the master's configuration to cluster members
andrebrait Nov 11, 2026
bbda8a6
fix(hosts): gate only the two configuration routes and never read a m…
andrebrait Nov 11, 2026
7da13f8
feat(hosts): apply the master's configuration on a cluster member
andrebrait Nov 11, 2026
124f0a4
fix(hosts): never lose a member's own configuration after an interrup…
andrebrait Nov 11, 2026
d3a3e84
fix(hosts): keep a member's plugin list through failed restores and r…
andrebrait Nov 11, 2026
566b977
fix(hosts): drop a member's saved plugin list once a leave has finished
andrebrait Nov 11, 2026
629d807
feat(hosts): link protocol v10 keeps cluster members on the master's …
andrebrait Nov 11, 2026
850fcc2
fix(hosts): keep one server's configuration per host and repair lost …
andrebrait Nov 11, 2026
ba96d46
fix(hosts): let a member's own server reclaim it after a re-link and …
andrebrait Nov 11, 2026
74c9712
feat(hosts): place cluster sessions only on members with the current …
andrebrait Nov 11, 2026
af25311
test(hosts): prove each placement skip on its own and name outdated m…
andrebrait Nov 11, 2026
70bd3d1
feat(settings): show and edit the cluster's configuration
andrebrait Nov 11, 2026
c962294
fix(settings): name outdated members and failing master files, and sh…
andrebrait Nov 11, 2026
abdcbd1
docs(hosts): document the cluster's shared configuration
andrebrait Nov 11, 2026
aa15923
docs(hosts): state what joining replaces and what leaving restores
andrebrait Nov 11, 2026
5bc791f
fix(hosts): restore a revoked member's own configuration and keep lin…
andrebrait Nov 11, 2026
8091be5
docs(hosts): say what revoking, joining and leaving do to a member's …
andrebrait Nov 11, 2026
a680a38
chore: refresh knowledge graph after cluster configuration
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
26a305e
Merge cluster membership (on upstream main) into cluster configuration
andrebrait Nov 11, 2026
04149d0
chore: refresh knowledge graph after cluster configuration
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
25a48aa
Merge cluster membership (as merged in #459) into cluster configuration
andrebrait Nov 12, 2026
55a7815
Merge upstream main through #459 (699c6e92; its tree equals the clust…
andrebrait Nov 12, 2026
c4d9182
chore: refresh knowledge graph after cluster configuration
andrebrait Nov 12, 2026
bbe9f64
fix(hosts): run the cluster configuration tests on Windows, normalize…
andrebrait Nov 12, 2026
4e525ae
fix(hosts): address review: recheck membership after builds, query un…
andrebrait Nov 12, 2026
7c9c9d6
fix(hosts): address review: no restore for this machine's daemon, rep…
andrebrait Nov 12, 2026
deb9613
fix(hosts): send the latest config_state once a full send window has …
andrebrait Nov 12, 2026
4bbff57
test(hosts): resume a stalled redial only once the daemon has applied…
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
119 changes: 103 additions & 16 deletions AGENTS.md

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ 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`.
- **Cluster members use this machine's omp configuration.**
**Before upgrading:** every cluster member needs an ompweb host daemon at link protocol 10. Until a member's daemon is updated, sessions cannot start there (the start is refused and names the update), cluster placement skips it, a host below protocol 10 cannot join, and Settings → Hosts says it needs an update. Once its daemon is updated, every host already in the first pool receives this machine's configuration, secrets included (API keys, MCP environments and headers, tokens), automatically and without a confirmation having been shown, and its own omp configuration is replaced until it leaves the cluster; it is kept in `<agent dir>/omp-web/own-config/` on the member and put back on leaving. To avoid that for a host, remove it from the first pool (`PUT /api/hosts`, or editing `~/.omp/agent/omp-web/pools.json`) before updating its daemon. Update the web server first, then the members.
A cluster session now runs with this machine's settings (`config.yml`, without the machine-specific keys), `models.yml`, MCP servers, skills, task agents, rules and context files, commands, prompts, hooks, extensions, custom tools, `secrets.yml`, `.env`, the agent environment variables of Settings → System, and the installed plugins, whichever member it runs on. A change made here, in Settings or on disk, reaches the members within about a minute and before every session start on a member. Every cluster session start carries this machine's version: a start that must run on one member is refused with the reason when its files cannot be applied, and new sessions are placed only on members with the current configuration and plugins; a session recovered after a daemon restart, or started by another ompweb server, runs on whatever is on the member's disk, and running sessions are not restarted. A mirrored directory becomes equal to this machine's. The member's backup holds only what the host had when it joined: a file it adds or edits afterwards is deleted at the next apply, not backed up. Settings that describe the machine itself stay the member's own as they were when the host joined (see the README). A host holds one ompweb server's configuration: a host already in another server's cluster cannot join (409 `host_in_other_cluster`), and a member that also runs sessions for another server runs them on this one's configuration. The configuration contains secrets, which are written to every member's disk, readable by the daemon's user only; the hooks, extensions, tools and plugins in it run on every member, and this machine can already start omp with full tool access there. Each file is limited to 5 MiB and the configuration to 50 MiB; a configuration over a limit, or one that cannot be read, is not mirrored at all, a cluster session start on a member is refused (409 `cluster_config_invalid`), placement skips every member, and Settings names the file. Each download has a 30 s limit including the body (a 5 MiB file needs roughly 1.4 Mbit/s). An apply is refused on a member where `~/.agents` is a symbolic link, and the mirrored directories and the backup must be on one filesystem. The reverse proxy must pass `/api/hosts/cluster-config/manifest` and `/api/hosts/cluster-config/file/<hash>` without its own authentication, at exactly these paths (unlike the broker's prefix).
Plugins are installed (this needs `bun` and network access on the member), removed and enabled or disabled on each member by `omp plugin`: npm plugins are pinned to this machine's version, marketplace plugins have no version pin in omp, and a failing install leaves the member not current and is retried. Leaving puts the member's own configuration and plugins back; if that fails Settings says so, and it is retried while the host is linked. Revoking a member does the same: its daemon puts its own configuration back at once if it is connected, otherwise the next time it reaches this machine. **Settings → Hosts** shows each member's state (same as the master, updating, failed with the reason, held by another server, needs an update) and the MCP server commands that are not installed there, and names the file when this machine's configuration cannot be mirrored (the member lines then do not say updating). For a session on another member, the MCP, Skills, Plugins and Agents screens act on this machine's user-level configuration, and say they apply to every member, as does Settings → System next to the agent environment variables in a cluster session; MCP shows that session's live status read-only, and the session's MCP switches, reload and Skills diagnostics are not available there. `GET /api/plugins`, `POST /api/plugins`, `GET /api/skills`, `POST /api/skills/check` and `POST /api/skills/update` now accept a request without `cwd` for the user level, and `GET /api/mcp?attach=1` reads a running session's live MCP status without starting one. A provider in `models.yml` that points at this machine's own address, MCP servers started by a command, and API keys written as an environment-variable name or `!command` need what they refer to on each member.
- **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 10, 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. The rest of this machine's omp configuration is mirrored to members too (see the entry above). 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.
**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 at that release; cluster members now need link protocol 10, see the first entry) 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
Loading
Loading