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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: address PR review feedback (round 3)
Adam Eivyfbe2b85d9186
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 90fc60b968..0c8b36ada9 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -132,11 +132,14 @@ jobs:# Commit the renamed and updated changeloggit add "$VERSIONED_FILE"git commit -m "docs: archive changelog for v${CURRENT_VERSION} [skip ci]"++ # Capture the changelog commit hash before switching branches+ CHANGELOG_COMMIT=$(git rev-parse HEAD)git push origin dev# Merge changelog back to main (without triggering CI)git checkout main- git cherry-pick HEAD~1+ git cherry-pick "$CHANGELOG_COMMIT"git push origin maingit checkout devfidiff --git a/client/src/components/FolderPicker.jsx b/client/src/components/FolderPicker.jsxindex 67f3e24b02..179cf2cbbb 100644--- a/client/src/components/FolderPicker.jsx+++ b/client/src/components/FolderPicker.jsx@@ -76,14 +76,19 @@ export default function FolderPicker({ value, onChange }) {</button>{isOpen && (- <div className="fixed inset-0 bg-black/50 flex items-center justify-center z-50">+ <div+ className="fixed inset-0 bg-black/50 flex items-center justify-center z-50"+ role="dialog"+ aria-modal="true"+ aria-labelledby="folder-picker-title"+ ><divref={modalRef}className="bg-port-card border border-port-border rounded-xl w-full max-w-lg max-h-[80vh] flex flex-col shadow-2xl">{/* Header */}<div className="flex items-center justify-between p-4 border-b border-port-border">- <h3 className="text-lg font-semibold text-white">Select Folder</h3>+ <h3 id="folder-picker-title" className="text-lg font-semibold text-white">Select Folder</h3><buttontype="button"onClick={() => setIsOpen(false)}diff --git a/client/src/components/cos/tabs/ScheduleTab.jsx b/client/src/components/cos/tabs/ScheduleTab.jsxindex 043dcbbf6a..f77133c010 100644--- a/client/src/components/cos/tabs/ScheduleTab.jsx+++ b/client/src/components/cos/tabs/ScheduleTab.jsx@@ -60,9 +60,12 @@ function TaskTypeRow({ taskType, config, onUpdate, onTrigger, onReset, category,const handleProviderChange = async (newProviderId) => {setUpdating(true);setSelectedProviderId(newProviderId);+ // Reset model when provider changes to avoid stale/invalid model selection+ setSelectedModel('');const providerId = newProviderId === '' ? null : newProviderId;- await onUpdate(taskType, { providerId }).catch(() => {+ await onUpdate(taskType, { providerId, model: null }).catch(() => {setSelectedProviderId(config.providerId || '');+ setSelectedModel(config.model || '');});setUpdating(false);};diff --git a/client/src/pages/AIProviders.jsx b/client/src/pages/AIProviders.jsxindex d969d1934c..e13ae71eac 100644--- a/client/src/pages/AIProviders.jsx+++ b/client/src/pages/AIProviders.jsx@@ -402,8 +402,8 @@ function ProviderForm({ provider, onClose, onSave, allProviders = [] }) {const availableModels = formData.models || [];- // Filter out current provider from fallback options- const fallbackOptions = allProviders.filter(p => p.id !== provider?.id && p.enabled);+ // Filter out current provider from fallback options (treat undefined enabled as enabled)+ const fallbackOptions = allProviders.filter(p => p.id !== provider?.id && p.enabled !== false);const handleSubmit = async (e) => {e.preventDefault();diff --git a/server/cos-runner/index.js b/server/cos-runner/index.jsindex d383e2296f..0782ec0650 100644--- a/server/cos-runner/index.js+++ b/server/cos-runner/index.js@@ -218,7 +218,7 @@ app.post('/spawn', async (req, res) => {// Use new CLI params if provided, otherwise fallback to legacy Claude defaultslet command, spawnArgs;- if (cliCommand && cliArgs) {+ if (cliCommand && cliArgs !== undefined) {command = cliCommand;// Normalize cliArgs to an arrayif (Array.isArray(cliArgs)) {diff --git a/server/index.js b/server/index.jsindex 1ab8b9c548..d9101b4368 100644--- a/server/index.js+++ b/server/index.js@@ -63,14 +63,18 @@ const io = new Server(httpServer, {// Initialize socket handlersinitSocket(io);+// Build absolute paths from __dirname to ensure consistency regardless of cwd+const DATA_DIR = `${__dirname}/../data`;+const DATA_SAMPLE_DIR = `${__dirname}/../data.sample`;+// Initialize AI Toolkit with PortOS configuration and hooksconst aiToolkit = createAIToolkit({- dataDir: './data',+ dataDir: DATA_DIR,providersFile: 'providers.json',runsDir: 'runs',promptsDir: 'prompts',- screenshotsDir: './data/screenshots',- sampleProvidersFile: './data.sample/providers.json',+ screenshotsDir: `${DATA_DIR}/screenshots`,+ sampleProvidersFile: `${DATA_SAMPLE_DIR}/providers.json`,io,asyncHandler,hooks: {diff --git a/server/lib/taskParser.js b/server/lib/taskParser.jsindex e760f3db69..3c3441adf2 100644--- a/server/lib/taskParser.js+++ b/server/lib/taskParser.js@@ -108,7 +108,10 @@ function unescapeNewlines(value) {// Fall through to legacy behavior if parsing fails}}- // Legacy fallback for backwards compatibility with existing data+ // Legacy fallback for backwards compatibility with pre-sentinel data only.+ // New values with special characters always use the sentinel prefix (see escapeNewlines),+ // so this branch only runs on historical data that was escaped with the old method.+ // Values that were never intended to be newline-escaped won't have \\n sequences.return value.replace(/\\n/g, '\n');}