fix(dashboard): align droid config diagnostics with factory paths

- replace ~/.config/factory/config.json diagnostics with legacy ~/.factory/config.json

- keep ~/.factory/settings.json as the primary BYOK source in UI + API payload

- update droid dashboard tests and frontend typings for legacyConfig
This commit is contained in:
Tam Nhu Tran
2026-02-25 23:26:23 +07:00
parent bc079bc886
commit c6d2e71ec2
5 changed files with 21 additions and 32 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ export interface DroidDashboardDiagnostics {
binary: DroidBinaryDiagnostics;
files: {
settings: DroidConfigFileDiagnostics;
globalConfig: DroidConfigFileDiagnostics;
legacyConfig: DroidConfigFileDiagnostics;
};
byok: {
activeModelSelector: string | null;
+1 -1
View File
@@ -147,7 +147,7 @@ export function DroidPage() {
</CardTitle>
</CardHeader>
<CardContent className="space-y-3">
{[diagnostics.files.settings, diagnostics.files.globalConfig].map((file) => (
{[diagnostics.files.settings, diagnostics.files.legacyConfig].map((file) => (
<div key={file.label} className="rounded-md border p-3 space-y-1.5">
<div className="flex items-center justify-between gap-2">
<span className="font-medium text-sm">{file.label}</span>