fix: enable Codex Apply/Reset buttons when CLI is installed (closes #591) (#606)

This commit is contained in:
Anurag Saxena
2026-04-17 01:23:02 -04:00
committed by GitHub
parent f27db5429d
commit 877b7446bb

View File

@@ -350,10 +350,10 @@ model = "${effectiveSubagentModel}"
)}
<div className="flex items-center gap-2">
<Button variant="primary" size="sm" onClick={handleApplySettings} disabled={!selectedApiKey || !selectedModel} loading={applying}>
<Button variant="primary" size="sm" onClick={handleApplySettings} disabled={(!selectedApiKey && (cloudEnabled && apiKeys.length > 0)) || !selectedModel} loading={applying}>
<span className="material-symbols-outlined text-[14px] mr-1">save</span>Apply
</Button>
<Button variant="outline" size="sm" onClick={handleResetSettings} disabled={!codexStatus.has9Router} loading={restoring}>
<Button variant="outline" size="sm" onClick={handleResetSettings} disabled={restoring} loading={restoring}>
<span className="material-symbols-outlined text-[14px] mr-1">restore</span>Reset
</Button>
<Button variant="ghost" size="sm" onClick={() => setShowManualConfigModal(true)}>