Skip to content

feat(vscode): show env variable name tooltip for environment-connected providers#9249

Closed
markijbema wants to merge 7 commits intomainfrom
session/agent_cb615240-3ce3-4fef-8d21-fe52a0a8b689
Closed

feat(vscode): show env variable name tooltip for environment-connected providers#9249
markijbema wants to merge 7 commits intomainfrom
session/agent_cb615240-3ce3-4fef-8d21-fe52a0a8b689

Conversation

@markijbema
Copy link
Copy Markdown
Contributor

Summary

  • Adds an info icon (?) with tooltip next to "Connected from your environment variables" text in provider settings
  • Tooltip displays the specific environment variable name(s) being used (e.g., OPENAI_API_KEY, ANTHROPIC_API_KEY)
  • Includes translations for the new tooltip string across all 19 supported locales

Closes #8684

Details

When a provider's API key is detected from environment variables, the UI previously showed only "Connected from your environment variables" with no way to know which variable was being read. This change surfaces the env field already available on the Provider object via a Tooltip + Icon component, following existing UI patterns.

Files changed

  • ProvidersTab.tsx — Added Tooltip import, wrapped a help icon in a Tooltip showing item.env values
  • i18n/*.ts (19 files) — Added settings.providers.connected.environmentTooltip key with translations

Built for Mark IJbema by Kilo for Slack

kilo-code-bot bot and others added 6 commits April 9, 2026 17:18
…d providers

Add an info icon with tooltip next to 'Connected from your environment
variables' text in provider settings. On hover, the tooltip displays
the specific environment variable name(s) being used (e.g. OPENAI_API_KEY).

Closes #8684
The Tooltip component renders a div as its trigger element. Using a span
as the parent container produced invalid HTML (span > div). Changed to
div which already had display:flex applied.
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot bot commented Apr 20, 2026

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0

Fix these issues in Kilo Cloud

Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-vscode/webview-ui/src/components/settings/ProvidersTab.tsx 221 Tooltip may still show fallback env vars that are not actually active at runtime.
Other Observations (not in diff)

The backend change now narrows env during env discovery, but config-backed providers still have env reset later by the config re-apply path in packages/opencode/src/provider/provider.ts:1285, so the original tooltip warning remains unresolved for those providers.

Files Reviewed (2 files)
  • packages/opencode/src/provider/provider.ts - 0 new issues; previous warning remains unresolved
  • packages/kilo-vscode/webview-ui/src/components/settings/ProvidersTab.tsx - 1 carried-forward issue

Reviewed by gpt-5.4-20260305 · 3,569,042 tokens

@markijbema markijbema closed this Apr 21, 2026
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.

Show which environment variable is used for provider API key in settings

1 participant