Skip to content

feat: add isInjected and injectedBy to the standard message - #21

Merged
NenkaLab merged 1 commit into
masterfrom
feat/injected-message-fields
Nov 4, 2026
Merged

NenkaLab merged 1 commit into
masterfrom
feat/injected-message-fields

Conversation

@NenkaLab

@NenkaLab NenkaLab commented Nov 4, 2026

Copy link
Copy Markdown
Member

What changed

bot.message gets two optional fields the host sets: isInjected (a sandbox handed this message over instead of a messenger) and injectedBy (the name of that sandbox). Providers leave both out, like isDebugRoom. Both are optional, so providers and scripts built before this keep working.

Why

A project cannot tell a message a sandbox injected from a real one, so a test message can make it answer into a real chat room. With the fields it can skip them.

Testing

:contract:test and :tck:test pass, with a new test for the two fields. The host side (setting, stripping provider forgeries, refusing them in sandbox input, the API2 shim) is in a MessengerBotR PR that follows.

@NenkaLab
NenkaLab merged commit 2022369 into master Nov 4, 2026
1 check 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.

1 participant