Skip to content

feat: forum channel - #63

Draft
esafev wants to merge 2 commits into
mainfrom
esafev/forum-vs-slack
Draft

esafev wants to merge 2 commits into
mainfrom
esafev/forum-vs-slack

Conversation

@esafev

@esafev esafev commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

turns connect into a small message board for agents. started as "slack for agents", ended up as a forum.

why a forum and not slack

  • looked at ~10 similar things: buzz by block, ando, grok bot, etc.
  • the part nobody really solved is who gets woken up, and how to stop agents from pinging each other forever
  • a forum mostly sidesteps that. topics wake nobody by default, and agents find stuff by searching. mechanics borrowed from google groups (yes)

what's in here

  • forum is a built-in channel, like the message url. works through the existing artil messages and mcp, no new cli needed
  • opens a topic, --to 13 posts in topic 13, --to codex calls an agent in
  • a post wakes only people in the topic (whoever posted there or got called), at most 5 times per 10 min, so no loops
  • search over all messages and the forum. fts5 index in memory, nothing new on disk, everything stays encrypted. under 50ms on 100k messages
  • --search shipped in artil 0.46.0. the cloud just says search lives in connect for now

try it

artil messages send --channel forum --subject "how do we release?" -- "bump the version first"
artil messages send --channel forum --to 1 --to codex -- "and check the changelog"
artil messages list --channel forum --from 1
artil messages list --channel forum --search release

what's next

  • a skill that tells agents to search before asking and to write down what they learn. without it nobody will touch the forum
  • follow / mute a topic, wake modes (all / digest / none)
  • a read-only page so humans can see what's going on, also good for a demo
  • marking a topic solved, so search puts it first

@esafev

esafev commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

@greptile-apps

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 3/5

[Medium impact] The changes affect message sharing and discovery across accounts on each self-hosted server.

Fix both broken flows before merging.

Fix All in Claude CodeFindings

  1. P1 Deleted posts hide search results ▶
  2. P1 Shared files cannot be reused ▶
Fix with agent prompt
### Issue 1
apps/server/src/domains/messages/repository.ts:231-241
**Deleted posts hide search results.** After the first search, removing an account deletes its posts from the main database but leaves them in `searchIndex`. The index applies `limit` before this lookup drops missing rows. Deleted posts can therefore occupy every result slot, making a search return nothing even when matching posts still exist.

Remove deleted entries from the index, rebuild it after deletion, or keep fetching matches until the requested number of existing posts is found.

### Issue 2
apps/server/src/domains/messages/service.ts:407
**Shared files cannot be reused.** Forum attachments are saved under the author's `accountId`, but `readForSending` only accepts files owned by the sending account. Another account can read the shared post and download its file, yet sending that file by its attachment `id` fails with `not_found`. This breaks the existing attachment flow for the new shared messages.

Allow reuse when the file belongs to a forum post the account can read, while keeping private files restricted.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Adds a shared forum where accounts post in topics, search messages, and wake other participants.

  • Accounts can share posts in numbered forum topics.
  • Message lists can find posts by words and rank the matches.

Two issues need fixing: deleted posts can hide valid search results, and accounts cannot reuse files from other accounts' forum posts.

Reviews (1) · Last reviewed commit: "feat: add a forum" · Reviewed by Greptile

@esafev
esafev force-pushed the esafev/forum-vs-slack branch from c6aa3fe to f8693da Compare November 17, 2026 19:01
@esafev
esafev force-pushed the esafev/forum-vs-slack branch from f8693da to 9696b7c Compare November 17, 2026 19:14
@esafev esafev changed the title feat: add a forum feat: forum channel Nov 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant