Commit ea9b024
committed
openapi: keep the file-emit hint on the fast serve path
The content-addressed serve path rebuilds a tool def from the persisted
binding instead of re-parsing the spec. The re-parse path (kept as the
fallback) appends the ToolFile emit contract to a file-returning tool's
description at the projection step; the fast path bypassed that step and
served the bare description, so a file-returning operation lost the
contract whenever it was served from the binding (the common case once a
spec is persisted).
Apply the hint at the same projection step in the fast path, sourced from
the binding's response fileHint (already inspected for the output schema),
so a file tool carries the contract identically whether served fast or via
the fallback. No persist-path or schema change: existing rows pick it up on
the next list. Covered by the tool-descriptions e2e scenario.1 parent 408e9da commit ea9b024
1 file changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
294 | 297 | | |
295 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
296 | 303 | | |
297 | 304 | | |
298 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
299 | 309 | | |
300 | 310 | | |
301 | 311 | | |
302 | 312 | | |
303 | 313 | | |
304 | 314 | | |
305 | 315 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
313 | 323 | | |
314 | 324 | | |
315 | 325 | | |
| |||
0 commit comments