fix(ui): close editor mode when opening settings#1422
fix(ui): close editor mode when opening settings#1422arnestrickmann merged 4 commits intogeneralaction:mainfrom
Conversation
|
@shreyaspapi is attempting to deploy a commit to the General Action Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR fixes a bug where opening settings while the in-app Key changes:
Issue found:
Confidence Score: 3/5
|
| Filename | Overview |
|---|---|
| src/renderer/views/Workspace.tsx | Fix correctly closes editor mode before opening settings via the titlebar button, but the same code path bug remains in the native OS menu "Settings" handler (line 160) which still calls openSettingsPage() directly without dismissing the editor overlay. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A([User triggers Settings]) --> B{Entry point}
B -->|Titlebar button| C[handleToggleSettingsPage]
B -->|Native OS menu| D[onMenuOpenSettings handler]
B -->|Command palette| E[openSettingsPage directly]
B -->|Update notifier| F[openSettingsPage directly]
C --> G{showSettingsPage?}
G -->|Yes| H[handleCloseSettingsPage]
G -->|No| I[setShowEditorMode false ✅ FIXED]
I --> J[openSettingsPage]
D --> K[openSettingsPage ⚠️ skips setShowEditorMode]
E --> K
F --> K
J --> L{showEditorMode was true?}
K --> L
L -->|No| M[Settings renders visibly ✅]
L -->|Yes| N[CodeEditor overlay still active ❌ Settings hidden]
Comments Outside Diff (1)
-
src/renderer/views/Workspace.tsx, line 158-164 (link)Native menu "Settings" still bypasses the fix
The same bug this PR addresses — settings rendered hidden behind the
CodeEditoroverlay when editor mode is active — still exists when the user opens settings via the native OS menu bar. TheonMenuOpenSettingshandler callsopenSettingsPage()directly without first callingsetShowEditorMode(false).
Last reviewed commit: 220b2a3
There was a problem hiding this comment.
hey @shreyaspapi
this fix is still incomplete. there are 2 additional entry points that still have this bug:
im mentioning them along with the changes so you can fix them directly
1. Update notifier (line ~260)
```tsx
// Current (needs fix):
onOpenSettings: () => openSettingsPage('general')
// Fix:
onOpenSettings: () => { setShowEditorMode(false); openSettingsPage('general'); }
```
2. Command palette handlers (lines ~476-477)
```tsx
// Current (needs fix):
handleOpenSettings={() => openSettingsPage()}
handleOpenKeyboardShortcuts={() => openSettingsPage('interface')}
// Fix:
handleOpenSettings={() => { setShowEditorMode(false); openSettingsPage(); }}
handleOpenKeyboardShortcuts={() => { setShowEditorMode(false); openSettingsPage('interface'); }}
```
do address them as well
|
Fixed the two remaining entry points in c9d5332: |
Yeah maybe that would be better |
|
Could you do that change? |
|
Hey yes doing the change now got caught up on something else.
…On Thu, 12 Mar 2026 at 9:19 PM, Arne Strickmann ***@***.***> wrote:
*arnestrickmann* left a comment (generalaction/emdash#1422)
<#1422 (comment)>
Could you do that change?
—
Reply to this email directly, view it on GitHub
<#1422 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFKKMQVOLJXWJUJGHMMGIE34QLL67AVCNFSM6AAAAACWOUQB5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DANBXHA2TAMZWGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
…tor mode Keep the file explorer sidebar visible when opening settings from any entry point (titlebar, menu, command palette, update notifier). Settings now renders in the CodeEditor content area, replacing the Monaco editor, while the file tree stays intact. The right sidebar is auto-collapsed while settings is shown and restored on close.
ef4ecb9 to
79557c6
Compare
|
@shreyaspapi thanks! |
|
How does it look now in the latest iteration? |



Summary
When the in-app editor (EditorMode) is open, clicking the Settings button had no visible effect — it set
showSettingsPage=truebut theMainContentAreawhereSettingsPagerenders was hidden viadisplay: nonebehind the editor overlay.Fix: call
setShowEditorMode(false)before opening settings in both entry points:handleToggleSettingsPage)onMenuOpenSettings)Fixes
Fixes #1367
Snapshot
Screen.Recording.2026-03-12.at.12.20.24.AM.mov
Type of change
Mandatory Tasks
Checklist
pnpm run format)pnpm run lint)