fix(cli): forward --yolo to TUI binary via DEEPSEEK_YOLO env

The CLI dispatcher accepted --yolo but only passed it to Exec(TuiPassthroughArgs),
not to the plain Run(RunArgs) path used for interactive sessions.

Fix: pass DEEPSEEK_YOLO=true env var to the TUI binary. The TUI already
reads this env var (matching DEEPSEEK_SANDBOX_MODE pattern) and sets
allow_shell + start_in_agent_mode + yolo.

Also adds yolo field to CliRuntimeOverrides and ResolvedRuntimeOptions
so the flag propagates through the full resolve chain.
This commit is contained in:
fuleinist
2026-05-09 00:26:13 +08:00
committed by Hunter Bown
parent c227a805bd
commit 665801bb8e
5 changed files with 24 additions and 0 deletions
+1
View File
@@ -37,6 +37,7 @@
# DEEPSEEK_APPROVAL_POLICY=on-request
# DEEPSEEK_SANDBOX_MODE=workspace-write
# DEEPSEEK_ALLOW_SHELL=true
# DEEPSEEK_YOLO=true
# Optional extension paths
# DEEPSEEK_SKILLS_DIR=~/.deepseek/skills