Skip to content

Browser Pane

github-actions edited this page Nov 27, 2026 · 6 revisions

Browser Pane

A browser pane keeps web pages in tabs on the canvas, right next to the agent working on it. Its main use is your own app: put the dev server beside the agent, watch changes land, and when something looks wrong, click the element and quote it to the agent with its component and source file. Browser panes run on macOS only.

Open a page

  1. Click Browser at the top right of the window. A New tab page opens in the files panel with the address field focused.
  2. Type an address such as localhost:3000 and press Enter.

The browser opens docked in the files panel, as a tab. Choose Move to canvas from ⋯ to put it on the canvas with your other panes. On the canvas, Open in panel docks it again, and Pin to screen pins it to the top right corner of the window, where it stays while you pan and zoom (Unpin puts it back).

A bare local address like localhost:3000 gets http://, and other bare hosts get https://.

Agents can open a browser pane too, usually wired to themselves. A pane an agent opens lands on the canvas beside it:

canopy pane new browser localhost:3000 --wire
canopy pane new browser localhost:3000 --place panel  # a tab in the files panel instead
canopy pane open p2 http://localhost:3000/pricing  # point an existing pane at another page

Both commands wait until the page has loaded and print its address and title. If you navigate the same tab again while an open is waiting, Canopy cancels the earlier reply. A failed load returns WebKit's error, or a timeout after 15 seconds.

canopy pane open also makes the new address the pane's Home.

Open a local file

Enter an absolute path such as /work/demo/index.html or a local file: URL in the address field. To pick HTML in a new tab, choose ⋯ > Open HTML file…. You can also right-click a file in the Files panel and choose Open in Canopy browser. Unsupported schemes and file formats show a toast.

WebKit can read only the opened file by default. If styles, scripts or images are missing, choose ⋯ > Allow folder assets… and pick a folder containing both the file and its assets. This grant lasts for the current file in that tab until you close the tab, navigate to a different address or quit. Local pages load their assets from disk and block network resources. The blocking rules are in place before the file loads. Canopy compiles them once into <app home>/browser/content-rules and reuses them for every local page after that. To follow a link to another page, enter its address yourself.

The browser opens any file WebKit can display, including HTML, SVG, text, PDF and images. If WebKit cannot display a format, Canopy shows a toast and blocks the download. The native picker shows only HTML files. Commands also take local targets:

canopy pane new browser ./dist/index.html
canopy pane open p2 file:///work/demo/index.html

Tabs

Click New tab (the plus button) in the browser pane's header to open an empty tab and focus its address field. Click a tab to switch to it, click its Close tab button (shown on the selected tab and when you hover another) or middle-click it to close it. Right-click a tab for Open in your browser and Close tab. Cmd+W also closes the active tab of the selected browser pane, the one in the Files panel when you last clicked there, or the browser in the focused pop-out.

Browser tabs look like the Files panel tabs, in the panel, on the canvas and in a pop-out window. As in Chrome, tabs sit a little below the top of their strip with small gaps between them, and the active tab shares its color with the row below it, so it flows into the address row. Tabs are up to 180 px wide and shrink evenly, to 96 px, as more open. Each shows a globe and its title: Canopy never loads a page's own icon, because that would be a request outside the page.

Closing the active tab selects the tab to its left, or the next tab when the first tab closes. Closing the last tab closes the browser pane wherever it is open. Each tab keeps its own address and page history while its view is open.

Links from terminals

Hold Cmd and click an HTTP or HTTPS link in a terminal. With Open links set to Built-in browser (built_in), the link opens in a new tab in the browser pane you used last in the current place. If that pane is unavailable, Canopy opens a browser pane beside the terminal, or centers it when the terminal is off the canvas. Choose Default browser (default) to open links in your system browser. See Settings and Themes.

Use the page

A browser pane is either resting or live:

  • Resting, it shows a snapshot of the page. This keeps the canvas fast when you have several browsers open.
  • Click the page to make it live. Scroll, click and type as in any browser. The page stays live while you pan, zoom or resize the pane. The canvas clips the page at its edges, and panes, helper bars and menus in front of the page remain visible and clickable.
  • Pinch the page to magnify it while you're working in it on the canvas, in the Files panel or in a pop-out. An unentered browser pane passes the pinch to the canvas.
  • Click outside the pane to rest the page and take a fresh snapshot.

A page lays out at the size its pane is drawn. Canopy waits for that size before taking the first snapshot. A resting page scales like a picture while you zoom the canvas. When the camera settles more than 5% above the snapshot's scale, Canopy takes a sharper snapshot. Choosing another Viewport also refits a resting page and retakes its snapshot.

A live page keeps its CSS width while you zoom the canvas. Canopy hands WebKit the new size and page zoom together, so text keeps the same line breaks.

The header

A browser pane's header has two rows. The pop-out window draws the same header.

Row 1 holds the tabs and window controls, left to right:

  • The tab list and New tab.
  • Connect, which starts a wire, and ⋯, the menu below.
  • Pop out, Expand and Close (see below). In the pop-out, Close brings the page back, and Pop out and Expand are not shown. Its menu has no Viewport rows: the page fills the window.

Row 2 holds navigation:

  • Back, Forward and Reload.
  • The address field. Type an address and press Enter to open it (localhost:3000 gets http://); this also sets the pane's Home. Press Escape to put the current address back. While you are not typing, the field follows the page.
  • Annotate (canvas.browser_annotate), a button with its label that starts annotating the page.

Drag the pane by the empty part of row 1. A docked browser shows its web tabs along the top of the Files panel, with the address field and Annotate below. Click Close in the header or choose Close browser pane from ⋯ to close the whole pane. Choose Expand panel to fill the window.

The ⋯ menu

Item What it does
Open in your browser Opens the current address in your system browser (the app that opens https links, or Open in default browser if Canopy cannot tell).
Copy link Copies the address and shows a toast.
Save screenshot Saves the page to <temp>/canopy/<pane>.png and shows the path in a toast.
Open HTML file… Opens a native picker for an .html or .htm file and opens it in a new tab.
Allow folder assets… For an open local file, asks you to pick a folder whose assets the page can load.
Home Goes to the pane’s first address or the one last set with canopy pane open.
Move to canvas, Open in panel Moves the pane between the Files panel and the canvas.
Pin to screen, Unpin Holds a canvas pane at the top right of the window or returns it to the canvas.
Viewport Choose Responsive, 1280 × 800, 1024 × 768, Mobile 375 × 812, or Tablet 768 × 1024. A check marks the saved choice. Responsive pages reflow as the pane resizes. Each fixed size sets the page's CSS viewport and scales it to fit, centered in the pane.
Links Open links in built-in browser: checked, links clicked in terminals open in a browser tab; unchecked, in your system browser. The same as the Open links setting.
Keep cookies Choose Until quit or Forever. A check marks the current choice.
Clear browsing data After a confirmation, deletes the cookies, storage and cache of every browser pane.

Expand

Expand makes the page live and fills the whole canvas area with it, at 100% zoom. The top strip gets a tab for it, right after its space's tab (after Home for a pane on Home), with the page title and a close button. Nothing else on the canvas is drawn meanwhile. Collapse with the tab's close button, the same command again, Escape (when the canvas has the keyboard, not the page), a click on any space tab or Home, or by closing the pane. The page then rests in its pane as usual.

Pop out

Pop out moves the whole pane into its own window: every tab, not just the active one. The window has the same header and a title bar drawn around the traffic lights; drag it by the empty part of row 1. Its size is the pane's size at 100% zoom, at least 640 × 480. The pane shows "Popped out" and a Bring back button.

Tabs, Back, Forward, Reload, the address field, the ⋯ menu and the Web Inspector all work on the window's pages. The ⋯ menu opens over the page, which stays visible around it. Sign-ins carry over, because the pane and the window share one website data store. The window annotates the same way the pane does.

Bring back (the pane's button, the window's Close, or its red traffic light) destroys the window's pages and puts the pane back with the same tabs and addresses. Pages load again when you click them. Closing the last tab closes both the pane and its window.

Cookies and site data

Browser panes and pop-outs share a website data store on disk for this Canopy home, and local files use it too, so their storage follows Keep cookies like any site. Persistent cookies need macOS 14 or later. Before macOS 14, web pages use a private store that keeps nothing, and local files use WebKit's default store for Canopy.

  • Keep cookies: Until quit (default) deletes the store when Canopy quits and again on the next start, including after a crash.
  • Keep cookies: Forever keeps the store across restarts.
  • Clear browsing data clears cookies, site storage and cache now, including in pop-outs. Sites will ask you to sign in again.

Change Keep cookies from a browser pane's ⋯ menu or under Browser in Settings > Look.

Web Inspector

Select a browser pane and press Ctrl+Shift+I or Cmd+Option+I to open Web Inspector in its own window. Canopy grows the pane to a usable size and centers it at 100% zoom, or zooms out enough to fit a smaller canvas. Pinned panes stay where they are. On a popped-out pane it opens beside the window, which does not move.

If this version of WebKit cannot detach the inspector, it stays docked.

Closing a page

Closing a pane, or the space it lives in, stops its page: media is paused and the page is unloaded.

A page you rested keeps running out of sight, so a video can keep playing. When a resting page that is off screen (panned away, or in another space) still has audio or video playing, Canopy shows a toast, "page is still playing", with a jump action that goes to the pane. It shows once, until you click the page again.

Annotate

When a layout bug is easier to point at than describe, click Annotate in the header. The same control is available when the pane is docked in the Files panel. It is one tool for pointing at an element, drawing on the page and sending the result to an agent. Canopy takes a still of the page while you work, so the page does not move under your pen. A popped-out page is annotated the same way in its own window.

The bar sits at the bottom of the pane. It has four icon tools and an x to stop:

Tool What it does
Select Hover to see the element under the pointer, outlined with its tag and class. Click it to drop a numbered blue pin and open the comment box next to it. Drag from text to comment on a range, or drag elsewhere to comment on an area.
Pen Draws freehand on the still.
Box Draws a rectangle.
Text Click, type a label, then press Enter.

colour and stroke width appear in the bar only while Pen, Box or Text is on (Text has no stroke). each comment appears on a one-line card beside its numbered pin. click the pin or card to edit it, or use the Delete comment button on the card. Cmd+Z undoes a change, including a deletion, and Shift+Cmd+Z redoes it. pins outside the still sit at its nearest edge.

click the x or press Esc with the comment box closed to return to the page. Annotate reopens the same still with its marks and comments. to send them while using the live page, click Send annotations (N) in the header, where N counts all marks and comments. use Send in the annotation bar while working on the still. the batch stays with the pane until you send it or close the pane. if sending fails before it reaches the agent’s prompt, you can edit or send the batch again.

The comment box

the comment box grows when you press Shift+Enter for a new line. press Enter or click Add to save the comment. Cmd+Enter saves it and sends the batch. if you already have marks or comments, hover over the dimmed Send button to see Finish the comment. for a selected element, Copy reference copies the page URL and the element’s source file and line when available, or its CSS selector when the source file is unavailable. Esc closes the box and keeps the existing annotations. saving an edited comment with no text deletes it.

hold Space to scroll or interact with the live page. release it to take a fresh still. element pins follow their elements. area and text annotations keep their original page coordinates.

Choose the agent

with exactly one agent wired to the pane, Send goes to it. with several wired agents or only unwired agents available, Choose agent appears in the header next to Annotate until you pick one. it lists agents wired to the pane first, then the other running agents. if Send shows Wire or pick an agent, wire the pane to an agent or pick a recipient. if the recipient changes while Canopy saves the screenshot, check the agent and press Send again.

the agent receives the annotated screenshot, then the URL, viewport and numbered comments. element comments include the selector, visible text, a short HTML excerpt and styles. text labels are listed with their coordinates in the message.

Run canvas.browser_pick to start annotating with Select already on. It is the same tool, so there is no separate picker.

How Canopy finds the source file

React development builds report each component's source file and starting line. An element comment lists them as Component: PricingCard (src/components/PricingCard.tsx:42). Canopy turns the file the page reports into a path on disk by looking in this order: the folders of agents wired to the pane, the pane's space folder, then every space's folder. If it finds no file, the message keeps the path the page gave.

The fallback search skips dependency, version control and build folders, and stops after 50,000 entries.

What agents can do with a browser pane

An agent wired to a browser pane can check its own work without asking you to look:

canopy pane read p2   # the URL, title and text of the page
canopy pane shot p2   # a PNG screenshot of the page

Reading an empty pane returns New tab. When the pane has a URL, both commands wait for the current load for up to 15 seconds and work even when the pane is off screen. See Let Agents Show You.

Privacy

Browser panes are built for local development, and they keep to themselves:

  • New tab is drawn by Canopy. The browser loads a page when you or an agent opens an address.
  • Downloads are blocked. Website content cannot open files on your disk. Local files open with scoped read access.
  • Links that ask for a new window open in the same pane.
  • Annotate reads each element's React source through a bundled copy of an open-source tool. Canopy initializes it when you first select an element, with its telemetry and its own toolbar turned off, and its version check, open-file link and web font import removed.
  • Canopy keeps the last snapshot of each tab in <app home>/browser/<pane>-<tab>.png so the canvas can draw it after a restart. Closing the tab or pane deletes the snapshot.

See Security and Privacy for the app as a whole.

Troubleshooting

  • The page is blank or did not load. Check that the server is running, then click Reload.
  • The quote has no component or file. The page is not a React development build, or Canopy could not find the file in any space folder. Wire the browser pane to an agent whose folder holds the source.

See also

Clone this wiki locally