Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: replace full python path with python version badge in video render section

[._.]/ Adam Eivyb3736afd3c15
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index 12ca4b1efd..e9f6527251 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -667,13 +667,16 @@ export default function VideoGen() {
<div className="space-y-3">
<div className="flex items-center justify-between gap-2 text-xs">
{status ? (
- <span className={`inline-flex items-center gap-1.5 px-2 py-1 rounded-full border ${
- status.connected
- ? 'border-port-success/40 bg-port-success/10 text-port-success'
- : 'border-port-error/40 bg-port-error/10 text-port-error'
- }`}>
+ <span
+ className={`inline-flex items-center gap-1.5 px-2 py-1 rounded-full border ${
+ status.connected
+ ? 'border-port-success/40 bg-port-success/10 text-port-success'
+ : 'border-port-error/40 bg-port-error/10 text-port-error'
+ }`}
+ title={status.pythonPath || 'Local Python'}
+ >
{status.connected ? (
- <><span className="w-2 h-2 rounded-full bg-port-success" /> {status.pythonPath || 'local Python'}</>
+ <><span className="w-2 h-2 rounded-full bg-port-success" /> {status.pythonVersion ? `Python ${status.pythonVersion}` : 'Python'}</>
) : (
<>
<AlertTriangle className="w-3 h-3" />
diff --git a/server/lib/pythonSetup.js b/server/lib/pythonSetup.js
index 8e056ec1a4..48537b6a1f 100644
--- a/server/lib/pythonSetup.js
+++ b/server/lib/pythonSetup.js
@@ -501,6 +501,7 @@ export async function probePythonHealth(pythonPath) {
' "basePrefix": sys.base_prefix,',
' "stdlib": sysconfig.get_path("stdlib"),',
' "arch": platform.machine(),',
+ ' "pythonVersion": platform.python_version(),',
' "imports": imports,',
'}))',
].join('\n');
@@ -525,12 +526,13 @@ export async function probePythonHealth(pythonPath) {
missingPip: missing.map(pipNameFor),
externallyManaged,
interpreterArch: data.arch || null,
+ pythonVersion: data.pythonVersion || null,
};
}
export async function checkPackages(pythonPath) {
- const { installed, missing, missingPip } = await probePythonHealth(pythonPath);
- return { installed, missing, missingPip };
+ const { installed, missing, missingPip, pythonVersion } = await probePythonHealth(pythonPath);
+ return { installed, missing, missingPip, pythonVersion };
}
// Spawn a child, stream its stdout+stderr line-by-line via `onLog`, resolve
diff --git a/server/routes/videoGen.js b/server/routes/videoGen.js
index 7274e7d105..86beb477ef 100644
--- a/server/routes/videoGen.js
+++ b/server/routes/videoGen.js
@@ -324,10 +324,11 @@ const generateBodySchema = z.object({
router.get('/status', asyncHandler(async (_req, res) => {
const s = await getSettings();
const py = s.imageGen?.local?.pythonPath || null;
- const { connected, reason, missing } = await resolveLocalPythonHealth(py);
+ const { connected, reason, missing, pythonVersion } = await resolveLocalPythonHealth(py);
res.json({
connected,
pythonPath: py,
+ pythonVersion: pythonVersion || null,
reason,
missingPackages: missing,
// Each entry carries its optional `disclosure` block (provenance, weights/
@@ -571,18 +572,19 @@ router.get('/setup/runtime-install', asyncHandler(async (req, res) => {
}));
async function resolveLocalPythonHealth(py) {
- if (!py) return { connected: false, reason: 'Local Python not configured', missing: [] };
- if (!isAllowedPython(py)) return { connected: false, reason: 'Saved pythonPath is not a python interpreter', missing: [] };
+ if (!py) return { connected: false, reason: 'Local Python not configured', missing: [], pythonVersion: null };
+ if (!isAllowedPython(py)) return { connected: false, reason: 'Saved pythonPath is not a python interpreter', missing: [], pythonVersion: null };
try {
- const { missing } = await checkPackages(py);
- if (missing.length === 0) return { connected: true, reason: null, missing };
+ const { missing, pythonVersion } = await checkPackages(py);
+ if (missing.length === 0) return { connected: true, reason: null, missing, pythonVersion };
return {
connected: false,
reason: `${missing.length} python package${missing.length === 1 ? '' : 's'} missing: ${missing.join(', ')}`,
missing,
+ pythonVersion,
};
} catch (err) {
- return { connected: false, reason: `Python probe failed: ${err.message || err}`, missing: [] };
+ return { connected: false, reason: `Python probe failed: ${err.message || err}`, missing: [], pythonVersion: null };
}
}