Commit faf7888
committed
fix(webapp): reject create on closed sessions with 409
When the upsert path returns a previously-closed row, return 409 before
ensureRunForSession fires. Otherwise we'd trigger a fresh run on a
closed session that can't receive .in input (append handler rejects
writes to closed sessions), wasting compute on a run that exits the
moment it tries to read. close is one-way; callers must use a different
externalId to start a new session.1 parent cf67175 commit faf7888
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
167 | 180 | | |
168 | 181 | | |
169 | 182 | | |
| |||
0 commit comments