fix: Add coder reference to commands

This commit is contained in:
Paul Gauthier 2024-08-01 14:52:59 -03:00 committed by Paul Gauthier (aider)
parent b0e6373c77
commit 0ea2b8bcfe

View file

@ -21,7 +21,6 @@ from rich.console import Console, Text
from rich.markdown import Markdown
from aider import __version__, models, prompts, urls, utils
from aider.coders import Coder
from aider.commands import Commands
from aider.history import ChatSummary
from aider.io import InputOutput
@ -269,6 +268,7 @@ class Coder:
self.show_diffs = show_diffs
self.commands = commands or Commands(self.io, self)
self.commands.coder = self
self.repo = repo
if use_git and self.repo is None: