Skip to content

Conversation

@AnthonyRonning
Copy link
Contributor

@AnthonyRonning AnthonyRonning commented Jan 2, 2026

This PR updates the maple-proxy dependency to version 0.1.5, which adds embedding proxy API support.

Changes

  • Updated maple-proxy from 0.1.4 to 0.1.5
  • Fixed clippy warnings in src/lib.rs

Closes #360


Generated with Claude Code

Summary by CodeRabbit

  • Chores

    • Updated a dependency to a newer patch version.
  • Refactor

    • Removed an unused import and adjusted internal string handling to use direct string references, improving code clarity without changing behavior.

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

- Updated maple-proxy dependency from 0.1.4 to 0.1.5
- Fixed unused import (Manager) in src/lib.rs
- Removed redundant import (tauri_plugin_opener) in src/lib.rs
- Fixed unnecessary to_string() call in deep link handler

Co-authored-by: Anthony <AnthonyRonning@users.noreply.github.com>
@coderabbitai
Copy link

coderabbitai bot commented Jan 2, 2026

📝 Walkthrough

Walkthrough

Bumps the maple-proxy dependency from 0.1.4 to 0.1.5 and makes minor code cleanups in the Tauri Rust glue: removes an unused Manager import and passes &str to deep-link handler via url.as_ref().

Changes

Cohort / File(s) Summary
Dependency version bump
frontend/src-tauri/Cargo.toml
maple-proxy upgraded from 0.1.4 to 0.1.5.
Tauri Rust glue / small cleanup
frontend/src-tauri/src/lib.rs
Removed unused Manager import; replaced &url.to_string() with url.as_ref() when calling handle_deep_link_event to pass a &str.

Sequence Diagram(s)

(omitted — changes are small refactor and dependency bump, not a multi-component control-flow change)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 A tiny hop, a tidy trim,
Dependency nudged, the code grows slim,
Strings now pass with nimble grace,
Unused imports leave no trace,
I nibble logs and skip to space ✨

Pre-merge checks and finishing touches

✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: bumping the maple-proxy dependency from 0.1.4 to 0.1.5.
Linked Issues check ✅ Passed The PR successfully addresses issue #360 by updating maple-proxy to add embedding proxy API support and fixing clippy warnings.
Out of Scope Changes check ✅ Passed Changes include dependency bump, clippy fixes (import cleanup and URL type alignment), and addressing reviewer feedback on consistency—all directly related to the stated objectives.
✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cfae1de and 2fa0b42.

📒 Files selected for processing (1)
  • frontend/src-tauri/src/lib.rs
🚧 Files skipped from review as they are similar to previous changes (1)
  • frontend/src-tauri/src/lib.rs
⏰ 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: Greptile Review
  • GitHub Check: build-macos (universal-apple-darwin)
  • GitHub Check: build-linux
  • GitHub Check: build-ios
  • GitHub Check: build-android
  • GitHub Check: Cloudflare Pages

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

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 2, 2026

Greptile Summary

Updated maple-proxy dependency to 0.1.5 to enable embedding proxy API support, which was added in the upstream rust SDK. The update also pulled in opensecret 0.2.7 as a transitive dependency.

  • Bumped maple-proxy from 0.1.4 to 0.1.5 in Cargo.toml
  • Updated Cargo.lock with new checksums for maple-proxy and opensecret
  • Removed unused imports Manager and tauri_plugin_opener in lib.rs
  • Optimized deep link handling by using .as_ref() instead of .to_string() to avoid unnecessary string allocations

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • This is a straightforward dependency update with minor code cleanup. The changes include: (1) a single dependency version bump from 0.1.4 to 0.1.5, (2) removal of unused imports that were causing clippy warnings, and (3) a performance optimization using .as_ref() instead of .to_string(). All changes are non-breaking and improve code quality.
  • No files require special attention

Important Files Changed

Filename Overview
frontend/src-tauri/Cargo.toml Updated maple-proxy dependency from 0.1.4 to 0.1.5 to add embedding proxy API support
frontend/src-tauri/Cargo.lock Lock file updated with new maple-proxy 0.1.5 and transitive dependency opensecret 0.2.7 checksums
frontend/src-tauri/src/lib.rs Removed unused imports (Manager, tauri_plugin_opener) and replaced .to_string() with .as_ref() for better performance

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Cargo as Cargo.toml
    participant Lock as Cargo.lock
    participant Registry as crates.io
    participant Proxy as maple-proxy 0.1.5
    participant OpenSecret as opensecret 0.2.7
    participant App as Tauri App

    Dev->>Cargo: Update maple-proxy to 0.1.5
    Cargo->>Registry: Resolve dependencies
    Registry->>Cargo: Provide maple-proxy 0.1.5
    Registry->>Cargo: Provide opensecret 0.2.7 (transitive)
    Cargo->>Lock: Update lock file with checksums
    Lock-->>Proxy: Lock maple-proxy@0.1.5
    Lock-->>OpenSecret: Lock opensecret@0.2.7
    Dev->>App: Fix clippy warnings (unused imports, .as_ref())
    App->>Proxy: Enable embedding proxy API support
    Note over App,Proxy: Embedding API now available via maple-proxy
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Additional Comments (1)

  1. frontend/src-tauri/src/lib.rs, line 265 (link)

    style: Inconsistent URL handling: desktop version uses url.as_ref() (line 69) but mobile still uses &url.to_string(). Consider applying the same clippy fix here for consistency.

    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!

2 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Copy link

@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)
frontend/src-tauri/src/lib.rs (1)

69-69: LGTM! However, inconsistent with mobile code path.

The refactor from &url.to_string() to url.as_ref() is excellent - it's more idiomatic and avoids unnecessary allocation of a temporary String.

However, line 265 in the mobile code path still uses the old pattern: &url.to_string(). Consider applying the same refactor for consistency.

🔎 Proposed fix for consistency
 app.deep_link().on_open_url(move |event| {
     if let Some(url) = event.urls().first() {
-        handle_deep_link_event(&url.to_string(), &app_handle);
+        handle_deep_link_event(url.as_ref(), &app_handle);
     }
 });
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6e89ac7 and cfae1de.

⛔ Files ignored due to path filters (1)
  • frontend/src-tauri/Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • frontend/src-tauri/Cargo.toml
  • frontend/src-tauri/src/lib.rs
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-07-02T22:53:39.374Z
Learnt from: AnthonyRonning
Repo: OpenSecretCloud/Maple PR: 136
File: frontend/src-tauri/tauri.conf.json:4-4
Timestamp: 2025-07-02T22:53:39.374Z
Learning: When reviewing version bump PRs, version numbers found in Cargo.lock files are typically dependency versions (like aho-corasick), not the application version. Don't suggest updating these unless they are specifically the application's own version entry.

Applied to files:

  • frontend/src-tauri/Cargo.toml
⏰ 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: build-macos (universal-apple-darwin)
  • GitHub Check: build-linux
  • GitHub Check: build-android
  • GitHub Check: build-ios
  • GitHub Check: Greptile Review
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (2)
frontend/src-tauri/src/lib.rs (1)

1-1: Verify that the Manager trait is not used elsewhere in the codebase before removing it from the import.

The removal of Manager from the import statement should be safe if it's no longer referenced, but this needs to be confirmed by searching the file and related code for any usages of Manager trait methods or re-exports.

frontend/src-tauri/Cargo.toml (1)

35-35: Verify maple-proxy version availability on crates.io.

The specified version 0.1.5 does not exist in the published crate index—only versions 0.1.1 and 0.1.3 are available. Similarly, version 0.2.7 mentioned in issue #360 is not published. This will cause the build to fail. Confirm which version is actually needed and update the dependency accordingly.

⛔ Skipped due to learnings
Learnt from: AnthonyRonning
Repo: OpenSecretCloud/Maple PR: 136
File: frontend/src-tauri/tauri.conf.json:4-4
Timestamp: 2025-07-02T22:53:39.374Z
Learning: When reviewing version bump PRs, version numbers found in Cargo.lock files are typically dependency versions (like aho-corasick), not the application version. Don't suggest updating these unless they are specifically the application's own version entry.

@AnthonyRonning
Copy link
Contributor Author

@claude my AI's are complaining about this:

frontend/src-tauri/src/lib.rs, line 265 ([link](https://github.com/opensecretcloud/maple/blob/cfae1deb1d4693d8642d9f9063f2b071288b0c47/frontend/src-tauri/src/lib.rs#L265))

style: Inconsistent URL handling: desktop version uses url.as_ref() (line 69) but mobile still uses &url.to_string(). Consider applying the same clippy fix here for consistency.

should you handle this? or not a problem?

Also i'm concerned about the removal of the "unused" import. are you sure it was unused on ALL environments we build for? not just the env you're running on? if it truly is unused then good. if something used it then either do an environment flag or add it back and ignore the unused error.

@claude
Copy link
Contributor

claude bot commented Jan 2, 2026

Claude finished @AnthonyRonning's task in 5m 22s —— View job


Investigation Complete ✅

Tasks

  • Read and analyze src/lib.rs to understand both concerns
  • Check if Manager import is truly unused across all platform targets
  • Evaluate URL handling inconsistency (line 69 vs line 265)
  • Implement fixes if necessary
  • Run just rust-lint to verify changes
  • Commit and push changes if made

Findings

1. Removed imports are safe ✅

  • Manager trait: Confirmed unused across the entire file. No Manager:: references found anywhere in the codebase
  • tauri_plugin_opener: The module import was redundant. The plugin is still properly initialized via tauri_plugin_opener::init() on lines 33 and 242, which works fine without the standalone import statement

Both removals are safe across all build targets (desktop, iOS, Android). These were correctly identified as unused by clippy.

2. URL handling inconsistency fixed ✅
The AI reviewers correctly identified an inconsistency:

  • Line 69 (desktop): url.as_ref() ✅ (idiomatic, avoids temporary allocation)
  • Line 265 (mobile): &url.to_string() ❌ (inefficient, creates temporary String)

Changes Made

Applied the same clippy fix to the mobile code path (line 265) for consistency:

  • Changed &url.to_string()url.as_ref()
  • This matches the desktop implementation and avoids unnecessary string allocation

Verification: All checks passed ✅

  • cargo fmt --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • Build succeeded ✅

Commit: 2fa0b42


Summary

Your concerns were valid! The AI reviewers were correct:

  1. ✅ The import removals are safe - they were genuinely unused across all environments
  2. ✅ The URL handling inconsistency needed fixing - I've applied the same optimization to the mobile code path

The PR is now fully consistent and all clippy warnings are resolved.


| Branch: claude/issue-360-20260102-1727

Co-authored-by: Anthony <AnthonyRonning@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 2, 2026

Deploying maple with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2fa0b42
Status: ✅  Deploy successful!
Preview URL: https://3806574b.maple-ca8.pages.dev
Branch Preview URL: https://claude-issue-360-20260102-17.maple-ca8.pages.dev

View logs

@AnthonyRonning AnthonyRonning merged commit 7b6e95c into master Jan 3, 2026
7 checks passed
@AnthonyRonning AnthonyRonning deleted the claude/issue-360-20260102-1727 branch January 3, 2026 00:03
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.

chore: bump rust maple-proxy sdk version to 0.2.7

2 participants