Skip to content

feat(recording): add upload speed test, adaptive resolution, and startup health check (#73) - #3934

Closed
frds3445 wants to merge 9 commits into
CapSoftware:mainfrom
frds3445:feat/issue-73-speed-test-health-check
Closed

frds3445 wants to merge 9 commits into
CapSoftware:mainfrom
frds3445:feat/issue-73-speed-test-health-check

Conversation

@frds3445

@frds3445 frds3445 commented Nov 7, 2026 •

Copy link
Copy Markdown

Summary

Implements upload speed probing, adaptive recording resolution recommendations, and startup upload health verification for Cap (#73):

  • Probes effective upload throughput in crates/recording/src/upload_probe.rs and defaults.rs, classifies link quality, and applies resolution and quality caps when recordings start so constrained connections do not stall uploads.
  • Adds an authenticated upload health-check endpoint in apps/web/app/api/upload/health-check/route.ts and route.test.ts that verifies user storage readiness and bounds probe payloads.

Fixes #73
/claim #73

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; the latest changes only remove comments.

Summary

Adds startup upload checks and uses measured speed to cap recording settings.

  • Cap uses startup upload speed to limit recording settings.
  • Signed-in users can check whether their upload storage is ready.

Reviews (10) · Last reviewed commit: "style(web): remove redundant helper comm..." · Reviewed by Greptile

…tion tier, and startup health check (CapSoftware#73)

- Add `upload_probe` module in `crates/recording` classifying upload throughput (`SpeedProbeSample`, `AdaptiveUploadTier`) into adaptive resolution caps (`1920`, `1280`, `854`) and `StudioQuality` presets while preventing speed probes during active recordings (`should_run_speed_probe`).
- Extend `RecordingDefaults::with_upload_speed_mbps` to apply adaptive quality and resolution limits prior to recording startup.
- Add `/api/upload/health-check` Web App API route (`apps/web/app/api/upload/health-check/route.ts`) and unit tests to validate startup screen-recording upload probes and surface user-facing support indicators on failure.

Fixes CapSoftware#73

Signed-off-by: Lucas Oliveira <kalopsia3445@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 7, 2026 15:50
@vercel

vercel Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

@frds3445 is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@superagent-security superagent-security Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superagent found 1 security concern(s).

Comment thread crates/recording/src/defaults.rs Resolved
Comment thread crates/recording/src/upload_probe.rs Resolved
…ed probe

Integrate /api/upload/health-check with @effect/platform HttpApi, HttpAuthMiddleware, and Storage readiness checks, and wire startup speed probing into desktop-gpui and RecordingDefaults.
Comment thread apps/desktop-gpui/src/power.rs Resolved
Comment thread apps/desktop-gpui/src/power.rs Resolved
Comment thread crates/recording/src/defaults.rs Resolved
@greptile-apps

greptile-apps Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Want your agent to iterate on Greptile's feedback? Try greploops.

Comment thread apps/desktop-gpui/src/recording.rs Resolved
Comment thread apps/desktop-gpui/src/recording.rs Resolved
Comment thread crates/recording/src/upload_probe.rs Resolved
Comment thread apps/desktop-gpui/src/recording.rs Resolved
@greptile-apps

This comment has been minimized.

@frds3445 frds3445 closed this Nov 10, 2026
@frds3445
frds3445 deleted the feat/issue-73-speed-test-health-check branch November 10, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement speed test and health check for Cap desktop app

2 participants