unintentional vibe coding stuff which I now regret#1910
Closed
snairjsq wants to merge 1 commit into
Closed
Conversation
Eliminate the free-plan 5-minute recording limit across all enforcement layers so free users get unlimited recording length: - Web browser recorder: drop the auto-stop timer and show elapsed time - Desktop Instant Mode: drop the auto-stop and remaining-time countdown - Desktop studio share/export: remove the 300s upgrade gates - Web server actions and desktop video API: remove duration upload gates - Desktop Rust upload: remove the duration UpgradeRequired check - Update related UI/FAQ/assistant copy that referenced the limit
Member
|
😂😂 |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Author
Sorry about that! Wasn't intentional! Appreciate all the good work you folks do. |
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.
Eliminate the free-plan 5-minute recording limit across all enforcement layers so free users get unlimited recording length:
Greptile Summary
This PR removes the 5-minute free-plan recording cap at every enforcement layer — desktop Rust client check, desktop TypeScript pre-upload gates, Instant Mode auto-stop timer, web server actions, and the desktop API
/createendpoint — and updates all related UI copy (FAQ, assistant constants, warning components).upload_exported_video; TypeScript pre-upload gates removed fromShareButton,ExportPage, andrecordings-overlay;ShowCapFreeWarningcomponent and Instant Mode auto-stop effect deleted fromin-progress-recordingandtarget-select-overlay.userIsProduration guards removed fromactions/video/upload.ts,actions/video/create-for-processing.ts, and theapi/desktop/.../video.tsGET/createroute.Confidence Score: 4/5
Safe to merge. All enforcement layers are consistently removed and the changes are internally coherent across Rust, TypeScript, and server actions.
The only residual concern is that the
UpgradeRequiredresult branches inShareButton.tsx,ExportPage.tsx, andrecordings-overlay.tsxare now dead code for the video upload flow — the server no longer returns a 403 for any duration reason on the endpoint those calls reach. This is harmless but is a minor cleanup left undone in the same PR that removed the trigger.apps/desktop/src/routes/editor/ShareButton.tsx and ExportPage.tsx — both retain an
UpgradeRequiredresult handler that is now unreachable for video uploads.Important Files Changed
authrenamed to_authto suppress unused-variable warning cleanly.UploadResult::UpgradeRequiredenum variant and its match arms survive for other callers (e.g.,upload_screenshotstill gate-keeps onis_upgraded()).UpgradeRequiredresult branch in the upload response handler is now unreachable for the video upload flow since the server no longer returns a 403 for duration reasons.UpgradeRequiredbranch in the result handler is now dead for video uploads.UpgradeRequiredresult handler (not in diff) is now dead for video uploads but harmless.ShowCapFreeWarningand deletes the component itself, which displayed the Instant Mode 5-min warning for free users.userIsProcheck) from video-for-processing creation path;userIsProimport removed as no longer needed here.userIsProimport removed.isProUseroption,isFreePlanderived flag,freePlanAutoStopTriggeredRef, and theuseEffectthat auto-stopped recording at the free-plan limit.userfrom theuseDashboardContext()destructure (it was only used forisProUserand the countdown display); timer now always shows elapsed time.FREE_PLAN_MAX_RECORDING_MSconstant (5 × 60 × 1000).FREE_PLAN_MAX_RECORDING_MSimport.upgrade_requiredgate on the/createendpoint for the desktop API;userIsProimport removed.Comments Outside Diff (1)
apps/desktop/src/routes/editor/ShareButton.tsx, line 103-104 (link)UpgradeRequiredresult branchWith the server-side duration check removed from
video.ts(the only endpoint hit by the desktop'screate_or_get_videocall), the Rust path that maps a 403upgrade_requiredresponse intoUploadResult::UpgradeRequiredcan no longer be reached from this upload flow. The same dead branch exists at the equivalent lines inExportPage.tsxandrecordings-overlay.tsx. These can be safely removed alongside the pre-check that was already deleted in this PR.Prompt To Fix With AI
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "feat: remove 5-minute recording cap for ..." | Re-trigger Greptile