[PR #4541] fix: do not print ai sdk warnings #11013

Closed
opened 2026-02-16 18:15:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4541

State: closed
Merged: Yes


Summary

  • Suppress AI SDK warnings by setting globalThis.AI_SDK_LOG_WARNINGS = false.
  • Use @ts-ignore instead of @ts-expect-error to avoid build failures when the type error doesn't occur.

Fixes a new warnings shown in stdout because of the includeThoughts param added to gemini models:
Screenshot 2025-11-20 at 11 44 26

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4541 **State:** closed **Merged:** Yes --- ## Summary - Suppress AI SDK warnings by setting `globalThis.AI_SDK_LOG_WARNINGS = false`. - Use `@ts-ignore` instead of `@ts-expect-error` to avoid build failures when the type error doesn't occur. Fixes a new warnings shown in stdout because of the includeThoughts param added to gemini models: <img width="630" height="264" alt="Screenshot 2025-11-20 at 11 44 26" src="https://github.com/user-attachments/assets/653f4097-568d-4a92-aac7-d9d529f3a683" />
yindo added the pull-request label 2026-02-16 18:15:47 -05:00
yindo closed this issue 2026-02-16 18:15:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11013