Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
Update editor flag handling for prompts vs JSON
Dane Schneider0aa8cbaaf771
diff --git a/app/cli/cmd/plan_exec_helpers.go b/app/cli/cmd/plan_exec_helpers.goindex faf509ce..285f90e3 100644--- a/app/cli/cmd/plan_exec_helpers.go+++ b/app/cli/cmd/plan_exec_helpers.go@@ -34,7 +34,7 @@ var tellSmartContext boolvar noExec boolvar autoDebug int-var editor string+var editor = EditorTypeVim // default to vimvar editorSetByFlag boolfunc init() {@@ -203,7 +203,11 @@ func mustSetPlanExecFlagsWithConfig(cmd *cobra.Command, config *shared.PlanConfi}}- if !editorSetByFlag {+ // tell command editor is no longer tied to config *unless* it's set to vim or nano+ // otherwise, the flag or EDITOR env var are used+ // config.Editor is now used for mainly for JSON editing (and perhaps other purposes)+ // this is because it's pretty rare to use the editor for writing prompts now rather than the REPL+ if !editorSetByFlag && (config.Editor == shared.EditorTypeVim || config.Editor == shared.EditorTypeNano) {editor = config.Editor}