Skip to content

Commit ef557d6

Browse files
author
Your Name
committed
Fix mode switch indicator in TUI
1 parent de5772a commit ef557d6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cecli/tui/worker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ async def _handle_switch_coder_signal(self, switch):
156156
else:
157157
new_coder.show_announcements()
158158

159-
edit_format = getattr(target_coder, "edit_format", "code") or "code"
159+
edit_format = kwargs.get(
160+
"edit_format", getattr(target_coder, "edit_format", "code") or "code"
161+
)
160162
self.output_queue.put(
161163
{
162164
"type": "mode_change",

0 commit comments

Comments
 (0)