diff --git a/CHANGELOG.md b/CHANGELOG.md index 548e9ad55..8d8311f89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ All notable changes to **omp-web** (`@kahme247/ompweb`) are documented in this f ## [Unreleased] +### Fixed + +- **Horizontal scrollbars no longer clip file-panel tabs.** The tab row keeps its full height in narrow panels, including on mobile. +- **Show the generation-speed pill in the top bar again.** Since the header opener was split from the file-panel close control, the pill's box sized to zero width and its narrow-header rule hid it on every screen; it now keeps its width. Phone-width screens still hide it. + ## [v0.7.4] - 2026-11-20 ### Fixed @@ -98,6 +103,7 @@ All notable changes to **omp-web** (`@kahme247/ompweb`) are documented in this f **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 `/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. +- **Native clients can read a session without downloading its transcript.** `GET /api/sessions/[id]?meta=1` answers only the navigation shape (message tree and current leaf), `?includeState=alive` splits liveness into `running` (a turn in flight) and `alive` (the child exists) while every other `includeState` value keeps the historical meaning, and `GET /api/agent/[id]?systemPrompt=0` drops the ~13 KB system prompt from the periodic state poll. `GET /api/sessions/[id]/context` now answers a strong `ETag` for the exact bytes and 304 on a matching `If-None-Match`, so an unchanged context costs no body. - **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. - **Traditional Chinese (`zh-TW`) interface language.** Select Traditional Chinese (繁體中文) in the top-bar language menu. On compact layouts, open **More controls** first. Alternatively, let omp-web pick it automatically when the browser language is `zh-TW`, `zh-HK`, `zh-MO`, or `zh-Hant`. Localized Web Push notifications and a Traditional Chinese README (`README.zh-TW.md`) are included. - **Several web apps can share one host daemon and the same live sessions.** Link additional servers with `ompweb host login --add --url ` (token from stdin). Prompts, tool progress, results and dialogs stay synchronized, and restarting one web app leaves the other connected to the same omp process. Link protocol v7 moves session startup, idle cleanup and interrupted-run recovery into the host; older links remain supported without sharing their processes. Schedule the first daemon upgrade while its host is quiescent. @@ -125,6 +131,7 @@ All notable changes to **omp-web** (`@kahme247/ompweb`) are documented in this f - **Updates belong to each host.** Settings → Hosts now shows the ompweb daemon and OMP runtime versions, available updates, and update actions for every machine, including This machine. Checks and installations run on that host. An incompatible or unverifiable daemon update stays visible but blocked, with a reason to update the web server first. A daemon update is refused while session processes or subagents run on that host (close them, then start it again), and the host refuses new sessions while it installs. The host update retains a backup and reports progress after reconnect. **System & Updates** is now **System**, containing only the web server's controls; it no longer updates or restarts a host's OMP sessions globally. - **Messages wait safely until omp has them.** In an existing chat, the composer clears once IndexedDB has stored the message, and a dimmed bubble names the delivery leg: **Sending**, **Waiting for **, **Delivering**, or **Not sent** with the reason. Browser-held messages survive reloads and closed tabs; server-held messages survive web-server restarts and host outages, and appear on every device viewing the chat. Chromium's Background Sync can deliver after the last tab closes; other browsers retry when an ompweb page reopens. Duplicate submissions share one message id. If a lost host reply leaves delivery uncertain, the message is marked **Not sent** and never retried automatically. A prompt that omp stops (Stop, or a failure) before it reaches the transcript is marked **Not sent** at once, so the messages behind it go on without waiting. Held messages offer **Delete** until dispatched. Follow-ups and steers become omp's own queue chips when accepted. New chats keep their existing first-message path; a browser unable to store the message keeps the composer draft instead. +- **Answer a waiting question from the notification itself.** A notification for a blocking dialog (confirm, select, input, editor, or the ask tool's question panel) now carries the dialog, so a phone or a native client can answer it without opening the session: `POST /api/notifications/answer` takes the session id, the dialog's request id and one response (`confirmed`, `value`, `cancelled`, or `answers` for an ask). The answer goes through the same command the desktop dialog sends, so a server-owned confirmation without a structured payload resolves; one whose decision text (from/to/delivery/cwd) cannot be represented publishes no dialog and only opens the session. An offline host or a restarting session is reported instead of silently dropping the answer, and no omp process is started for a session that is not running. An answer the pending dialog cannot take is refused with 400 before anything settles: a select accepts only one of its own labels, and an ask's answers are checked against that dialog's questions the way omp checks them (one answer per question in order, each naming its own question, only offered labels, no label twice, and a single-select question takes either one label or free text, never both), so a payload omp would reject never consumes the question. When the dialog settles anywhere, every other open tab is told to close its notification of exactly that request, and a push retry that wakes up afterwards delivers nothing. A settled dialog is never retracted by a push: a push that displays nothing is a silent push, which iOS punishes by revoking the permission and Chromium and Firefox by substituting a generic card and muting the site, so a device that is not reachable keeps the stale card until the next question of that session replaces it. A request that is not a dialog (open_url) takes no answer at all. A dialog is only carried when it fits exactly: a title, confirmation message, question or option label that would have to be shortened makes the notification only open the session, and that request is not answerable from the notification either, so an approval is never shown and answered from its harmless prefix. The same fallback covers decision text the notification cannot show at all: a server-owned confirmation, an option description or preview, a question header, and a secret input. ### Fixes & Improvements @@ -184,6 +191,7 @@ All notable changes to **omp-web** (`@kahme247/ompweb`) are documented in this f - **Recovered prompts and attachment-backed drafts preserve their input mode.** Prompts remain model input even when their text starts with `!` or `!!`, including after navigation, session identity moves, rejection, and page reload. Drafts keep this provenance even when memory-only attachment payloads disappear on reload. Clearing the recovered content, including removing its final image from an otherwise empty composer, starts fresh input so a new shell command works normally. Empty recovery results never change newer input. - **History prefills and unfinished uploads keep prompt intent.** History Edit, edit-and-resend Fork, and refused interrupt/reply prefills remain model input when their omitted attachments once prevented shell execution. Existing user drafts keep their own intent. Draft snapshots capture every live attachment before filtering unfinished upload payloads, so uploading or failed file chips cannot turn a prompt into a shell command after navigation or reload. - **Side questions look different before you send.** Typing `/btw` tints the composer and shows **Send**, even during a run and when the usual submit action is Queue or Steer. Side questions are sent immediately, never queued. +- **Live tool output no longer floods a slow connection.** omp sends a tool's whole accumulated output with every progress report, so a chatty command forwarded megabytes many times a second to every open tab. ompweb now holds the newest snapshot of each running tool and sends at most one per second per tool, writing the final output immediately when the tool ends. The hold lives outside the message queue, so streaming text neither waits for a held snapshot nor releases one, and a tool that has not been written yet is never delayed behind another tool's hold. Concurrent tools keep their own snapshot, so a slow one never hides another's progress. The cap applies between progress reports of one tool: any other frame — another tool's start or end, a finished message, a side-question delta — flushes held output first, so an event burst can release snapshots as often as it arrives, but never drops or reorders them. Sequence domains stay separate: message deltas remain ordered and lossless among themselves and each tool's frames stay monotonic, while an older tool snapshot may arrive after newer message text. The delay is not reported as connection latency. - **Finished background tool calls no longer show up as running.** A `bash` or `task` call that omp moved to the background kept reporting progress after it returned, and ompweb counted each report as a running tool. Opening the chat mid-run then listed those long-finished calls as empty running rows below the transcript until the next event, and an open chat could briefly show a finished call as running again. Calls that returned before an ompweb server restart can still show this once. - **Background Sync retains permanent rejection states.** A rejected held message, including one from a changed installation scope, is saved as **Not sent** rather than left as **Sending**. It is not rebound to new credentials, and a late refusal cannot recreate an entry another sender already accepted. - **Pending messages protect newer drafts and delivery intent.** A delayed storage acknowledgement does not clear newer input, even if an edit restores identical text. Same-time submissions keep durable enqueue order; duplicate browser IDs and unrelated successful HTTP responses cannot overwrite or acknowledge a held message. Delete confirmations distinguish removing tracking from cancelling work omp may already have received. diff --git a/components/AppShell.tsx b/components/AppShell.tsx index 85795fb82..4bb846aac 100644 --- a/components/AppShell.tsx +++ b/components/AppShell.tsx @@ -2553,6 +2553,10 @@ export function AppShell({ appName }: { appName: string }) { className="shell-topbar-metrics" style={{ flex: "0 1 calc(10ch + 33px)", + // Inline-size containment zeroes the content width, so without an + // explicit width the right group sizes this box to 0 and the + // `topbar-speed` container query hides the pill even with room to spare. + width: "calc(10ch + 33px)", minWidth: 0, fontSize: 11, fontFamily: "var(--font-mono)",