Omniscio

How menus are built (one payload, one renderer)

A menu is one small payload: a label and a list of rows, some of them grouped into sections. One shared renderer draws every payload, so keyboard, search, fly-outs, copy rows and interactive widgets behave the same in every menu. A new menu is a new payload, not a new menu implementation.

On this page

Every menu in Omniscio — the one you get by right-clicking a session, the ⋯ menu in a session's header, and the menu on an Inbox item — is the same system underneath. A producer describes the rows as data, and one shared renderer draws them. That is why an action behaves identically wherever it appears, and why a new menu is added by producing data rather than by hand-building a list of buttons.

What it is

A menu payload is a plain description of a menu:

  • A menu has an id, a label, and a list of items (plus an optional search mode).
  • An item is one of a small set of shapes: an action (a row you click), a checkbox (a row with a tick), a choice (a row holding a small segmented switch), a submenu (a row that opens a fly-out), a section (a labelled group that folds), a separator, or a widget (a named piece of live app UI the host supplies, such as a colour picker or a tag editor).
  • A section holds other items and can be marked customizable, which is what lets a person reorder or hide its rows.

The renderer owns everything a menu has to get right, so no producer re-implements it: arrow-key and Enter/Escape navigation, focus handling, the type-to-filter box, one fly-out open at a time, the copy row that confirms before it closes, the checkbox and choice rows, and the named widget slots. A producer supplies the rows; the renderer supplies the behaviour.

Where to find it

The same system draws:

  • the session menu you open by right-clicking a session row, or a sidebar section header's ⋯;
  • the ⋯ menu in an open session's header (the same actions, with the additional rows that act on the open conversation);
  • the menu on an Inbox item, which carries the Inbox's own rows and, for a session, that session's menu sections;
  • rows contributed by a plugin or an agent, which appear inside these menus as ordinary items.

How it behaves

  • One behaviour everywhere. Because every menu is drawn by the same renderer, the keyboard model, the filter box, the fly-out rules, the copy confirmation and the disabled-row explanation are identical in all of them.
  • Sections fold, one at a time. A long menu opens as a short list of section headers; opening one closes the one before it, and the filter box still finds a row inside a closed section.
  • A bad payload draws nothing. A payload that arrives from outside the app — from a plugin, an agent, or an integration — is validated before it is drawn. If it breaks the rules, it is logged (without its values) and the menu simply draws no rows for it rather than crashing or rendering something unsafe.
  • A good payload cannot exceed the caps. A payload from outside is limited to 200 nodes, ids of up to 64 characters matching lower-case letters, digits and : . _ -, labels up to 120 characters, tooltips up to 300, copy text up to 4,000, and at most 20 options on one choice row. Every id in one payload must be unique. A submenu carries items or one widget, never both and never neither, and a submenu may not nest another submenu inside it.
  • Unknown icons draw no icon. An item names an icon from the app's menu icon set; a name the app does not know is simply left out, never a broken image or a crash.
  • Order and hiding are opt-in. Only sections marked customizable take part in a person's saved order and hidden set, so a producer can keep a section fixed if it should always appear as written.

The caps apply to a payload that crosses into the app from outside it. A menu the app itself builds is typed at compile time and is not truncated, so a long list — every project in a move-to fly-out, or every session in a copy-all row — still shows in full.

Last verified 2026-12-04