fix(dbt-tools): Fusion-missing answers from `dbt_cte_profile`, `dbt_health` and `dbt_sql_graph` give the Fusion advice
RA
1h ago+295+295+012345678901234567890123456789-18-18-01234567890123456789
Issue for this PR
Closes #1904
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
With Fusion mode and no dbt 2.x binary, the adapter still starts, and each dbt command then fails with dbt-integration's editor wording ("…then reload the window"), with no mention of altimate-dbt doctor.
- New
fusionMissingReason(adapter)indbt-adapter-access.ts: in Fusion mode, when the integration reports the binary missing (currentIntegration.fusionBinaryMissing(), not the message text), it returns "dbt Fusion was not found." plus the advice the existing refusals give. Never throws. dbt_cte_profile,dbt_healthanddbt_sql_graphanswer with it when it applies. Failure kinds and metadata keys are unchanged; other modes and real Fusion parse errors keep dbt's text.- A dbt-tools test pins that the locked dbt-integration exposes
fusionBinaryMissing().
dbt_lineage's column note is unchanged: the locked dbt-integration has no model lineage, so that note appears in every mode.
How did you verify your code works?
- New tests in the four tool test files fail on main's code; each file run alone passes (42, 57, 49, 51). A cancel during the new Fusion check still ends the call, as on main. dbt-tools
bun run test: 134 pass. - Real
altimate tool runof all three tools, Fusion mode, no binary: before "…then reload the window." (dbt_sql_graph: "the dbt manifest is not available"); after, the Fusion advice withaltimate-dbt doctor. tsgo --noEmitand the marker guard are clean.
Cost side effects
None.
Screenshots / recordings
CLI text only.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
- I checked for cost side effects (model calls, queries or cloud resources that grow with user data) and described them, or wrote "none"
🤖 Generated with Claude Code
https://claude.ai/code/session_01BXxzvpym19ATbtFL8LaB6b
Summary by CodeRabbit
- Bug Fixes
- When dbt Fusion is unavailable, dbt tools now provide clearer guidance on installing or locating it instead of showing a generic parse or command error.
- Other dbt errors continue to show their original messages.