Skip to content

Addons can react to their own earlier posts - #42

Open
robdevops wants to merge 5 commits into
mainfrom
claude/mcp-addons-geoguess
Open

robdevops wants to merge 5 commits into
mainfrom
claude/mcp-addons-geoguess

Conversation

@robdevops

Copy link
Copy Markdown
Owner

A react op can now target one of the addon's own earlier posts in the same chat. It names the post by op ID in post (with chat), instead of using ref. The games use this to react ⏰ to a question with 5 seconds left.

  • Rules: resolved the same way as replyTo, and subject to the same permission, rate and lease rules as other reactions. An unknown post fails the op.
  • Networks: feature.Message.Bot marks the bot's own message. Signal targets the bot's own account; Telegram uses message_id.
  • Schema, docs and tests: updated. go.mod is unchanged.

Generated by Claude Code

A react op may name an earlier post of the addon's in the same chat, by
its op ID, in "post" (with "chat"), instead of a ref: for a chat game's
⏰ on its question with 5 seconds left. It's resolved as replyTo is, and
follows the same permission, rate and lease rules as other reactions. An
unknown post fails the op, without retry.

feature.Message gets Bot, for the bot's own message: Signal reacts with
the bot's own account as the target author, Telegram by message_id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RsqJnxrLp5eK6VJuiCDqCK
The bot serves one sampling request per addon at a time, and a request
the addon cancels keeps its model call running to the end, to be
charged. Until now it also kept the place, so the addon's next request
was refused as busy for up to sampleTimeout (2 minutes): a quiz called
off while it was being written blocked the next one. Now the call runs
on but the addon may ask again at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RsqJnxrLp5eK6VJuiCDqCK
"a model request: no answer" now says why: the error the API put in
its answer (OpenRouter's, for a provider that failed part way), its
finish_reason, no choices, or an unreadable answer. Never the prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RsqJnxrLp5eK6VJuiCDqCK
For EcoBridge (ecobot's features as an addon) and any addon like it:

- announce (addon block): leases made by the addon's direct commands
  don't expire, so it can post an alert days later, within chats.
- silent (post): Telegram's disable_notification; ignored on Signal.
- buttons + onPress (post, edit): an inline keyboard on Telegram; a
  press calls the addon's bot-only onPress tool with {press, post} and
  the presser's context, its text the toast. Posts with buttons are
  remembered 30 days (newest 1000), so old buttons still work.
- keyboard / removeKeyboard (post): Telegram's persistent reply keyboard
  in a DM; a message exactly a label runs that key's command.
- edit op: replaces an earlier post's text, picture and buttons
  (Telegram editMessage*; Signal edits text, or posts a new picture).
- Capability buttons in initialize: true where the network shows them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RsqJnxrLp5eK6VJuiCDqCK
A line chart's point date may now be YYYY-MM-DD HH:MM (or with seconds,
a T, or an offset), so the model can chart hourly or intraday data.
Times are the wall-clock times written, whatever their offset.

- Under 2 days of timed points, the time axis has hour ticks (a step of
  1, 2, 3, 6 or 12 for at most 8), each midnight labelled with its date.
- The high, low and last-value labels give the date and time, or the
  time alone when the chart is one day.
- Charts of dates alone are unchanged, image for image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RsqJnxrLp5eK6VJuiCDqCK
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.

2 participants