Skip to content

Implement speed test and health check for Cap desktop app #73

Open

Description

@richiemcilroy

Need to implement the following functionality into Cap:

  • Speed test: A small indicator in the bottom left or right of the Cap desktop app which shows an indication of the current upload speed. Depending on the upload speed, we should be using different quality types in the recording process. Right now we are using Resolution::Captured, but we should be using a smaller size depending on the current upload speed. Also, we need to not perform speed checks once a recording has already started.

  • Health check: A function which runs on startup to test whether or not uploading is possible. It will attempt to upload a screen recording test to an endpoint created via the Web App (API route). Depending on the outcome, show an indicator in the Cap Desktop app to let the user know that something went wrong and to contact support. This might need to be a little bit more defined but we can discuss this.

This will allow us to be able to control the quality of the outcome of Cap's currently being recorded, and have less frustration when a user tries to record a Cap and it ultimately failed because of upload speed, or a recording issue.

Would love to work closely with whoever takes on this task - looking to get it implemented ASAP!

Activity

  1. changed the title [-]Implement speed test and health check for Cap app[/-] [+]Implement speed test and health check for Cap desktop app[/+] on Aug 12, 2024
  2. richiemcilroy commented on Aug 12, 2024

    @richiemcilroy
    MemberAuthor

    /bounty $500

  3. varshith257 commented on Aug 12, 2024

    @varshith257

    /attempt #73

    Algora profile Completed bounties Tech Active attempts Options
    @varshith257 8 bounties from 4 projects
    TypeScript, Go
    Cancel attempt
  4. varshith257 commented on Aug 12, 2024

    @varshith257

    @richiemcilroy Could I get this assigned? I would like to work on this and complete this ASAP

  5. onyedikachi-david commented on Aug 12, 2024

    @onyedikachi-david
    Contributor

    /attempt #73

    Algora profile Completed bounties Tech Active attempts Options
    @onyedikachi-david 5 bounties from 2 projects
    JavaScript, Shell
    Cancel attempt
  6. speedfox101 commented on Aug 13, 2024

    @speedfox101

    /attempt #73

  7. algora-pbc commented on Aug 16, 2024

    @algora-pbc

    💡 @webbdays submitted a pull request that claims the bounty. You can visit your bounty board to reward.

  8. richiemcilroy commented on Oct 4, 2024

    @richiemcilroy
    MemberAuthor

    Sorry for the slow progress here. Over the last couple of months we have completely redeveloped the app from the ground up, leading to the launch of Cap v0.3.0. It's a different architecture (Tauri v2 + SolidJS).

  9. JYZ-LESLIE commented on May 16, 2026

    @JYZ-LESLIE

    /attempt #73

    Focused implementation plan (Tauri v2 + SolidJS architecture):

    1. Add a startup upload health-check flow in desktop that does a lightweight signed upload probe and surfaces clear UI state (ok / degraded / failed).
    2. Add a one-shot pre-recording network probe (no re-check during active recording) and map probe tiers to capture quality presets.
    3. Wire probe result into recording setup so quality is selected before recording starts.
    4. Add small, deterministic tests around threshold mapping + fallback behavior, and a manual validation checklist for real-network scenarios.

    I will ship this in scoped increments so it is reviewable and easy to extend.

  10. JYZ-LESLIE commented on May 16, 2026

    @JYZ-LESLIE

    Submitted PR #1827 for this bounty. It adds a one-shot pre-recording upload probe, adaptive instant resolution cap, and in-app probe status indicator.

  11. JYZ-LESLIE commented on May 16, 2026

    @JYZ-LESLIE

    /claim #73\n\nPR: #1827

  12. evelynxuu1103-spec commented on Jul 4, 2026

    @evelynxuu1103-spec

    /attempt #73

  13. 5 remaining items

  14. added a commit that references this issue on Oct 24, 2026
    d3d4dda
  15. pythonyx135793 commented on Oct 24, 2026

    @pythonyx135793

    Hi @richiemcilroy, is the $500 bounty still available for the current GPUI app? I noticed the bounty label was removed. I'd like to confirm that before setting up recording and upload tests or adding another competing PR.

  16. khoap1220-hue commented on Oct 25, 2026

    @khoap1220-hue

    /attempt #73

  17. ItsMeSoumo commented on Nov 13, 2026

    @ItsMeSoumo

    /attempt #73

    Implementation Plan: Desktop Network Health Check & Diagnostics for Cap

    I would like to claim this bounty to implement the network health diagnostics tool in Cap.

    Technical Architecture & Deliverables:

    1. Low-Overhead Network Diagnostics Engine:
      • Implement active network latency ping, DNS resolution timing, and upload speed estimation against Cap's ingest endpoints.
      • Run non-blocking background probes without impacting CPU/GPU during active recording sessions.
    2. Interactive Diagnostics UI in Settings:
      • Add clean diagnostic status card in Cap settings displaying live connection health, packet loss warnings, and bandwidth gauges.
      • Provide "Run Network Test" manual trigger with actionable recommendations (e.g., firewall/VPN interference, high latency).
    3. Automated Error Telemetry & Upload Fail-Safe:
      • Detect pre-upload packet drops and auto-fallback to local chunk persistence if network is unstable, preventing data loss.
    4. Validation & Unit Tests:
      • Unit tests covering offline/degraded network states, mock socket timeouts, and upload retry logic.
  18. YHQT-code commented on Nov 15, 2026

    @YHQT-code

    Hi, is this still a funded task open to new contributors? I saw the earlier $500 offer, the architecture update, and the existing submissions. Before starting, could you confirm the remaining scope, current reward, and available payout method? If there is still an uncovered need, I’d be interested in a focused implementation with regression tests and a short demo.

  19. zaidrain06 commented on Nov 16, 2026

    @zaidrain06

    I can implement this cleanly in two self-contained parts: (1) a pre-recording throughput probe in the Tauri desktop backend that downshifts the capture preset from \Resolution::Captured\ when upload bandwidth falls below threshold (disabled once recording starts), and (2) a startup health-check call against the web API upload test route with a status badge in the desktop UI. If this scope looks good, could you assign #73 to me so I can open the PR?

  20. sinescribe commented on Nov 26, 2026

    @sinescribe

    /attempt #73

    Implementation Plan (GPUI Desktop + Recording Crate)

    1. Pre-recording upload speed probe (apps/desktop-gpui/src/upload.rs & apps/desktop-gpui/src/diagnostics.rs):
      • Implement a lightweight async upload throughput probe that runs only while the desktop app is idle / pre-recording.
      • Gate the probe strictly against active recording state in apps/desktop-gpui/src/recording.rs so no probe runs or retries once recording starts.
    2. Adaptive resolution capping (crates/recording/src/resolution_limits.rs & crates/recording/src/instant_recording.rs):
      • Map measured upload bandwidth tiers to a target maximum dimension cap (falling back safely to default capture resolution when offline or probe unavailable).
      • Reuse calculate_gpu_compatible_size and ensure_even in crates/recording/src/resolution_limits.rs (bounded by H264_MAX_DIMENSION) when configuring instant recording capture output in crates/recording/src/instant_recording.rs.
    3. Desktop health & speed indicator (apps/desktop-gpui/src/main_window.rs / apps/desktop-gpui/src/controls_window.rs):
      • Render a compact bottom-corner upload speed / connection health badge in the GPUI desktop window showing the latest pre-recording tier and active quality cap, hidden or frozen during active capture.
    4. Verification:
      • Unit tests for bandwidth-to-dimension tier mapping and even-dimension clamping in crates/recording, plus state-machine tests proving probes cannot fire after recording transitions to active.
  21. added a commit that references this issue on Dec 1, 2026
    d6858b7
  22. hbabanhabhahgagah-jpg commented on Dec 3, 2026

    @hbabanhabhahgagah-jpg

    Hi! I found this issue through Algora and I'm interested in implementing the speed test indicator + health check on the current desktop app.

    Before I start: is the $500 bounty on this issue still active? The bounty label seems to have been removed, and I couldn't find a recent confirmation, so I wanted to check first rather than assume either way.

    If it's still on, I'm happy to build it against the current GPUI desktop codebase and open a PR with a demo. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions