Skip to content

Keep join links on the person when their AI agent edits - #182

Merged
markusressel merged 1 commit into
masterfrom
agents-in-wiki
Nov 14, 2026
Merged

markusressel merged 1 commit into
masterfrom
agents-in-wiki

Conversation

@markusressel

Copy link
Copy Markdown
Member

Backends with MkDocsEditor-Backend #89, #92 and #93 let AI agents edit with an app token. Their presence carries agent: {tokenId, name}.

  • Bug: joinFollowInstance picked the sender's peer with the newest lastActiveAt. While an agent of the sender edits, that is the agent, which has no cursor or viewport. Peers and ghosts with an agent are now skipped (same as latestInstanceOf in MkDocsEditor-Web#118). Regression test in SenderPositionTest.
  • Presence list: an agent shows as a robot in its person's color, labelled " (agent of )", and has no follow entry.
  • Protocol: agent is parsed on presence, snapshot peers, ghosts, ActorInfo and actor messages, and passed on as RemotePeer.agent / RemoteGhost.agent.

Not done: the "via " author labels and the history line. The app shows authorship only as colors keyed by username, and it has no history view, so neither has anywhere to go.

🤖 Generated with Claude Code

An agent of the sender has the newest lastActiveAt while it edits, but no
cursor or viewport, so a join link followed it. Agents now come through
presence, ghosts and actors, show as a robot in the person's color, and
can't be followed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@markusressel
markusressel merged commit 26b8603 into master Nov 14, 2026
3 checks passed
@markusressel
markusressel deleted the agents-in-wiki branch November 14, 2026 02:41
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