Project
ide
Description
In the JSON settings editor (accessed by clicking the JSON button in the Settings panel), there are two places that show the keyboard shortcut for the Format Document command:
The right-click context menu (Monaco's native context menu) — shows Ctrl+Shift+I
The bottom footer bar of the JSON editor — shows Shift+Alt+F
These two references directly contradict each other. A user who reads the context menu will try Ctrl+Shift+I and find it does something unrelated (or nothing). A user who reads the footer will try Shift+Alt+F, which does work but is never confirmed by the context menu. There is no way to tell from the UI alone which shortcut is the authoritative one.
Error Message
Debug Logs
System Information
Cortex IDE v0.1.0
OS: Ubuntu 25.10 (Questing Quokka), 64-bit (x86_64)
CPU: 13th Gen Intel Core i7-13650HX
RAM: 15 GB total
Screenshots
Steps to Reproduce
- Launch Cortex IDE.
- Click the Settings button in the top navbar (next to the AI model name).
- Click the JSON button at the top-right of the Settings dialog.
- Right-click anywhere in the JSON editor text area to open the context menu.
- Find the "Format Document" entry — note the keyboard shortcut displayed (Ctrl+Shift+I).
- Dismiss the context menu.
- Read the bottom footer bar of the same JSON editor panel — note the keyboard shortcut displayed (Shift+Alt+F).
- Observe the contradiction.
Expected Behavior
Both the right-click context menu and the bottom footer bar should reference the same keyboard shortcut for Format Document (Shift+Alt+F). The custom cortex.formatDocument action should appear in the context menu (replacing the Monaco built-in entry) so the shortcut shown in the context menu matches the one shown in the footer and the one that is actually registered for this editor instance
Actual Behavior
The context menu shows Ctrl+Shift+I (Monaco's built-in editor.action.formatDocument keybinding) because the custom cortex.formatDocument action registered in JsonSettingsEditor.tsx lacks contextMenuGroupId and therefore never appears in the context menu. The footer independently hardcodes Shift+Alt+F, creating a visible and confusing contradiction between the two surfaces.
Additional Context
- The regular editor avoids this exact problem by including contextMenuGroupId: "1_modification" in its cortex.formatDocument registration in FormatterIntegration.tsx.
- The JSON settings editor's cortex.formatDocument registration is a copy of that pattern but is missing the context menu configuration entirely.
- Root-cause class: missing contextMenuGroupId in addAction causing fallback to Monaco built-in with a different keybinding, combined with a hardcoded footer label that is not derived from the registered action
Project
ide
Description
In the JSON settings editor (accessed by clicking the JSON button in the Settings panel), there are two places that show the keyboard shortcut for the Format Document command:
The right-click context menu (Monaco's native context menu) — shows Ctrl+Shift+I
The bottom footer bar of the JSON editor — shows Shift+Alt+F
These two references directly contradict each other. A user who reads the context menu will try Ctrl+Shift+I and find it does something unrelated (or nothing). A user who reads the footer will try Shift+Alt+F, which does work but is never confirmed by the context menu. There is no way to tell from the UI alone which shortcut is the authoritative one.
Error Message
Debug Logs
System Information
Screenshots
Steps to Reproduce
Expected Behavior
Both the right-click context menu and the bottom footer bar should reference the same keyboard shortcut for Format Document (Shift+Alt+F). The custom cortex.formatDocument action should appear in the context menu (replacing the Monaco built-in entry) so the shortcut shown in the context menu matches the one shown in the footer and the one that is actually registered for this editor instance
Actual Behavior
The context menu shows Ctrl+Shift+I (Monaco's built-in editor.action.formatDocument keybinding) because the custom cortex.formatDocument action registered in JsonSettingsEditor.tsx lacks contextMenuGroupId and therefore never appears in the context menu. The footer independently hardcodes Shift+Alt+F, creating a visible and confusing contradiction between the two surfaces.
Additional Context