Add option to suppress provider INFO messages on startup #8558

Open
opened 2026-02-16 18:10:16 -05:00 by yindo · 3 comments
Owner

Originally created by @snarkbert on GitHub (Feb 4, 2026).

Originally assigned to: @rekram1-node on GitHub.

Problem

When using SAP AI Core as a provider, an INFO message appears on every startup:

Found a service key in environment variable "AICORE_SERVICE_KEY". Using a service key is recommended for local testing only. Bind the AI Core service to the application for productive usage.

This message:

  1. Displays in an odd floating position above the input area (TUI rendering bug?)
  2. Cannot be dismissed except by resizing the window
  3. Appears even when logLevel: "WARN" is set in opencode.json
  4. Is unavoidable because OpenCode internally sets the env var from auth.json for the SAP SDK

Attempted fixes that didn't work

  • Setting "logLevel": "WARN" in opencode.json — message still appears
  • The message originates from the SAP AI SDK (@sap-ai-sdk/core/dist/context.js) but the binary has its own bundled copy that can't be edited

Suggested solution

Either:

  1. Add a config option to suppress provider initialization messages
  2. Respect the existing logLevel setting for provider messages
  3. Don't display INFO-level messages in the TUI (or display them in a less intrusive way)

Environment

  • OpenCode 1.1.51
  • macOS (Apple Silicon)
  • Provider: SAP AI Core
Originally created by @snarkbert on GitHub (Feb 4, 2026). Originally assigned to: @rekram1-node on GitHub. ## Problem When using SAP AI Core as a provider, an INFO message appears on every startup: ``` Found a service key in environment variable "AICORE_SERVICE_KEY". Using a service key is recommended for local testing only. Bind the AI Core service to the application for productive usage. ``` This message: 1. Displays in an odd floating position above the input area (TUI rendering bug?) 2. Cannot be dismissed except by resizing the window 3. Appears even when `logLevel: "WARN"` is set in `opencode.json` 4. Is unavoidable because OpenCode internally sets the env var from `auth.json` for the SAP SDK ## Attempted fixes that didn't work - Setting `"logLevel": "WARN"` in `opencode.json` — message still appears - The message originates from the SAP AI SDK (`@sap-ai-sdk/core/dist/context.js`) but the binary has its own bundled copy that can't be edited ## Suggested solution Either: 1. Add a config option to suppress provider initialization messages 2. Respect the existing `logLevel` setting for provider messages 3. Don't display INFO-level messages in the TUI (or display them in a less intrusive way) ## Environment - OpenCode 1.1.51 - macOS (Apple Silicon) - Provider: SAP AI Core
yindo added the opentui label 2026-02-16 18:10:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #5004: Excessive Informational Logging Clutters Log Files in Default Configuration - discusses the broader problem of INFO-level messages cluttering the output and suggests configurable verbosity options to filter such output

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Feb 4, 2026): This issue might be a duplicate of existing issues. Please check: - #5004: Excessive Informational Logging Clutters Log Files in Default Configuration - discusses the broader problem of INFO-level messages cluttering the output and suggests configurable verbosity options to filter such output Feel free to ignore if this doesn't address your specific case.
Author
Owner

@toanju commented on GitHub (Feb 6, 2026):

A workaround would be to set

export SAP_CLOUD_SDK_LOG_LEVEL=warn
@toanju commented on GitHub (Feb 6, 2026): A workaround would be to set ``` export SAP_CLOUD_SDK_LOG_LEVEL=warn ```
Author
Owner

@snarkbert commented on GitHub (Feb 7, 2026):

@toanju thanks

@snarkbert commented on GitHub (Feb 7, 2026): @toanju thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8558