Skip to content

test(sdk-tanstack-ai): cover the onConfig phase guard - #162

Merged
aikins01 merged 1 commit into
telemetry-dev:mainfrom
lofoneh:test/tanstack-config-phase-guard
Nov 3, 2026
Merged

aikins01 merged 1 commit into
telemetry-dev:mainfrom
lofoneh:test/tanstack-config-phase-guard

Conversation

@lofoneh

@lofoneh lofoneh commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Part of #83. Supported engines call onConfig after onStart only before a model call, so no engine run reaches the guard that skips the other phases. The new test calls onConfig directly for each of those phases after onStart and checks that none opens an iteration span. Removing the guard fails all five cases; on main, every tanstack-ai test passes without it.

Supported engines call onConfig after onStart only before a model call, so
no engine run reaches the guard that skips the other phases. Calling it
directly for each of those phases now shows that none opens an iteration
span. Removing the guard fails every case.
@aikins01
aikins01 merged commit f814615 into telemetry-dev:main Nov 3, 2026
10 checks passed
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.

2 participants