Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit d7569d7

Browse files
committed
prevent the editor when agent busy
1 parent ed3518d commit d7569d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/tui/components/chat/editor.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
132132
}
133133
case tea.KeyMsg:
134134
if key.Matches(msg, focusedKeyMaps.OpenEditor) {
135+
if m.app.CoderAgent.IsSessionBusy(m.session.ID) {
136+
return m, util.ReportWarn("Agent is working, please wait...")
137+
}
135138
return m, openEditor()
136139
}
137140
// if the key does not match any binding, return

0 commit comments

Comments
 (0)