@@ -132,6 +132,9 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
133 case tea.KeyMsg:
133 case tea.KeyMsg:
134 if key.Matches(msg, focusedKeyMaps.OpenEditor) {
134 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...")
135 return m, openEditor()
138 return m, openEditor()
137 // if the key does not match any binding, return
140 // if the key does not match any binding, return