Skip to content

feat(desktop): update minimum version to 0.0.44 for auth upgrade#613

Merged
saddlepaddle merged 2 commits intomainfrom
desktop-v0.0.44
Jan 6, 2026
Merged

feat(desktop): update minimum version to 0.0.44 for auth upgrade#613
saddlepaddle merged 2 commits intomainfrom
desktop-v0.0.44

Conversation

@saddlepaddle
Copy link
Copy Markdown
Collaborator

@saddlepaddle saddlepaddle commented Jan 6, 2026

Summary

  • Updates minimum desktop version to 0.0.44
  • Forces users to update for Better Auth migration
  • Displays upgrade message about authentication system upgrade

Test Plan

  • Merge PR to main
  • Run desktop release script for v0.0.44
  • Verify GitHub Actions build succeeds
  • Test desktop app shows upgrade message when running older version

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated minimum supported desktop version requirement to 0.0.44
    • Desktop users will receive an in-app notification about authentication system improvements

✏️ Tip: You can customize this high-level summary in your review settings.

Forces users to update to v0.0.44 for the Better Auth migration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 6, 2026

Warning

Rate limit exceeded

@saddlepaddle has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 12 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between e52b105 and 6b73722.

📒 Files selected for processing (1)
  • apps/api/src/app/api/desktop/version/route.ts
📝 Walkthrough

Walkthrough

The desktop API version endpoint is updated to enforce minimum desktop version 0.0.44 and activates a message field notifying users of an authentication system upgrade, requiring them to update their client.

Changes

Cohort / File(s) Summary
Desktop Version Endpoint Configuration
apps/api/src/app/api/desktop/version/route.ts
Updated MINIMUM_DESKTOP_VERSION from 0.0.39 to 0.0.44; activated message field with authentication upgrade notification

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 A version bump hops into view,
Authentication renewed, shiny and new!
Update your clients, don't delay,
Our security upgrade is here to stay! 🔐

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description provides a summary and test plan but does not follow the required template structure with sections like Description, Related Issues, Type of Change, Testing, and Screenshots. Restructure the description to match the template with clear sections: Description, Related Issues, Type of Change, Testing, and Additional Notes. Use proper markdown formatting with section headers.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: updating the minimum desktop version to 0.0.44 for authentication system upgrade.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 6, 2026

🚀 Preview Deployment

🔗 Preview Links

Service Status Link
Neon Database (Neon) View Branch
Fly.io Electric (Fly.io) Failed to deploy
Vercel API (Vercel) Open Preview
Vercel Web (Vercel) Open Preview
Vercel Marketing (Vercel) Open Preview
Vercel Admin (Vercel) Open Preview
Vercel Docs (Vercel) Open Preview

Preview updates automatically with new commits

@saddlepaddle saddlepaddle merged commit 3166280 into main Jan 6, 2026
10 of 11 checks passed
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
apps/api/src/app/api/desktop/version/route.ts (1)

10-10: Consider extracting the message to a constant for consistency.

The message string is hardcoded inline. Per the coding guideline to "extract magic numbers and hardcoded values to named constants at module top," you could extract this to a constant like MINIMUM_DESKTOP_VERSION_MESSAGE for consistency with the MINIMUM_DESKTOP_VERSION pattern.

Optional refactor
 const MINIMUM_DESKTOP_VERSION = "0.0.44";
+const MINIMUM_DESKTOP_VERSION_MESSAGE = "We've upgraded our authentication system. Please update to continue.";

 /**
  * Used to force the desktop app to update, in cases where we can't support
  * multiple versions of the desktop app easily.
  */
 export async function GET() {
 	return Response.json({
 		minimumVersion: MINIMUM_DESKTOP_VERSION,
-		message: "We've upgraded our authentication system. Please update to continue.",
+		message: MINIMUM_DESKTOP_VERSION_MESSAGE,
 	});
 }
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9ee8911 and e52b105.

📒 Files selected for processing (1)
  • apps/api/src/app/api/desktop/version/route.ts
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx}: Use object parameters for functions with 2+ parameters instead of positional arguments
Functions with 2+ parameters should accept a single params object with named properties for self-documentation and extensibility
Use prefixed console logging with context pattern: [domain/operation] message
Extract magic numbers and hardcoded values to named constants at module top
Use lookup objects/maps instead of repeated if (type === ...) conditionals
Avoid using any type - maintain type safety in TypeScript code
Never swallow errors silently - at minimum log them with context
Import from concrete files directly when possible - avoid barrel file abuse that creates circular dependencies
Avoid deep nesting (4+ levels) - use early returns, extract functions, and invert conditions
Use named properties in options objects instead of boolean parameters to avoid boolean blindness

Files:

  • apps/api/src/app/api/desktop/version/route.ts
apps/api/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

apps/api/**/*.{ts,tsx}: Use TRPCError with appropriate error codes: NOT_FOUND, UNAUTHORIZED, FORBIDDEN, BAD_REQUEST, INTERNAL_SERVER_ERROR, NOT_IMPLEMENTED
tRPC procedures and API route handlers should validate and delegate; keep orchestrators thin
Extract business logic from tRPC procedures into utility functions when logic exceeds ~50 lines, is used by multiple procedures, or needs independent testing
Validate at boundaries using Zod schemas for tRPC inputs and API route bodies

Files:

  • apps/api/src/app/api/desktop/version/route.ts
apps/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Use Drizzle ORM for all database operations - never use raw SQL

Files:

  • apps/api/src/app/api/desktop/version/route.ts
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

Use Biome for formatting and linting - run at root level with bun run lint:fix or biome check --write

Files:

  • apps/api/src/app/api/desktop/version/route.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: Deploy Marketing
  • GitHub Check: Deploy Web
  • GitHub Check: Deploy API
  • GitHub Check: Deploy Docs
  • GitHub Check: Deploy Admin
  • GitHub Check: Build
🔇 Additional comments (1)
apps/api/src/app/api/desktop/version/route.ts (1)

1-1: LGTM - Version constant properly defined.

The version bump to 0.0.44 is clearly defined as a named constant, following the coding guideline to extract hardcoded values to module-level constants.

@saddlepaddle saddlepaddle deleted the desktop-v0.0.44 branch January 6, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant