Skip to content

feat(terminal): add configurable environment variables for terminals … - #116

Merged
SWangHash merged 1 commit into
mainfrom
rebase_6
Jul 15, 2026
Merged

SWangHash merged 1 commit into
mainfrom
rebase_6

Conversation

@SWangHash

Copy link
Copy Markdown
Owner

…and agent commands

Persist a user-editable 'terminal.env_vars' map and expose it in Settings (BasicsConfig) as an editable Key/Value table with one-click import from .env-style files (KEY=VALUE / export KEY=VALUE / KEY:VALUE, skipping #-comments).

Inject the vars live at three execution paths so changes take effect for new sessions without restart: new terminal sessions (terminal_create), agent bash sessions (bash_tool), and one-shot agent ExecCommand runs. Already-open sessions are unaffected, matching existing terminal config behavior.

Add 'load_terminal_env_vars' helper in bitfun-core config; add env_vars field to the persisted TerminalConfig (serde-default, backward compatible); add i18n keys (en-US/zh-CN/zh-TW) under terminal.envVars.

Summary

Fixes #

Type and Areas

Type:

Areas:

Motivation / Impact

Verification

Reviewer Notes

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

…and agent commands

Persist a user-editable 'terminal.env_vars' map and expose it in Settings (BasicsConfig) as an editable Key/Value table with one-click import from .env-style files (KEY=VALUE / export KEY=VALUE / KEY:VALUE, skipping #-comments).

Inject the vars live at three execution paths so changes take effect for new sessions without restart: new terminal sessions (terminal_create), agent bash sessions (bash_tool), and one-shot agent ExecCommand runs. Already-open sessions are unaffected, matching existing terminal config behavior.

Add 'load_terminal_env_vars' helper in bitfun-core config; add env_vars field to the persisted TerminalConfig (serde-default, backward compatible); add i18n keys (en-US/zh-CN/zh-TW) under terminal.envVars.
@SWangHash
SWangHash merged commit df30c70 into main Jul 15, 2026
1 of 2 checks passed
@SWangHash
SWangHash deleted the rebase_6 branch July 24, 2026 03:26
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.

1 participant