Skip to content

Thread follow state: rules, TUI, CLI - #61

Merged
cornedor merged 4 commits into
mainfrom
thread-follow
Oct 14, 2026
Merged

cornedor merged 4 commits into
mainfrom
thread-follow

Conversation

@cornedor

@cornedor cornedor commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Closes #42.

  • following: true|false rule condition. Followed threads are cached and kept current by thread_follow_changed / thread_updated. A "not following" is re-asked per trigger: the server auto-follows (on a mention or your own reply) before sending posted, with no event. Checked last, so only posts passing every other condition cost a lookup. rules test --following simulates it.
  • TUI: thread pane title shows · following; palette has Follow/Unfollow thread.
  • CLI: matterbox thread status|follow|unfollow <message-id>.
  • DM threads have no team; the team-scoped routes get any of the user's teams (the server ignores it for membership).

Verified thread status against a servers own-reply thread, foreign thread and DM thread all correct.

Not done: GetUserThreads wrapper (nothing needs the list) and a default keybinding (follow sits in the palette like pin/mute).

🤖 Generated with Claude Code

cornedor and others added 4 commits October 14, 2026 08:44
A followed thread is cached (unfollows arrive as events); a "no" is
re-asked per trigger, since the server auto-follows before `posted`
without announcing it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #42

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cornedor
cornedor merged commit 1f5561c into main Oct 14, 2026
17 checks passed
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.

Add thread follow/unfollow via Mattermost threads API

1 participant