We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d61b59 commit 99b0209Copy full SHA for 99b0209
2 files changed
aider/commands.py
@@ -28,8 +28,9 @@
28
29
30
class SwitchCoder(Exception):
31
- def __init__(self, **kwargs):
+ def __init__(self, placeholder=None, **kwargs):
32
self.kwargs = kwargs
33
+ self.placeholder = placeholder
34
35
36
class Commands:
aider/main.py
@@ -1109,6 +1109,10 @@ def get_io(pretty):
1109
except SwitchCoder as switch:
1110
coder.ok_to_warm_cache = False
1111
1112
+ # Set the placeholder if provided
1113
+ if hasattr(switch, 'placeholder') and switch.placeholder is not None:
1114
+ io.placeholder = switch.placeholder
1115
+
1116
kwargs = dict(io=io, from_coder=coder)
1117
kwargs.update(switch.kwargs)
1118
if "show_announcements" in kwargs:
0 commit comments