Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Draw in the interface with a mod changedplugins/mods/interface

Nearest release: v2.1.307, published 3 hours 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 22 Oct 2026 00:13 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 22 Oct 2026 00:37 UTC.

Upstream edited
Recorded here
Lines+3added
Lines−4removed
From line 591 where the diff opens
First seen 1 Oct 2026 this site's first read of the page
Recorded edits21to this page, all time

The whole hunk

from line 591, old and new numbered
/
lines
from line 591
591591 key: 'new-note',
592592 label: 'Note',
593593 placeholder: 'Type a note and press Enter',
594 // Draw the field empty each time, which clears it after a submit
594 // The text the field starts with
595595 value: '',
596596 submitLabel: 'add',
597597 autoFocus: true,
from line 635
635635* **Add a note**: type a line and press Enter. The line appears as a new row, and the field empties.
636636* **Delete a note**: press Tab until the note's `x` button has the focus, then press Enter. The `x` is the button's label and not a hotkey, so typing the letter doesn't press it.
637637 
638Each change follows the same render cycle as `hello-tabs`: the callback changes `notes`, calls `redraw`, and saves the list to `$.store`.
638Each change follows the same render cycle as `hello-tabs`: the callback changes `notes`, calls `redraw`, and saves the list to `$.store`. If your hook draws the pane again while the user is typing a note, the field keeps their text as long as the hook passes the same `value` each time. To replace their text with your own, pass a different `value`.
639639 
640The field empties after each submit because of its `value` prop. `value` is the text the field holds when it's drawn, and the user's typing replaces it until your hook draws the field again. The example always draws the field with `''`.
641 
642640The example saves the notes and doesn't load them. To bring them back in the next session, read them in a `session.start` hook, the way `hello-tabs` reads `count`.
643641 
644642These props make up the field's line, `Note: Type a note and press Enter ⏎ add`:
from line 645
647645| :- | :- | :- |
648646| `label` | `Note` | The text before the field. The terminal draws `: ` after it. |
649647| `placeholder` | `Type a note and press Enter` | Dim text that shows while the field is empty |
648| `value` | `''` | The text the field starts with. It's empty here, so the placeholder shows. |
650649| `submitLabel` | `add` | The word after `⏎` that says what Enter does |
651650 
652651Submitting an `Input` doesn't start a turn unless your callback calls [`$.prompt.submit`](/docs/en/plugins/mods/api#start-a-turn-from-a-background-job).
Feedback