Repository navigation
Commit 54626e4
committed
feat: allow up to 20 guidance prompts to wait for the next step
10 was a conservative guess rather than a measured limit. The queue drains at the next
request boundary, so this only caps how many instructions can pile up faster than one
step of the turn (a long tool run or a long streaming answer).
Raising it to 20 keeps that burst covered while still bounding the cost: every queued
prompt travels with each remaining request of the turn, so an unbounded queue could
inflate the context (and any attached images) without limit.
- the queue is not dropped or reordered; it still drains in FIFO order before every
LLM call of the turn
- when the limit is reached the prompt is refused but stays in the input box, so
nothing the user typed is lost
Refs lessweb#113, lessweb#1171 parent fa47951 commit 54626e4
3 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
379 | 386 | | |
380 | 387 | | |
381 | 388 | | |
| |||
0 commit comments