altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

FinOps tools fail with "Snowflake driver not installed" — no guidance for users

Open anandgupta42 opened this issue 8 months ago • 2 comments

Problem

FinOps tools (finops_analyze_credits, finops_warehouse_advice, finops_unused_resources) fail with:

Error: Snowflake driver not installed. Run: npm install snowflake-sdk

19+ occurrences observed. Users discover these tools via the agent, attempt to use them, and hit a hard failure with a generic npm install instruction that may not apply to their setup.

Impact

  • Poor first-run experience for users exploring FinOps features
  • The error message assumes a specific installation method that may not match how the user installed the CLI
  • Users may not have permission to run npm install in the CLI's installation directory

Suggested fix

  1. Detect missing driver at tool registration time, not at call time — hide or disable FinOps tools when the Snowflake driver isn't available
  2. Improve error message — provide installation instructions that match the user's setup (npm, bun, brew, etc.)
  3. Consider bundling the Snowflake driver or making it an optional dependency that's installed on first use

anandgupta42 avatar Mar 26 '26 04:03 anandgupta42

Closing as duplicate of #295.

This is a specific symptom (FinOps tools failing with "Snowflake driver not installed") of the broader database driver packaging issue tracked in #295, which has a comprehensive root cause analysis covering all missing drivers.

The umbrella solution is tracked in #61 (Warehouse driver auto-installation).

kulvirgit avatar Mar 26 '26 23:03 kulvirgit

Duplicate of #295

kulvirgit avatar Mar 26 '26 23:03 kulvirgit