Reported by @pine tulip
Bug Report: Canvas Session Desync & Corrupted Output
`Steps to Reproduce`
- Assistant initiates canvas edits without opening UI.
- User manually opens canvas.
- Assistant continues thinking canvas is active, but all further output appears in chat instead of canvas.
- Canvas stops responding to assistant commands, throws
InvalidRecipient: canvaserrors, and breaks interactivity.
`Expected Result`
Canvas session is maintained correctly, even if the user manually opens the canvas after assistant begins the session.
`Actual Result`
Canvas becomes desynced. The assistant no longer controls the document and begins replying into chat with markdown-formatted code. Assistant-side canvas commands begin failing.
`Environment`
GPT-4o Web Chat Firefox on Linux (user-specific) Assistant attempted code editing over several messages before desync was noticed Canvas session ID still appears to persist but is no longer valid