Skip to content

omfp v0.4.6

Choose a tag to compare

@github-actions github-actions released this 27 Nov 16:48
· 10 commits to master since this release
v0.4.6
24a2664

Added

  • omfp desktop --workspace <name> --view <id> opens a window on a workspace's new thread with the view you name, on
    the local daemon or on another one with --connect: a launcher or a key of your window manager can open, say, a
    workspace's browser view straight away. --view also works with --thread, and --prompt <text> writes the new
    thread's first message without sending it. The thread is created only when you send that message. A web page
    address takes the same #workspace=, #view= and #prompt= parameters.
  • Right-click menus of omfp's own on messages, files and threads, instead of the browser's: a message offers Fork from
    here and Copy, a file Open and Copy path (also :copy-path), a thread Archive or Unarchive, Copy conversation and
    Export, acting on the thread clicked rather than the selected one. Shift-F10, the menu key or :menu opens the
    menu of the focused item, and on a touch screen a finger resting on it for half a second does. Shift-right-click,
    text fields and selected text keep the browser's menu. Init files (omfp.contextMenu({ on, items })) and widgets
    (useContextMenu) add items from commands already registered, each run with the clicked message, file or thread as
    its argument; web pages keep the engine's menu.
  • Web pages in the desktop app: omfp:web shows its page as a native web view instead of a frame, so sites that
    refuse to be framed (Google's sign-in, YouTube's pages, GitHub) show and stay signed in across restarts. While a
    dialog, the : line or another panel covers it, the page hides (behind a still picture of it on Linux). The macOS
    app is not tested yet. The web app and phones keep the frame.
  • Widgets can build their own browser: the kit's WebView is a page alone, with onNavigate, onLoad and a handle
    to reload it and go back and forward. In the desktop app a widget can also run scripts in the page, like a user
    script, and the page can send the widget data with window.omfp.post. Widgets can send the page data too (the
    handle's post, heard with window.omfp.listen in the page) and hand it the keyboard and take it back (focus,
    blur, onFocusChange); a dialog, the : line or a panel covering the page takes the keyboard back for omfp.
  • A transcript scrolled up well away from its end shows a down-arrow button over its bottom corner: click or tap it
    (or press Enter on it) to jump to the latest message and follow the reply again. It is touch-sized on phones too.
  • Links between threads: a reply can link another thread as [title](omfp://thread/<id>), and agents are told to
    link the threads they mention (one they created, waited on or listed). A click selects that thread in the window (a
    tap on a phone shows its chat); a middle click or a click with Ctrl, Cmd or Shift opens a new window on it, in the
    desktop app too. A link written as the bare id shows the thread's current title and state; a link to a thread that
    does not exist stays plain text. Widgets get the same links with ThreadLink from omfp/sdk.
  • Archived threads are deleted automatically once they have been archived for a week, as a manual delete does; the
    daemon checks at startup and every hour and logs each thread it deletes. Unarchiving a thread restarts its count, and
    a thread whose agent's background commands still run waits until they end. Change the time with [daemon] delete_archived_after (30m, 12h, 30d, 2w, …), --delete-archived-after or :set delete_archived_after=…
    from a window, live; never keeps archived threads. On upgrade, the first check deletes every thread archived
    more than a week ago: set delete_archived_after = "never" in config.toml first to keep them.
  • While you scroll a conversation, a minimap shows beside the scrollbar: the whole thread in miniature, with its real
    words, code blocks, headings and tool cards at an eighth of their size (scrolling along on long threads), your
    messages and failures tinted, the open search's matches and the
    focused message marked, and a box where you are. Click or drag on it to jump there; it fades out a second after you
    stop scrolling. Only your own scrolling shows it (wheel, touch, keys, navigation commands, the scrollbar): sending a
    message, the reply moving the view and the jump to the latest message do not. Phones do not show it.

Changed

  • omfp:web shows the page alone, without the toolbar (URL, Reload, Open in browser); the kit's WebFrame keeps it.
  • The NORMAL mode is now two explicit modes, shown in the mode line: THREADS (nothing focused, or the left
    column) and VIEW (the focus in the view). In Threads mode j/k, gg/G and Ctrl-d/Ctrl-u switch threads
    even with the column collapsed or hidden, and dd, za and the Alt-arrow moves act on the selected thread when
    no row is focused; v or Enter enters the view where you left it. In View mode the same keys go to the focused
    widget (the transcript's messages), Ctrl-w h/j/k/l move between panes, g t/g T between tabs, and Esc goes
    back to Threads mode. Esc in the composer now leaves for View mode. Migration: [keymap] strings and normal
    bindings of .omfp/keymap.json and init files still apply in both modes (and replace both modes' defaults of their
    keys); bind j to nav.next in only one mode with the new [keymap.threads] / [keymap.view] tables or
    "mode": "threads" / "view".
  • omfp now runs omp 19.2.0 (was 19.1.0).
  • An agent's question form no longer blocks Submit on a broken rule (required, pattern, a number range, a length,
    an email or URL shape), as in omp 19.2: an answer breaking one is flagged under its field as you type and sent
    anyway, and an unanswered required question is sent unanswered, so you can reply to the question instead of
    satisfying it. Submit still holds back an answer omp would refuse, such as an Other answer naming a disabled option.
  • Abort while messages are queued keeps a running command going as a background job (omp 19.2); its card shows the
    job and Stop ends it. Without queued messages Abort still ends it with the turn.
  • Middle-click a thread in the left list now archives it, as its × does, instead of deleting it; on an archived
    thread it still deletes.
  • Live voice acts as a relay between you and the thread's agent: it forwards everything but small talk to the agent,
    in your own words and also when in doubt, instead of answering, refusing or claiming work itself, and may name the
    agent when it reports back. It replaces omp's live prompt, which presented the voice and the agent as one assistant.
  • The agent knows when a request comes from live voice: each one reaches it marked as relayed by the voice model, with
    the transcript of the voice conversation so far, so it sees what you actually said and not only the voice's wording.
  • Live voice knows who it is and where it runs: omfp's voice for your agent, the thread's workspace, its repositories
    and the agent's model, also on a new thread; before, it introduced itself as ChatGPT running in the cloud.
  • Live voice now actually knows its role and where it runs in browsers, on phones and in the macOS app: the realtime
    service ignores the instructions given when the call starts, so the window sends omfp's prompt and the workspace
    facts as silent context once the call connects. Before, the voice said it was ChatGPT. The thread's conversation is
    not sent that way: the voice took its old requests for new ones and started answering and forwarding them before you
    spoke. The Linux desktop app, whose webview has no WebRTC, still lacks this.
  • Agents know how language servers work in a thread: omp starts them per repository from the daemon's PATH, never
    from a dev shell. Without one an agent falls back to text search quietly instead of retrying lsp or asking you to
    install a server; ask it why lsp finds none and it explains how to get one (installed where the daemon sees it,
    or declared in the workspace's .omp/lsp.json).
  • Archived threads in the left column are listed most recently archived first, so the thread you just archived is at
    the top of "Archived (N)".
  • An agent's omfp_call to a read-only method of one workspace (jobs.list, jobs.runs, workspaces.mcp_servers,
    workspaces.status, workspaces.read_file, …) without workspaceId now reads its own workspace instead of failing;
    methods that change something still require it, and their error names the agent's workspace id (#318).

Fixed

  • Live voice speaks the agent's answer as soon as the agent ends its turn, also while subagents or background jobs are
    still running; before, the voice stayed on "working" until the last of them finished (#276, fixed in omp 19.2.0).
  • A terminal an agent shows in a card of the chat keeps its size; before, it grew taller without end.
  • A thread whose omp dies mid-turn is marked interrupted with Resume, as after a daemon restart: when omp crashes or is
    killed for lack of memory, and when it dies together with the daemon (a signal to the whole process group, a session
    logout), which before left the thread looking idle. Resume tells the agent whether a crash or a daemon restart cut
    its turn (#317).
  • Agents are told that their working directory is the workspace folder, not a repository, and to commit with
    commit.draft(repo=…) naming the repository; before, their first commit in a thread failed and was retried.
  • Typing in the composer on an Android phone gets the keyboard's word suggestions and autocorrect; before, the
    composer told the keyboard to suggest nothing (#352).
  • omfp daemon started while another daemon runs for the same data directory no longer exits at once, which made
    omfp.service (or any supervisor) restart it again and again: it logs to daemon.log why it cannot start, naming
    the running daemon's pid and address, waits, and starts as soon as that daemon exits. --no-wait keeps the old exit
    for scripts. omfp desktop now waits for a daemon that is still starting instead of starting a second one, and the
    daemon it starts exits rather than waits when it loses that race (#348).