Repository navigation
fix: wrap onboarding health check payload in input object - #57
Merged
Merged
Conversation
Align the Tauri invoke payload with the command signature by nesting workspace/provider/apiKey under input, so onboarding health checks no longer fail with missing required key input. Made-with: Cursor
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.
Background
On desktop onboarding, clicking Health Check could fail immediately with:
invalid args input for command skilllite_health_checkmissing required key inputRoot cause: the frontend invoked
skilllite_health_checkwith a flat payload, while the Tauri command signature expects a nestedinputobject.Changes
crates/skilllite-assistant/src/components/OnboardingModal.tsx.workspaceproviderapiKeyinput.workspaceinput.providerinput.apiKeyThis aligns the webview request shape with Rust command signature:
skilllite_health_check(app, input: OnboardingHealthCheckInput)Repro Steps (Before)
missing required key input.Verification (After)
inputarg error).Test Plan
cargo test --manifest-path crates/skilllite-assistant/src-tauri/Cargo.toml onboarding_health_check_input_tests -- --nocapturemissing required key input.Screenshots
Risk Assessment
apiKeyplus legacy alias support at Rust layer).Rollback Plan
7a1e240from this PR branch.