Test a mod changedplugins/mods/test
Nearest release: v2.1.325, published an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 13 Nov 2026 21:39 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 13 Nov 2026 22:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
135
where the diff opens
First seen
1 Oct 2026
this site's first read of the page
Recorded edits14to this page, all time
The whole hunk
from line 135, old and new numbered
/
from line 135
135135 on('ui.render', () => ({ type: 'Text', props: {}, children: ['drawn by Claude Code'] }))
136136 ```
137137
138 With the stub registered, the mount succeeds, and `ui.find({ type: 'Text' })` returns that element whenever your hook returned `next(e)`.
138 With the stub registered, the mount succeeds, and `ui.find({ type: 'Text' })` returns that element whenever your hook returned `next(e)`. On v2.1.323 or later, for the band, pass your mod's name as the second argument to `on`, as in `{ plugin: 'my-mod' }`. Without it, the stub doesn't answer your `next(e)`.
139139
140140* **A stub for `turn.step` is an async generator**, and the test reads the stream to its end to get the result:
141141
from line 188
188188| `$.session.id`, `$.agent.list` | `() => ({ value: 'abc123' })`, `() => ({ value: [] })` |
189189| `session.send` | `() => ({ isDelivered: true })`. `e.to` arrives as a string even when your mod passed `{ sessionId }`. |
190190| `session.receive` | `($, e) => ({ text: e.text })`. Fire it with `$.session.receive({ origin: { kind: 'peer-send-message' }, text })`. |
191| `ui.render` | `() => ({ type: 'Text', props: {}, children: ['...'] })` |
191| `ui.render` | `() => ({ type: 'Text', props: {}, children: ['...'] })`. For the band, see the matcher in [Follow the test kit's rules](#follow-the-test-kit’s-rules). |
192192
193193### Check a result with `expect`
194194
No line in this hunk matches that.