Repository navigation
Commit 8a4139c
fix(sequentialthinking): set readOnlyHint/idempotentHint to false
Every sequentialthinking call appends to the server's in-memory
thoughtHistory (and branches) and returns a growing
thoughtHistoryLength, so advertising readOnlyHint and idempotentHint as
true was wrong: a client may skip a confirmation, or retry a call,
on the strength of those hints. Set both to false, explicitly, with a
comment saying why. destructiveHint and openWorldHint stay false: the
tool only appends, and touches nothing outside the process.
The values stay explicit rather than being dropped to the spec
defaults: AGENTS.md asks for the hints to be set on every tool, and an
explicit false reads as a decision rather than an omission.
Flip the tools-list pinning test to the corrected annotations and drop
its KNOWN BUG #4721 marker. Add a patch changeset.
Ported from #4722 (against main), rewritten by hand because the
Prettier reformat on v2/main keeps it from applying cleanly. The
regression assertion lives in the existing tools-list suite instead of
input-schema.test.ts.
Fixes #4721
Co-authored-by: Jack11111eee <Jack11111eee@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: cliffhall <cliff@futurescale.com>1 parent 571e2b3 commit 8a4139c
3 files changed
Lines changed: 14 additions & 8 deletions
File tree
- .changeset
- src/sequentialthinking
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
60 | 59 | | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | | - | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | | - | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
0 commit comments