Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Amplifier Web Client

The browser interface for Amplifier Unified: conversations, workspaces, tool activity, and interactive work surfaces. The client connects to a Unified host over HTTP, server-sent events, and WebSockets; the host runs agents and stores conversation history.

To use Amplifier, install Unified. This repository is for developers working on its web client. Source changes here do not automatically update a Unified installation.

Get started

Use Node.js 22. Clone this repository, then install dependencies and prepare the shared catalogs, SDK, and branding selected by build-inputs.lock.json:

git clone https://github.com/microsoft/amplifier-client-web.git
cd amplifier-client-web
npm ci
npm run prepare:inputs

Input preparation fetches the pinned public files and verifies their hashes. For offline work, use npm run prepare:inputs -- /path/to/canonical-export with the exact locked export.

Run a compatible Unified development host on port 8765, then start the client:

npm run dev

Open the local address printed by Vite. API and WebSocket requests are proxied to the development host. This client does not install or start the agent backend.

Computers and screen sharing

Choose Computer beside the message box to select a computer connected through Amplifier Reach. Selecting a particular window or browser tab is optional. Computer work shows a compact activity row with Interrupt and an optional View snapshot. Opening the picker or listing computers does not capture a screen or run a model.

Settings → Computers reuses existing connections. Open Amplifier Reach hands unfinished setup and connection management to Reach's own interface; Unified does not maintain a second browser-profile, permissions or model setup screen. Hosts must expose the session-bound computers.* actions and projection. A loopback-only setup address on another computer must not be offered as the viewing browser's localhost.

Share screen — view only remains available without installing a helper. The browser asks the user to choose a source. Sharing permits explicit snapshots, not keyboard or mouse control, and has no application renewal timer. It ends on Stop sharing, a source ending, switching chats or disconnecting. Voice and text can use the same live source; saved snapshots remain in the conversation.

Run node tests/computers-browser.mjs for real browser interactions against the synthetic Computers host fixture. It covers setup handoff, exact optional targets, preview, interruption during a pending preview, draft preservation and browser user activation for sharing. This is separate from installed Unified/Reach and physical-device qualification. For the paired boundary, run node tests/computers-host-browser.mjs /path/to/amplifier-unified using that host's locked Python environment (AMPLIFIER_TEST_PYTHON can select it). This starts an owned production App/Unified HTTP/action path and actual stdio MCP connection with synthetic device/runtime/media; it makes no provider call or personal-device action. The fixture also supports --serve and --attach http://127.0.0.1:PORT for an isolated host with a separately running test browser. Keep such a proxy loopback-only and remove it after the test. For an authorized real-device qualification, set AMPLIFIER_TEST_COMPUTER_CONFIG to a private mode-0600 JSON file containing the released caller's absolute command, string args, optional id/name, and optional expectedDeviceId, then use --serve. This replaces the synthetic MCP server with the actual public caller; no pairing or credentials are fabricated. Synthetic work/media/aging scenarios are disabled in that mode. Use a separate explicit owned-target driver for real actions, and preserve existing device state.

Switching between chats

The browser can keep one previously displayed message page in memory on its live connection. On returning to that chat, the host can confirm the saved page is still current and send only the changed surroundings. A changed page arrives normally. A fresh connection starts with a complete snapshot. This optimization stores no chat text in browser storage and does not change loading older messages.

Cancel a response

Cancel response ends current work, including a response retained in a paused state by an earlier client. Retry remains a separate, explicit action for a failed message. There are no response Pause or Resume controls.

The host keeps its pause/resume lifecycle for safe updates and shutdown. Opening or reconnecting the browser never resumes an earlier user pause. Explicitly sending to a stopped assignment or releasing held queued messages remains a separate choice; those actions do not resume a suspended native response. Run node tests/conversation-execution-browser.mjs for the rendered synthetic HTTP/SSE journey, separate from actual host and provider qualification. Unified's integration owner selects, qualifies and releases this client.

Suggested messages

On a host that supports app-level suggestions, Settings → Chat & input has one everyday Show suggested messages switch and the Enter / Return preference. Suggestions are off by default. The choice is synced in this authenticated installation owner's saved settings across clients, reloads and sign-ins. It is not a cloud or cross-host account preference. Old browser choices are not migrated or promoted into the synced setting. The suggestion provider/account and model are shown separately from the chat model. The same feature's Advanced settings holds explicit host setup across workspaces, model/effort choices and a deeper custom instruction. Global Advanced and Privacy link to this one feature destination rather than owning duplicate editors. If host setup is missing, Set up suggested messages opens a compact Save setup and enable confirmation; opening it alone changes neither host settings nor your choice. Host-setup success and a failed synced-preference save are reported separately. Preference saves use a setting-specific revision so another client's newer Off choice wins over a delayed setup-and-enable operation. Setup/model/instruction saves also carry the displayed suggestion-configuration revision. A concurrent configuration/account change rejects the save atomically, keeps staged edits and refreshes current setup for explicit review—never a silent account change or an automatic mutation retry. A failed setup read has a read-only retry and can recover on a fresh connection; neither runs a suggestion or discovers models. There is no automatic model selection or fallback; a configured connection is not a claim that every provider or model supports this feature. When the host confirms that a suggestion has not started because the conversation or its history is not ready, the client can try once per relevant readiness change. It keeps the same saved connection and model. Refreshes and timers do not repeat the request; failed, timed-out or uncertain model calls are never replayed. The saved connection/model card has a Change action. Optional recommendations come from the selected module's purpose ranking for that exact catalog, with its live/configured/static provenance; an unknown module is never guessed from its name or model-family substrings. Manual model IDs stay in Advanced. A newer recommendation does not replace a saved explicit choice.

The host sends recent conversation text from this chat to the selected AI—not messages relayed from other chats, an agent's private context or an unsent draft. This may include more of this conversation than before. There is no Recent/Full mode, message count or transcript-limit control. An explicit setup/model save with this disclosure visible confirms recent-text sharing; synced On/Off, passive reads and instruction-only saves do not grant it. Legacy setup without that confirmation stays inactive until explicitly saved. No usable conversation text produces a quiet empty outcome, not a model error. The client requests a suggestion only by conversation and committed message identifiers. The selected chat can request once when idle with an empty message box while the page is visible and focused, including when you visit an existing chat. No other chat or background page requests work. A source-bound READY response can remain in bounded private memory while its source and settings are unchanged; revisits still validate the original attempt without model work. Valid unused assistance is retained privately by the host, separately from user drafts. If a known exact request receipt expires, the client may perform the authenticated cache-only session.suggestion.restore read with the current conversation/last-message IDs and a new private binding. Only freshly validated source/configuration-bound results may return; a miss never authorizes another inference. Nothing is inserted, sent or stored as a user draft before acceptance. Finite responses obey their original expiry. Failed, empty, cancelled or missing attempts do not trigger a client retry loop. Suggestions are automatic; there is no creation or regeneration control. Closing Settings after confirmed enable checks the already-viewed eligible chat immediately. The composer shows Loading a suggested message… or a safe unavailable/failure explanation with setup review—not a chat-working badge. Returning to a retained non-ready attempt reads its exact original ID, without a new inference request. Expired/history/ordinary no-result states do not link to unrelated setup. A confirmed lack of a usable exchange says “No suggestion for this conversation yet”; genuine configuration and provider failures retain their feedback. If an admission acknowledgement is lost or malformed, the client withdraws that exact possibly-admitted attempt once rather than treating an HTTP abort as provider cancellation. Late output cannot restore preview authority; returning still reconciles the original receipt. Withdrawal does not undo provider effects. Reopening or reloading an eligible conversation can ask the host for its current source-bound result, including a cached empty outcome, without duplicate model work. The host owns durable private suggestion storage; ghosts are never stored as drafts or in a second persistent browser cache. Starting a new chat before it has a response makes no request. In suggested-message Advanced settings, restoring the default instruction stages an edit requiring Save. Advanced model details (pricing and catalog origin) stay in a secondary disclosure; ordinary connection/model controls remain readable.

Writing offers Automatic with its actual platform outcome, explicit Send message, or Start a new line. Existing Automatic/newline preferences and the conservative touch default are preserved. Explicit Send uses the same guarded Enter handler; Shift+Enter continues writing and IME confirmation does not send. The keyboard preference remains browser-local, separate from the synced suggestion setting and from appearance profiles.

The private preview is not part of the editor document. Tab in the focused empty editor, or Use suggestion, adds literal, editable, undoable text; sending is always a separate action. Typing or pasting hides the placeholder. Clearing the message box, including Undo after acceptance, can restore the same valid suggestion after a status-only check, without another model call. Escape dismisses it for that source; Stop, attachments, quotes and source/configuration changes invalidate it. Explicit desktop chat selection focuses an editable composer once after navigation commits, unless newer user interaction or a blocked surface takes priority. Touch-capable environments do not automatically focus it. The mounted browser check node tests/transcript-suggestion-mounted-browser.mjs uses synthetic action responses. It does not qualify a provider, installed host, or LAN deployment.

Check and build

npm test
npm run build
npm run test:artifact-assets

The build writes dist/. See package.json for focused checks and AGENTS.md for source, test, and packaging guidance.

Unified delivery

This repository owns the browser source. Unified selects an exact accepted public revision and production-input digest through its documented selection workflow. It prepares that source, qualifies the client/server pairing and ships complete built assets. Installing a released Unified wheel or source distribution does not require Node or this checkout.

Author changes here first. A client source merge or release does not automatically update Unified: carry intended changes through selection and release or make a named integration handoff with exact revisions and pending work.

For interface and design work, use the pinned client vision and client development contract.

See support, security reporting, and the MIT license.

Where this fits

The selected browser frontend for the current Amplifier Unified application.

Roles: Experience. Supports: Conversation.

Ecosystem roles and component relationships

Product page · Open the map · Map guide

The five shared building blocks

Experience, Conversation, Agent Instance, Connection and Tool

Contributing

Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit Contributor License Agreements.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Shared models and queued messages

Chat pickers and Settings observe the same service-owned modelCatalogs map, referenced by each connection's sharedCatalogKey. Opening a picker never probes a provider. Only Settings offers an explicit model refresh; the last valid list stays usable during refresh or a transient refresh failure. Selection, exact model IDs, connection isolation and provider support remain explicit.

While work is active, Send now delivers to the existing work with its current settings. Send after this turn submits a durable service-owned message for a later turn, with that item's captured configuration. One collapsed queue line sits at the end of the scrolling history. Each preview exposes Cancel, Edit and, when available, Send now; expanded messages use the normal rich rendering. Multiple items can be dragged or reordered with the same keyboard control used elsewhere. Stop holds the queue until Resume; an idle-looking delegate wait does not release it. Sending one held item leaves the others held.

Editing withdraws an item only when the service can atomically put its text, quotes and attachments into this client's empty saved draft. A nonempty draft keeps both drafts intact. Queue mutations carry the displayed revision; stale or uncertain receipts do not cause automatic replays. Browser storage is not the queue's persistence owner.

tests/queued-messages-browser.mjs mounts the production queue, composer, picker and reorder controls with synthetic service receipts. Unified owns installed-host queue/turn admission and paired browser qualification.

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages