You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working with Cursor agent CLI over in T3Code, I realized that Cursor is doing the following:
Theexactchaininsidecursor-agent,allin2996.index.js:
// 1. the model run throws (your case: upstream HTTP/2 CANCEL)catch(e){
...
yieldthis.sendAgentMessageChunk(`\n\nError: ${String(e)}`)// CLI writes the text}// 2. which wraps it as ordinary assistant prosesendAgentMessageChunk(e){yieldthis.sendSessionUpdate({sessionUpdate: "agent_message_chunk",content: {type: "text",text: e}})}// 3. which goes out as a normal session/update notification on stdoutsendSessionUpdate(e){yieldthis.connection.sessionUpdate({sessionId: this.sessionId,update: e})}
I can see a situation where a given Agent wants to bubble up some temporal failures where they can recover, so it is not technically a StopReason per se.
So, should a given reserved key under _meta or extension to the agent_message_chunk be done for clients to understand a little bit better the "semantic" meaning of a given message? In this case, be able to display a different message based on such "exception" happening without having to rely on parsing the content.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Working with Cursor
agentCLI over in T3Code, I realized that Cursor is doing the following:I can see a situation where a given Agent wants to bubble up some temporal failures where they can recover, so it is not technically a
StopReasonper se.So, should a given reserved key under
_metaor extension to theagent_message_chunkbe done for clients to understand a little bit better the "semantic" meaning of a given message? In this case, be able to display a different message based on such "exception" happening without having to rely on parsing the content.All reactions