Commit b89142a
committed
fix: consume prompt on first poll read to prevent duplicate dispatch
The GET endpoint now clears the prompt from the session after the first
read. Subsequent polls see status "picked" but no prompt, so even if
multiple fetches are in flight only the first one gets the prompt to
send to the agent.1 parent 0fa0670 commit b89142a
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
0 commit comments