Commit 0c8eb77
docs(options-load): clarify that [] short-circuits handlers (upstream parity)
Docstring said "first non-empty result wins" but the code (and upstream
TS) actually short-circuits on any non-None result — including []. A
handler returning [] is an explicit "I handled this action, show no
options", and blocks catch-all handlers by design. Matches upstream
chat.ts:920-923 where if(options) is truthy for [].
No behavior change; docstring + PR body wording only.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6e96891 commit 0c8eb77
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
959 | | - | |
960 | | - | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
961 | 965 | | |
962 | 966 | | |
963 | 967 | | |
| |||
0 commit comments