Skip to content

feat: add multi-environment variable groups support - #419

Open
kud1 wants to merge 1 commit into
winfunc:mainfrom
kud1:main
Open

feat: add multi-environment variable groups support#419
kud1 wants to merge 1 commit into
winfunc:mainfrom
kud1:main

Conversation

@kud1

@kud1 kud1 commented Dec 29, 2025

Copy link
Copy Markdown

feat: add multi-environment variable groups support

Implement environment variable groups feature that allows users to
define and switch between different sets of environment variables
for different deployment contexts (dev, staging, production, etc.)

新建 features:

  • EnvGroupSelector component for quick group switching in prompt bar
  • Support for creating, editing, and deleting environment groups
  • Active group selection persists across sessions
  • Backward compatible with existing single env configuration

Changes:

  • Add EnvGroupSelector.tsx component
  • Add EnvGroup interface to api.ts
  • Extend Claude设置 with envGroups and activeEnvGroup fields
  • Add group management UI in 设置.tsx
  • Integrate group selector in FloatingPromptInput.tsx

Also includes:

  • Fix chat loading hang by using static imports for Tauri APIs
  • Code style cleanup (quote normalization, trailing commas)
截屏2025-12-28 20 02 55 截屏2025-12-28 20 03 12 截屏2025-12-28 20 03 34

marlon-costa-dc pushed a commit to marlon-costa-dc/opcode that referenced this pull request Jan 25, 2026
Adds:
- EnvGroupSelector component with i18n
- EnvGroup API types and functions
- Integration with FloatingPromptInput
- useClaudeMessages hook updates

Note: Full 设置.tsx EnvGroups management UI pending
(kept i18n version of 设置.tsx, EnvGroups management needs manual integration)
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant