Skip to content

v0.8.18

Choose a tag to compare

@github-actions github-actions released this 03 Dec 16:13
· 26 commits to main since this release

Feishu and Lark (飞书) are a channel. A bot whose model fails now waits, tells the people who wait on it, and goes on where it stopped by itself. On Windows, pots admin runs administrator commands without Windows' prompt, Pots brings its own VNC server, and it unlocks the lock screen with the person's PIN. Every request carries Pots' notes on the models signed in, so a bot chooses a child's model by the work.

Added

  • Feishu and Lark channel. One channel type, feishu, for both: they are one platform with one API on two domains, and "domain": "lark" in bot.json picks Lark. Events come over Feishu's long connection, through Feishu's official SDK (@larksuiteoapi/node-sdk 1.77.0), so the computer needs no public address; each event is stored before it is acknowledged, and one that Feishu pushes twice is logged once. The bot gets every message in its groups, its DMs, topics (话题) as threads, quote replies as the message they answer, recalls as deletes, reactions, the bot and people added and removed, group renames, and card clicks and form submissions as interaction events. It sends its Markdown as a rich text post (headings, lists, code, links and tables; each line break kept), with <feishu:@ou_…> as a mention. Each send carries a uuid made from its send ID, so a send again after a crash posts once, within an hour. call reaches any endpoint of Feishu's OpenAPI with the tenant token kept inside; a local path in file or image is uploaded, and messages the bot posts or edits this way are logged as its own. After a restart or a reconnect, Pots reads the history of the groups and DMs, and of up to 20 topics per place that were active in the week before, as Feishu does not push again what came while nobody was connected. On the free plan's monthly API limit, nothing is tried again in a loop. Feishu has no typing indicator. The new feishu-channel skill says how to connect: the bot runs register.mjs, Feishu's own scan-to-create link with the scopes, events and callback already set; the person opens the link, presses Create, and approves the app as their tenant's admin. Tested live in a Lark tenant; not yet in a Feishu (mainland) tenant. The SDK adds about 29 MB to the installed package.
  • pots admin <command> on Windows. Runs a command as administrator without Windows' prompt (UAC) each time, as sudo without a password does on Linux. pots service install, which pots init runs, makes Windows' task "Pots admin", which runs with the highest privileges: Windows asks once, and the person answers Yes. pots admin --setup asks again later, and pots admin --check says whether it works. The command runs in the caller's folder and environment with its words as given, and its output and exit code come back as they come. A gateway that already runs as administrator runs the command itself. On Windows, the bot's prompt names pots admin where it names sudo -n true elsewhere.
  • Pots' own VNC server on Windows. When bot.json has no vnc, desktop pages use UltraVNC 1.8.3.2 (GPL-3.0), which Pots downloads from uvnc.com the first time it is needed and checks against its SHA-256; Pots does not ship it. With pots admin it is a Windows service, which also shows Windows' sign-in screen and prompts; without it, it runs as this user and shows only the desktop. It listens on this computer only, with a password only Pots knows, and runs only while it is used.
  • Windows' lock screen. When Windows has locked its screen, the screen tool's output says so first. With the person's Windows PIN in windows-pin.env in the secrets folder, Pots unlocks the screen before the bot's screen commands, by typing the PIN on the sign-in screen through its own VNC service (which needs pots admin). It locks the screen again once no agent and no desktop page holds it, and when the gateway stops. It types the PIN only into the sign-in screen of its own session, only while it is still locked, and a PIN that did not unlock it is not typed again until the file changes. The PIN goes into no command line, script or log. The desktop-page skill has a new section on Windows' lock screen, and one on driving a Windows desktop (screen scaling, negative coordinates, UI Automation, PowerShell's execution policy, UAC).
  • Pots' notes on the models signed in. Every request of the main agent and of its children carries one line for each signed-in model that Pots has a note on: what it does well and where it stands next to the other makers' models, from its maker, independent tests and its work in Pots, and the subscription or the price it comes with. There are notes for Claude Fable 5.2, Opus 5.5, Sonnet and Haiku 5.5, GPT-6.2 Astra and Sol, GPT-6.1 Terra, GPT-6 Luna, and Gemini 4 Neon, Carbon and Hydrogen, at any provider. Models with no note, or not signed in, are not listed. What the person says about models, in AGENTS.md, comes first. On one computer, 5 bots started 428 children in a week, and only 7 of them had a model other than the main agent's; a skill with the same notes was read before 4 of 112 child starts.
  • "outage" in bot.json. The lines that Pots posts for the bot while its model cannot answer (see below), in the bot's own words, such as in its people's language. A key it does not set keeps the English text. The README lists the keys and their English texts.

Changed

  • A bot whose model fails waits, and goes on by itself. Before, after a network drop, a slow or overloaded provider or a usage limit, the run tried 4 times over at most 22 minutes and then ended: its wake was used up, the wakes that came meanwhile each failed the same way, and nothing woke the bot again. From 2026-11-25 to 12-02, bots stayed silent from 6 minutes to 7 hours this way. Now the run waits and asks its model again, 2, 4, 8 … 256 seconds apart, then every 5 minutes, and goes on where it stopped once the model answers, also across restarts. Messages, timed wakes and child reports that come meanwhile wait behind it, and children wait the same way.
    • A time the provider names (Retry-After, or the reset of a Claude subscription's 429) holds that model until then for every bot, child and judge of the computer, with no request before it; an account's 5-hour and weekly limits hold all the provider's models. One request an hour goes out all the same, in case the time is wrong. A new login, a restart or an answer of the model ends the hold.
    • Limits. With no time named, a run stops after 24 hours without an answer. A request that went out and got no answer in time may cost money, so after 3 of them since the model last answered, the run stops. A refused login, an account with no usage left and a refused request end the run at once, as before.
    • What people see. Pots posts one line for the bot where people wait on it (a DM, a mention, a click, or a judge's wake that it must very likely answer), once the model has failed for a minute, or at once when the provider named a time a minute or more away, for example "I am stuck: my model's usage limit is reached. I will carry on by myself at about 15:00 (GMT+11)." It goes once per outage and place, and never holds the error. When a run stops, a line says so and what happens next. This replaces the one fixed line "I could not work on this: my model did not answer…".
    • Going on by itself. After the 24-hour stop, a refused login or no usage left, the bot goes on where it stopped once a model of its provider answers anywhere in the gateway, or pi's logins change. After the stop for requests that may cost money, the next wake makes one try.
    • What the agent learns. When its model answers after failing for a minute or more, the agent reads a note with that request: from when to when it failed, why, how many requests failed and the last error, which runs stopped, and the lines Pots posted. The journal keeps the note before the answer.
    • pots status shows the wait: since when, why, until when the provider asked, the next try and the last error.
    • A ChatGPT (Codex) usage limit still ends the run, with the line for no usage left; the bot goes on after a new login or when the provider answers again.
    • A new TLA+ model, spec/Outage.tla, checks the lines, the note and the limits, with a crash at any step.
  • What people say about models and command lines. The main agent's prompt said "Which model a person wants for which work is theirs to say", and bots waited for the person instead of choosing. It now says "Keep what a person says about which model or command line does which work in your AGENTS.md." At its first start, a bot also asks, when the computer has a coding agent's command line such as Claude Code or Codex, whether some work should go to it instead of a child. The pages skill, the README and docs/for-agents.md say the same.
  • cloudflared on Windows uses HTTP/2. With QUIC it opened UDP sockets on every address, and Windows' firewall asked on the person's screen whether to let it in, again for each new copy. Over HTTP/2 it only connects out.
  • Windows notes. The README and docs/for-agents.md say to run npm and pots in cmd, or in PowerShell as npm.cmd and pots.cmd, since PowerShell's default policy refuses npm's .ps1 scripts, and that Windows asks once at install. On Windows, the bot's prompt adds that programs can be installed in the system's folders or in the user's own. The launchers Pots writes for Windows' Task Scheduler are UTF-16, so a user folder with characters outside ASCII works.
  • At the upgrade, the prompts of the main agent and of children change, so each bot's prompt cache is written once more. Each bot's log gets the column bot_wakes.waited when the gateway first opens it. On Windows, pots service restart does not make the "Pots admin" task: run pots admin --setup once, and answer Windows' prompt.

What's Changed

  • Windows: pots admin, Pots' own VNC server, and unlocking the lock screen with the person's PIN by @Crokily in #111
  • Feishu and Lark channel by @Crokily in #113
  • A bot whose model fails waits and carries on by itself (replaces #82) by @Crokily in #114
  • Docs: Feishu and Lark in step with the other channels by @Crokily in #115
  • Pots' notes on the models signed in: the bot chooses a child's model by the work and by the makers signed in by @Crokily in #112
  • Text in step before 0.8.18: README rows and the note on runs that ended by @Crokily in #117

Full Changelog: v0.8.17...v0.8.18