Commit 0eb932f
committed
fix(chat,sdk): drop dead claim-kind docs and quiet the drain on known kinds
Removes a JSDoc block and a `{@link}` reference to a claim-kinds helper that
is not part of this change, which also left `chat.createStopSignal` carrying
two doc comments.
The drain also warned on every record it discarded, including a stop that the
stop facade had already handled: all handlers are invoked for a record
regardless of whether an earlier one consumed it, so a stop with an active
stop signal is both aborted and drained. A known kind with no active consumer
is an expected state, so the warning is now limited to kinds this SDK version
does not recognise, which is the case that indicates a newer server.
Also corrects the docs and changeset, which claimed `next()` returning
`undefined` always means the mailbox is idle. A control record that does have
its own consumer can sit at the head while `next()` times out.1 parent 89bcf85 commit 0eb932f
3 files changed
Lines changed: 22 additions & 17 deletions
File tree
- .changeset
- docs/ai-chat
- packages/trigger-sdk/src/v3
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
274 | 277 | | |
275 | 278 | | |
276 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1920 | 1920 | | |
1921 | 1921 | | |
1922 | 1922 | | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
1923 | 1936 | | |
1924 | 1937 | | |
1925 | 1938 | | |
| |||
1957 | 1970 | | |
1958 | 1971 | | |
1959 | 1972 | | |
1960 | | - | |
1961 | | - | |
1962 | | - | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
1963 | 1976 | | |
1964 | 1977 | | |
1965 | 1978 | | |
| |||
1987 | 2000 | | |
1988 | 2001 | | |
1989 | 2002 | | |
1990 | | - | |
1991 | | - | |
1992 | | - | |
1993 | | - | |
1994 | | - | |
1995 | | - | |
1996 | | - | |
1997 | | - | |
1998 | | - | |
1999 | | - | |
2000 | 2003 | | |
2001 | 2004 | | |
2002 | 2005 | | |
| |||
10861 | 10864 | | |
10862 | 10865 | | |
10863 | 10866 | | |
10864 | | - | |
10865 | 10867 | | |
10866 | 10868 | | |
10867 | 10869 | | |
| |||
0 commit comments