Repository navigation
fix(chat): keep messages and Computer responsive during media playback - #294
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 4beda446-fceb-43b4-93e3-b8e4dba535d8) |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opening a chat with 45 recordings started downloading every chapter over the WebSocket. A message that had reached the daemon appeared as “Not sent,” and the Computer tab could stay blank.
Audio and video now load when selected. The daemon returns a small file descriptor over the chat connection, and the player streams and seeks over HTTP. Each range request checks the paired device, the chat’s file permissions, and the file revision. Reload opens the latest version if a recording changes. Older daemons and clients keep their inline playback path.
Bot chats now show “Delivery unconfirmed” when the daemon’s reply is late. Retry keeps the original message ID. The Computer tab shows loading or retry feedback and ignores status replies from earlier connections.
Verification
Web and iOS screenshots from the playback fixture
Council review
Five review rounds. The first three covered the client changes. Round four added HTTP streaming. Round five covered playback recovery and native verification. All four reviewers approved the proposed head,
77e046a0.Created with GPT-6.2 Astra in T3 Code.
Note
Medium Risk
Adds authenticated HTTP media serving and changes how clients load large files and handle send-delivery UX; falls back for older daemons but touches chat, mobile playback, and connection-sensitive Computer state.
Overview
Chat audio and video no longer bulk-download over the WebSocket. With
stream_media: true,hexbot.files.readreturns a short-livedmedia_path; the daemon serves range-aware HTTP at/api/media/{key}so playback and seeking stay off the RPC connection. Links are tied to the issuing connection and file revision (stale links return 410).Web, mobile, and desktop prefer those streams via
mediaSource, load audio/video on demand, and offer Reload when the player errors or the file changes. Inlinedata_urlplayback remains for older daemons. Desktop CSP allows daemon media URLs.Messaging copy distinguishes daemon refusal (Not sent) from late or lost acknowledgement (Delivery unconfirmed), with retry still using the same input key.
Computer panel tracks status per connection, shows loading/retry instead of a blank tab, and drops stale API answers after reconnect.
Reviewed by Cursor Bugbot for commit 77e046a. Bugbot is set up for automated code reviews on this repo. Configure here.