fix(proxmox): use camelCase clusterType for Tauri v2 IPC #123
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sarman/tftsr-devops_investigation#123
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/proxmox-add-remote"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Tauri v2 IPC layer expects camelCase parameter names. The frontend
was sending cluster_type (snake_case), causing the deserialization
failure with error 'command add_proxmox_cluster missing required key
clusterType'.
Changed proxmoxClient.ts line 28 from:
cluster_type: clusterType
to:
clusterType
This aligns with the project's convention where all multi-word
parameters use camelCase (clusterId, nodeId, vmId, etc.).
Fixes the 'Failed to add remote' error when adding new Proxmox remotes.
Automated PR Review (qwen3.5-122b-think via liteLLM):\n\n
Summary
The PR addresses a Tauri v2 IPC deserialization issue by changing
cluster_type(snake_case) toclusterType(camelCase) in the frontend invoke call. This aligns with the project's established convention where all multi-word parameters use camelCase. The change is minimal, focused, and matches the documented fix for the Proxmox remote addition failure.Findings
[SUGGESTION] src/lib/proxmoxClient.ts:28 - The PR only addresses the
clusterTypenaming convention, but the associated ticket (TICKET-proxmox-add-remote.md) documents three distinct bugs including password type issues in Rust and URL construction problems. These may need separate PRs or should be confirmed as out-of-scope.Evidence: Ticket mentions
password: &str→Stringfix and URL builder issues inproxox/client.rsandAddRemoteForm.tsxFix: Either clarify this PR scope in the title/description, or confirm these are being handled separately
[WARNING] src/lib/proxmoxClient.ts:21-31 - The
addProxmoxClusterfunction returnsPromise<ClusterInfo>but the Rust command signature showsadd_proxmox_clusterreturnsResult<ClusterInfo, String>. If the backend fails, the TypeScript side may not properly handle the error type.Evidence: Function signature shows
Promise<ClusterInfo>with no explicit error handling in the invoke wrapperFix: Consider adding explicit error type handling or ensure the invoke wrapper properly propagates Tauri errors
Verdict: APPROVE WITH COMMENTS