fix: resolve retry/resume issues + code cleanup - #712
Conversation
|
|
||
| // AO surfaces a blind tool's schema on first call as a status:"error" retry | ||
| // step, not a real failure — see docs/chat-ao-component.md#tool-call-activity. | ||
| const DEFERRED_SCHEMA_RESULT_PREFIX = 'Loaded schema for '; |
There was a problem hiding this comment.
we're keying retry-vs-error off a prose prefix from the backend. that breaks silently the day AO changes the wording. is there really no structured signal (a status/error_type field) we can gate on instead? at minimum worth a comment on the AO side that this string is now a contract.
There was a problem hiding this comment.
This is just in the interim until we figure out what exactly is causing the issue. And in the end all this does on the client side is swap out the label to not show ERROR explicitly - all communication stays the same and responses and still intact when expanded
AO does the retry itself, not on demand by the UI - our changes are purely cosmetic
There was a problem hiding this comment.
Maybe we can avoid status in the tool call altogether so we can sidestep this whole concern atleast from client perspective. Coworker does something similar - it has the same issues, just not very visible to the user. For this I would like to discuss with Kilian, so might the current solution make sense in the interim? Wdyt?
Uh oh!
There was an error while loading. Please reload this page.