mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
section 4: Phase 4: Permission mode toggle in the composer and default
This commit is contained in:
1 parent
f85531f2d3
commit
dd4db97c0b
14 files changed
+379
No files matched your search
@@ -27,6 +27,7 @@ import { SessionStatusIndicator } from '@/components/ui/session-status-indicator
|
||||
import { ModelQuickSelect } from '@/components/model/ModelQuickSelect'
|
||||
import { AgentQuickSelect } from '@/components/agent/AgentQuickSelect'
|
||||
import { VoiceStatusOverlay, type VoiceStatusOverlayState } from './VoiceStatusOverlay'
|
||||
import { PermissionModeToggle } from '@/components/session/PermissionModeToggle'
|
||||
import { detectMentionTrigger, parsePromptToInput, getFilename, filterAgentsByQuery } from '@/lib/promptParser'
|
||||
import { getNextPrimaryAgentId } from '@/lib/primaryAgents'
|
||||
import { randomId } from '@/lib/utils'
|
||||
@@ -1345,6 +1346,7 @@ return (
|
||||
open={isModelPickerOpen}
|
||||
onOpenChange={setIsModelPickerOpen}
|
||||
/>
|
||||
{directory && <PermissionModeToggle sessionID={sessionID} directory={directory} />}
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
@@ -1354,6 +1356,7 @@ return (
|
||||
onAgentChange={handleAgentChange}
|
||||
isBashMode={isBashMode}
|
||||
/>
|
||||
{directory && <PermissionModeToggle sessionID={sessionID} directory={directory} />}
|
||||
{isSessionActive && (
|
||||
<div className="px-2.5 py-1.5 md:px-3 md:py-2 rounded-lg text-xs md:text-sm font-medium text-muted-foreground max-w-[120px] md:max-w-[180px]">
|
||||
<SessionStatusIndicator sessionID={sessionID} showLabel />
|
||||
|
||||
Reference in new issue
Block a user