Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

continue command chat flag (for use in repl chat mode). action menu tweaks

Dane Schneiderf4b5f48a31a2
diff --git a/app/cli/cmd/continue.go b/app/cli/cmd/continue.go
index 490a0971..ea54d115 100644
--- a/app/cli/cmd/continue.go
+++ b/app/cli/cmd/continue.go
@@ -11,6 +11,10 @@ import (
"github.com/spf13/cobra"
)
+var (
+ chatOnly bool
+)
+
var continueCmd = &cobra.Command{
Use: "continue",
Aliases: []string{"c"},
@@ -21,6 +25,8 @@ var continueCmd = &cobra.Command{
func init() {
RootCmd.AddCommand(continueCmd)
+ continueCmd.Flags().BoolVar(&chatOnly, "chat", false, "Continue in chat mode (no file changes)")
+
initExecFlags(continueCmd, initExecFlagsParams{
omitFile: true,
omitEditor: true,
@@ -45,6 +51,7 @@ func doContinue(cmd *cobra.Command, args []string) {
ExecEnabled: !noExec,
AutoContext: tellAutoContext,
AutoApply: tellAutoApply,
+ IsChatOnly: chatOnly,
}
plan_exec.TellPlan(plan_exec.ExecParams{
diff --git a/app/cli/cmd/repl.go b/app/cli/cmd/repl.go
index a089b93a..d3d1de71 100644
--- a/app/cli/cmd/repl.go
+++ b/app/cli/cmd/repl.go
@@ -331,7 +331,7 @@ func executor(in string, p *prompt.Prompt) {
return
case cmd == "send" || cmd == lib.ReplCmdAliases["send"]:
- split := strings.Split(input, "\\send")
+ split := strings.Split(input, "\\s")
input = strings.TrimSpace(split[0])
input = strings.TrimSpace(input)
if input == "" {
@@ -406,6 +406,9 @@ func executor(in string, p *prompt.Prompt) {
}
fmt.Println()
execArgs := []string{matchedCmd}
+ if matchedCmd == "continue" && chatOnly {
+ execArgs = append(execArgs, "--chat")
+ }
execArgs = append(execArgs, args...)
_, err := lib.ExecPlandexCommand(execArgs)
if err != nil {
diff --git a/app/cli/plan_exec/action_menu.go b/app/cli/plan_exec/action_menu.go
index 5477cee7..73365078 100644
--- a/app/cli/plan_exec/action_menu.go
+++ b/app/cli/plan_exec/action_menu.go
@@ -77,9 +77,9 @@ func showHotkeyMenu(diffs []string) {
}
color.New(color.Bold, term.ColorHiGreen).Printf("🧐 %d %s pending changes\n", numDiffs, s)
- // for _, diff := range diffs {
- // fmt.Printf("β€’ %s\n", diff)
- // }
+ for _, diff := range diffs {
+ fmt.Printf("β€’ πŸ“„ %s\n", diff)
+ }
fmt.Println()
@@ -109,7 +109,7 @@ func showHotkeyMenu(diffs []string) {
color.New(color.FgHiWhite, color.Bold).Sprintf("↓"),
color.New(term.ColorHiMagenta, color.Bold).Sprintf("to select, or"),
color.New(color.FgHiWhite, color.Bold).Sprintf("enter"),
- color.New(term.ColorHiMagenta, color.Bold).Sprintf("to exit menu>"),
+ color.New(term.ColorHiMagenta, color.Bold).Sprintf("to exit menu/keep iterating>"),
)
}
@@ -190,7 +190,7 @@ func handleHotkeyOption(option hotkeyOption, diffs []string, params ExecParams)
fmt.Println()
} else if option.char == "g" {
fmt.Println()
- _, err := lib.ExecPlandexCommandWithParams([]string{"diffs"}, lib.ExecPlandexCommandParams{
+ _, err := lib.ExecPlandexCommandWithParams([]string{"diffs", "--git"}, lib.ExecPlandexCommandParams{
DisableSuggestions: true,
})
if err != nil {