Repository navigation
Conversation
rusackas
force-pushed
the
session-ping-collaborators
branch
from
September 3, 2026 16:38
b1d76cb to
8d3e66f
Compare
Adds a Slack-like "ping": a human-to-human note in the conversation stream that never enters the agent's context and never triggers a run. - core: new `mention` message type. - daemon: `POST /sessions/:id/ping` writes a `mention` message through the messages service (same RBAC as prompting), never creates a task, and the `agor_messages_list` MCP tool excludes mentions so the agent cannot read them back. - client: `sessions.ping()` helper. - ui: a distinct Ping button next to Send in the composer, `@` autocomplete reports which users were mentioned, and pings render as a note rather than agent output. Ported onto the current composer footer (mobile sizing, touch targets) and the DirectoryUser-based message and mention types. Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
rusackas
force-pushed
the
session-ping-collaborators
branch
from
November 25, 2026 04:51
8d3e66f to
ea6e96e
Compare
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
`sessions/:id/ping` is an RPC route like `sessions/:id/prompt`: its durable effect reaches clients as `messages.created` through the message service, so the route itself declares `audience: 'none'`. Without the declaration the realtime-publish-policy source scan flagged the new route. Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Slack-like "ping" — bring a collaborator's attention to something inside a session without prompting the agent. A ping is a human-to-human note: it shows up in the conversation stream and is visible to session viewers, but it never enters the agent's context and never triggers a run.
Design decision (why not the
@-prefix heuristic): the composer's@is already an overloaded autocomplete trigger for files/users/KB references whose results do go to the agent (e.g.@file.ts explain this). Inferring "this is a ping, not a prompt" from a leading@would collide with that and be fragile. Instead, intent is explicit via a distinct Ping button next to Send in the composer's action bar. It reuses the existing@-user autocomplete to pick who to mention.What's in scope
mentionMessageType(packages/core/src/types/message.ts), stored via the existing messages pipeline. Mentioned user ids + author live inmessage.metadata(mirrorsBoardComment.mentions). No DB migration needed — theenumoption on a text column is TS-level only (percontext/guides/creating-database-migrations.md).POST /sessions/:id/ping(apps/agor-daemon/src/register-routes.ts) — a sibling to/sessions/:id/promptthat writes the message via the same messages-service RBAC hooks, but never creates/queues a Task and never spawns the executor. Since none of the agent executors (Claude/Codex/Gemini/Copilot) read conversation context from Agor's message table — they resume from their own native session files — never creating a Task is sufficient to structurally guarantee a ping can't reach the agent.agor_messages_list(the agent-facing MCP tool), closing the one remaining path an agent could otherwise read a ping back through.SessionFooter, wired throughAppActionsContext→client.sessions.ping(). Tracks@mentionedusers via a newonMentionSelectcallback onAutocompleteTextarea(also fixes a latent bug where multi-word mention names weren't quoted).AutocompleteTextarea.Explicitly out of scope (follow-ups)
openDmByEmail/sendSlackMessage). Feasible, left for a fast-follow.Test plan
pnpm typecheckacross@agor/core,@agor/daemon,agor-ui,@agor-live/clientbiome checkclean on all changed filesagor_messages_listunconditionally excludesmentionmessages;AutocompleteTextareaquotes multi-word mentions and firesonMentionSelect🤖 Generated with Claude Code