feat(v0.5.3): shared workspace-entry helper; resume + last delegate; fresh_remote prompt

This commit is contained in:
2026-05-08 13:59:53 -04:00
parent 08fb5bb1c3
commit f5746df314
8 changed files with 447 additions and 25 deletions
+6 -4
View File
@@ -18,15 +18,17 @@ var lastCmd = &cobra.Command{
}
var (
lastShell bool
lastAgent string
lastForce bool
lastShell bool
lastAgent string
lastForce bool
lastDirect bool
)
func init() {
lastCmd.Flags().BoolVar(&lastShell, "shell", false, "Open shell instead of agent")
lastCmd.Flags().StringVarP(&lastAgent, "agent", "a", "", "Override agent command")
lastCmd.Flags().BoolVar(&lastForce, "force", false, "Skip active-session and stale-workspace warnings")
lastCmd.Flags().BoolVar(&lastDirect, "direct", false, "Bypass persistent session mode for this command")
rootCmd.AddCommand(lastCmd)
}
@@ -42,5 +44,5 @@ func runLast(cmd *cobra.Command, args []string) error {
os.Exit(1)
}
return doResume(best.Meta.Slug, false, lastShell, lastForce, lastAgent)
return doResume(best.Meta.Slug, false, lastShell, lastForce, lastAgent, lastDirect)
}