HTML pages in chat

Sometimes Oda answers with an HTML page rather than a paragraph: a small dashboard, a chart or a tool it built for the conversation. The page opens in the side panel beside the chat, and you can use it there. Opening an HTML file from your workspace is a different view; see Preview images and HTML.

What a page looks like in the chat

Open a page

  1. When a turn builds its first page while its chat is open, the page opens on its own in the side panel.
  2. Later pages wait for you: choose Open on the page's chip in the reply.
  3. Until a page has any content, its chip cannot be used.
  4. If you close a page, its chip is the way back: choose Open again. Oda keeps one tab per page, so opening a page that is already open brings its tab forward.

The side panel and the rest of the chat are covered in Chat with Oda.

While Oda is still writing

The controls on a page

The page's tab carries four controls.

How a page is isolated

In a shared chat

Questions, answered

How do I open a page Oda built?

When a turn builds its first page while its chat is open, the page opens on its own in the side panel. For later pages, choose Open on the chip in the reply, and use the same chip to reopen a page you closed.

I closed the page. How do I get it back?

Find the message that holds the page in the conversation and choose Open on its chip. Oda reuses the page's tab, so a page that is still open comes forward instead of opening twice. The page comes from the chat itself, so it is always opened from there; save a file if you want a copy of your own.

Why is the page tab empty?

A restored tab can show This page is not loaded yet. Find it in the conversation and choose Open. until the message that holds the page is on screen. Open the chat that built the page; the tab fills in.

Why does the page keep changing while Oda is writing?

The page is being written with the reply. It fills in as the text arrives, refreshing up to about three times a second, and it never blanks: the last complete version stays on screen until the next one is ready. It settles when the reply finishes.

Can I save or copy a page Oda built?

Yes. Copy HTML puts the page's source on your clipboard, and Save as .html file saves a copy with your theme built in. The file name is suggested from the page's title: letters, digits and ., _ and - stay, and other characters become single spaces.

Where does a page go when I open it in my browser?

Oda writes a temporary copy and opens it in your usual browser, so the page lives in a temporary folder; keep it with Save as .html file when you want it long term. If the browser cannot be opened, the tab shows This page could not be opened in the browser.; choosing Open in browser again clears it.

Why did the page jump back to the top?

Every rebuild starts a fresh copy of the page, so where you had scrolled to is not kept. This happens when you choose Reload, and while the page is still being written and refreshed.

Can a page Oda built read my files or other chats?

No. The page runs in its own frame, apart from Oda, with no way to read your files, your other chats or the app itself.

Which outside files can a page load?

Scripts, styles and fonts, and only from the page itself or from two public code sites: jsdelivr and cdnjs. Anything else stays closed: the page cannot call services or fetch data. One limit: a page can still encode information in the addresses it requests from those two sites.