Repository navigation
v0.8.14
The wake judge sees a place as the people in it see it: its messages in order, threads, replies, reactions and edits, and who is a bot. A reply in several messages arrives in order, and a mention written with an extra @ still mentions the person. The log keeps replies, thread names and place descriptions, and Slack bold next to Chinese punctuation, huddles and Teams quotes read right. Pots can use model providers from pi extensions.
Changed
- The judge sees the place as people see it. The judge (a classifier such as Jev, or the bot's own model) got the place's last 20 messages in one flat list, each with the address of its thread, and the new events with their text. Now it gets what a person in the chat app sees, and nothing that code guessed: the time now; the place's name, kind and description; and its messages in time order. Each message has an id (m1, m2, …), its local time to the second, its author and whether that is the bot itself, another bot or a person, and where it is: in the place, or in a thread, by the id of the thread's first message, with the thread's name where it has one and whether a reply was also sent to the place. It also has the message it answers where the platform marks a reply, its text, the people it mentions, its files (name and type), its reactions now with who put them there, and whether it was edited. The new messages are marked, and the new events are listed by what happened, who, when and the id of the message they are about, or, for one about no message, such as a closed topic, the thread it is in. A deleted message is left out, as people no longer see it, except the first message of a thread and a message a reply answers, which show as deleted, with no author or text. Besides the place's last 20 messages, the judge gets the first message of each thread they are in, up to 20 earlier messages of a new message's thread, and each message a reply answers, also when they are older. Both kinds of judge get the same. Its "respond" question now adds that a message that replies to another team member is for that team member to answer, unless it also asks the bot. On 59 real judgments of five bots that a person labelled, Jev was wrong 8 times with the new input and question, and 14 times with the new input and the old question; on the 42 of them it had judged before, the old input was wrong 10 to 12 times, the new one 7.
- A Telegram reply outside a forum topic is no thread. Telegram has threads only as forum topics; elsewhere a reply shows the message it answers. The log kept that message as the reply's thread, so the gateway could not tell it from a real thread. Now such a reply has no thread, and
gw_messages.reply_tonames the message it answers. In a topic, the thread is the topic, as before. - The wake gives the message a reply answers, where the platform marks a reply (Discord, Telegram, Teams chats), with its author and text, and the name of a thread that has one. What it called the start of a thread is now the thread's first message: on Slack and Teams no one starts a thread, people reply under a message. The log's description in the bot's prompt says the same.
- At the upgrade, each bot's message log gets the new columns
gw_messages.reply_toandgw_messages.also_in_place,gw_people.botandgw_places.description, and the tablegw_threads, when the gateway first opens it; messages logged before keep what they had. The prompts of the main agent and of children change, so each bot's prompt cache is written once more after the upgrade.
Added
- The log keeps more of what people see.
gw_messages.reply_to: the message a reply answers (Discord, Telegram, Teams chats).gw_messages.also_in_place: a reply in a thread that the place shows too (Slack's "Also send to channel").gw_people.bot: whether the platform says the person is a bot or an app.gw_places.description: what the place is for (Slack: the channel's description, or else its topic; Discord: the channel's topic).gw_threads: the names of threads that have one, a Discord thread or a Telegram topic, also after a rename. A log from before gets the new columns when it opens. - Model providers from pi extensions, for Pots alone.
"extensions"in~/.pots/settings.jsonlists pi extensions, as paths relative to~/.potsor package sources, whose model providers every bot can use, such as pi-claude-code'sclaude-codefor a Claude subscription through the Claude Code CLI. The extensions pi itself has installed are never loaded. Whensettings.jsoncannot be read, Pots starts without them and logs why. See "Providers from pi extensions" in the README.
Fixed
- A Telegram topic's first message is a notice. The service message that creates a forum topic was logged as a message of the topic's creator, with the topic's name as its text, so it read as words that person wrote. It is now a system event,
created the topic "<name>", and the name is the thread's. - Slack: bold next to Chinese, Japanese or Korean punctuation stays bold. Slack shows
*日立列出的问题:*车队in bold; the log had\*\*日立列出的问题:\*\*车队, as CommonMark reads those asterisks as text. The Slack channel now reads and writes Markdown with the CJK rules of remark-cjk-friendly. - Slack: a huddle's card is in words. The log had Slack's huddle message with no text. It now says who started the huddle, who was in it, and how long it lasted once it ended, also when Slack changes the card without a new edit time.
- Teams: a reply with a quote answers the quoted message. In a chat, the quote of a reply was part of the reply's text. It is now left out of the text, and the reply answers the quoted message (
reply_to), from an event and from Microsoft Graph. - A reply in several messages arrives in order. Messages the bot sends to one place now go out in the order it sent them, each once the one before it is posted or has failed; sends to other places do not wait. A bot had sent a three-part answer in one step, and Slack showed the third part above the first. Each later message of such a burst appears about one platform round trip later. The main agent's prompt no longer asks it to send such messages one after another.
- A mention written with an extra @ still mentions the person. On Slack, Discord, Telegram and Teams, an address written as
<@slack:@U0123>instead of<slack:@U0123>now becomes the mention, and on Slack, Discord and Telegram a place address written so becomes the link to the place, as before only the exact form did. A bot had written its mentions with an extra @, so they went out as raw text and the person was not woken.
What's Changed
- A mention written with an extra @ still mentions the person by @Crokily in #98
- Messages to one place go out in the order the bot sent them by @Crokily in #99
- Model providers from pi extensions listed in POTS_HOME/settings.json by @kixi42bot in #100
- AGENTS.md: the principles every design, prompt and change follows by @Crokily in #102
- The judge sees the place as people see it by @Crokily in #101
New Contributors
- @kixi42bot made their first contribution in #100
Full Changelog: v0.8.13...v0.8.14