Skip to content

Commit ea2e62a

Browse files
committed
refactor: always enable collaboration modes and remove feature toggle
1 parent 5fdb9af commit ea2e62a

File tree

4 files changed

+6
-30
lines changed

4 files changed

+6
-30
lines changed

src/App.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ function MainApp() {
411411
setSelectedCollaborationModeId,
412412
} = useCollaborationModes({
413413
activeWorkspace,
414-
enabled: appSettings.collaborationModesEnabled,
414+
enabled: true,
415415
preferredModeId: preferredCollabModeId,
416416
selectionKey: threadCodexSelectionKey,
417417
onDebug: addDebugEntry,
@@ -437,9 +437,7 @@ function MainApp() {
437437
modelShortcut: appSettings.composerModelShortcut,
438438
accessShortcut: appSettings.composerAccessShortcut,
439439
reasoningShortcut: appSettings.composerReasoningShortcut,
440-
collaborationShortcut: appSettings.collaborationModesEnabled
441-
? appSettings.composerCollaborationShortcut
442-
: null,
440+
collaborationShortcut: appSettings.composerCollaborationShortcut,
443441
models,
444442
collaborationModes,
445443
selectedModelId,

src/features/app/hooks/useMenuAcceleratorController.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ export function useMenuAcceleratorController({ appSettings, onDebug }: Params) {
6868
},
6969
{
7070
id: "composer_cycle_collaboration",
71-
shortcut: appSettings.collaborationModesEnabled
72-
? appSettings.composerCollaborationShortcut
73-
: null,
71+
shortcut: appSettings.composerCollaborationShortcut,
7472
},
7573
],
7674
[
@@ -82,7 +80,6 @@ export function useMenuAcceleratorController({ appSettings, onDebug }: Params) {
8280
appSettings.cycleAgentPrevShortcut,
8381
appSettings.cycleWorkspaceNextShortcut,
8482
appSettings.cycleWorkspacePrevShortcut,
85-
appSettings.collaborationModesEnabled,
8683
appSettings.newAgentShortcut,
8784
appSettings.newCloneAgentShortcut,
8885
appSettings.newWorktreeAgentShortcut,

src/features/settings/components/SettingsNav.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Keyboard from "lucide-react/dist/esm/icons/keyboard";
55
import GitBranch from "lucide-react/dist/esm/icons/git-branch";
66
import TerminalSquare from "lucide-react/dist/esm/icons/terminal-square";
77
import FileText from "lucide-react/dist/esm/icons/file-text";
8-
import FlaskConical from "lucide-react/dist/esm/icons/flask-conical";
8+
// import FlaskConical from "lucide-react/dist/esm/icons/flask-conical";
99
import ExternalLink from "lucide-react/dist/esm/icons/external-link";
1010
import Layers from "lucide-react/dist/esm/icons/layers";
1111
import ServerCog from "lucide-react/dist/esm/icons/server-cog";
@@ -116,6 +116,7 @@ export function SettingsNav({
116116
>
117117
Codex
118118
</PanelNavItem>
119+
{/* Features tab hidden - no current options relevant to OpenCode
119120
<PanelNavItem
120121
className="settings-nav"
121122
icon={<FlaskConical aria-hidden />}
@@ -125,6 +126,7 @@ export function SettingsNav({
125126
>
126127
Features
127128
</PanelNavItem>
129+
*/}
128130
</PanelNavList>
129131
</aside>
130132
);

src/features/settings/components/sections/SettingsFeaturesSection.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,6 @@ export function SettingsFeaturesSection({
4545
<div className="settings-subsection-subtitle">
4646
Production-ready features enabled by default.
4747
</div>
48-
<div className="settings-toggle-row">
49-
<div>
50-
<div className="settings-toggle-title">Collaboration modes</div>
51-
<div className="settings-toggle-subtitle">
52-
Enable collaboration mode presets (Code, Plan).
53-
</div>
54-
</div>
55-
<button
56-
type="button"
57-
className={`settings-toggle ${appSettings.collaborationModesEnabled ? "on" : ""}`}
58-
onClick={() =>
59-
void onUpdateAppSettings({
60-
...appSettings,
61-
collaborationModesEnabled: !appSettings.collaborationModesEnabled,
62-
})
63-
}
64-
aria-pressed={appSettings.collaborationModesEnabled}
65-
>
66-
<span className="settings-toggle-knob" />
67-
</button>
68-
</div>
6948
<div className="settings-toggle-row">
7049
<div>
7150
<div className="settings-toggle-title">Personality</div>

0 commit comments

Comments
 (0)