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
Release v1.41.1
Released: 2026-04-03
Added
- AI-powered narrative summaries for JIRA weekly status reports (tries each API provider until one succeeds)
Changed
- JIRA reports now filter to current user's tickets only via
currentUser()JQL - Status report UI simplified to personal weekly status format with copy-to-clipboard
- Ticket keys rendered as clickable JIRA links anywhere in report text
Changed
- Pin all npm dependencies to exact versions across all packages (no more
^or~ranges) to prevent supply chain attacks - Heavy-mode dependency audit — 15 packages flagged for removal, full replacement plan saved to PLAN.md
- Replace
axioswith ownedserver/lib/httpClient.js(fetch-based, AbortSignal.timeout, self-signed TLS via https.Agent) - Replace
multerwith ownedserver/lib/multipart.js(streaming multipart parser, no memory buffering, safe for 500MB+ files) - Replace
unzipperwith ownedserver/lib/zipStream.js(streaming ZIP parser via zlib.createInflateRaw, DEFLATE + stored entries) - Remove
corspackage from scaffold-generated project templates; generated code now uses inline CORS middleware
Changed
- Replace
node-telegram-bot-apiwith ownedserver/lib/telegramClient.js(fetch-based polling loop, all bot methods) - Replace
supertestwith ownedserver/lib/testHelper.js(HTTP server lifecycle + fetch-based request wrapper; 9 test files updated) - Replace
react-hot-toastwith ownedclient/src/components/ui/Toast.jsx(module-level store, Toaster component; 101 import sites updated) - Replace
react-markdownwith inline regex block/inline parser inMarkdownOutput.jsx(h1–h6, bold, italic, code, tables, lists, links) - Replace
react-diff-viewer-continuedwith inline Myers LCS diff inCrossDomainTab.jsx;InlineDiffwrapped withReact.memo - Replace
fflatedirect usage with nativeDecompressionStream+ inline EOCD ZIP parser inGenomeTab.jsx
Changed
- God file decomposition: split
server/routes/cos.js(1,464 lines) into 9 focused sub-modules (cosStatusRoutes,cosTaskRoutes,cosAgentRoutes,cosReportRoutes,cosLearningRoutes,cosScheduleRoutes,cosJobRoutes,cosTemplateRoutes,cosInsightRoutes) - God file decomposition: split
server/routes/scaffold.js(1,667 lines) into 4 template generators (scaffoldVite,scaffoldExpress,scaffoldIOS,scaffoldPortOS) - God file decomposition: split
client/src/services/api.js(2,016 lines) into 27 domain sub-modules with barrel re-export; no consumer imports changed - Block npm postinstall scripts by default via
.npmrcignore-scripts=true;install:allexplicitly rebuilds trusted packages (esbuild,node-pty) - Move Digital Twin work to backlog; promote god file decomposition to Next Up in PLAN.md
- God file decomposition: split
server/services/digital-twin.js(2,970 lines) into 10 focused modules (digital-twin-constants,digital-twin-helpers,digital-twin-meta,digital-twin-documents,digital-twin-testing,digital-twin-enrichment,digital-twin-export,digital-twin-context,digital-twin-analysis,digital-twin-import,digital-twin-status);digital-twin.jsis now a thin barrel re-export
Fixed
- Scheduled AI jobs (e.g. Daily Briefing) could get permanently stuck as "Due" if agent spawn failed —
task:readyhandler now catches errors and emitsjob:spawn-failedto re-register the timer; 5-minute spawning timeout also re-registers as safety net - Bug:
providerOverridewas incorrectly passed as model argument inprocessEnrichmentAnswer; corrected tomodelOverride - Dynamic
import()ofsafeJSONParseinsideanalyzeEnrichmentListreplaced with static top-level import loadMeta()was called inside per-document loop inanalyzeAssessment; hoisted out to load once
Changed
getDocuments()now parallelizes allstat()calls withPromise.allgetAllTwinContent()now parallelizes allreadFile()calls withPromise.all- Added
extractJSON()andensureDocumentInMeta()helpers todigital-twin-helpers.js; three duplicate document-push blocks in enrichment module replaced with helper calls
Changed
- God file decomposition: split
server/services/subAgentSpawner.js(3,820 lines) into 9 focused modules (agentState,agentModelSelection,agentRunTracking,agentErrorAnalysis,agentCompletion,agentPromptBuilder,agentCliSpawning,agentLifecycle,agentManagement); main file is now a 187-line orchestrator with re-exports for backward compatibility isTruthyMeta/isFalsyMetaconsolidated intoagentState.js(single source of truth)terminateAgent/killAgentrunner path de-duplicated via sharedterminateRunnerAgenthelperkillAllAgentsnow terminates all agents in parallel withPromise.allbuildAgentPromptcontext fetches (memory, CLAUDE.md, digital twin, tools) and.planning/file reads now run in parallelsafeParseinagentCliSpawning.jsreplaced withsafeJSONParsefrom fileUtils- Removed TOCTOU
existsSyncguards inagentPromptBuilder.js; rely on.catch(() => null)instead
Fixed
- Auto-update from the UI was failing at
git fetchstep — switched fromportos-update.sh(tag checkout) toupdate.sh(git pull --rebase) which adds STEP markers for UI progress, completion markers for boot-time result recording, and Windows support viaupdate.ps1 - Scheduled AI jobs (e.g. Daily Briefing) could get permanently stuck as "Due" if agent spawn failed —
task:readyhandler now catches errors and emitsjob:spawn-failedto re-register the timer httpClient.jsnow rejects hanging promise when signal is pre-aborted; toast shown on task add failure- JIRA report provider discovery now tries all available API providers instead of failing on first unreachable one
agentCliSpawning.jsimportedcompleteExecution/errorExecutionfromexecutionLanes.js(wrong module); corrected to import fromtoolStateMachine.js, fixing server crash on startup- OpenClaw stream route now calls
res.flushHeaders()before proxying SSE so headers reach the client immediately - OpenClaw stream reader loop wrapped in try/catch to handle AbortError on client disconnect without unhandled rejection
- Orphaned
htmlFor="compact-task-app"sr-only label inTaskAddFormcompact mode removed (referenced select id that no longer exists after AppContextPicker refactor) - XSS:
MarkdownOutput.jsxlinks now validatehrefprotocol (allowhttp://,https://,/only); unsafe URIs render as plain text - Toast notifications missing background color — added
bg-port-cardwith border InlineDiffword diff usedSetwhich collapsed duplicate common words; replaced with sequential LCS pointer matchinghttpClient.jsnow auto-setsContent-Type: application/jsonwhen sending JSON bodyzipStream.jssanitizes ZIP entry paths (normalizes separators, strips..and.components)multipart.jssanitizes file extension to alphanumeric characters only
Added
AppContextPickercomponent — reusable app selector with repo path display; replaces inline<select>inTaskAddForm(compact and full modes)- OpenClaw operator chat: SSE streaming with optimistic UI (user + streaming assistant placeholder appear immediately)
- OpenClaw: file/image attachment support — drag & drop, paste screenshots, file picker
- OpenClaw: app context, directory context, and extra instructions fields sent with messages
- OpenClaw: Stop/Cancel button aborts in-flight stream via AbortController
- OpenClaw: Cmd/Ctrl+Enter keyboard shortcut submits the composer
- OpenClaw: auto-scroll to latest message during streaming
- OpenClaw: collapsible "older chats" section for sessions beyond the top 6 non-empty ones
- OpenClaw: synthetic default session injected when
defaultSessionconfig key has no matching session formatDateTimeadded toclient/src/utils/formatters.js(medium date + short time viaIntl.DateTimeFormat)readFileAsBase64exported fromclient/src/utils/fileUpload.jsfor reuse across components
Changed
- OpenClaw integration rewritten to use OpenResponses
/v1/responsesAPI and/tools/invokefor session discovery normalizeAttachmentbuilds OpenAI-compatibleinput_image/input_fileblocks from base64 or URL sourcesstreamSessionMessageproxies upstream SSE withtimeoutMs: 0for long-running streaming responsesfetchWithTimeoutacceptstimeoutMs: 0to opt out of the timeout (needed for streaming)loadRuntimestabilized viaselectedSessionIdRef— session switches no longer trigger a full runtime reload- After send, session
lastMessageAtupdated locally instead of triggering a fullloadRuntime()reload contextstate in OpenClaw simplified — removed derivedappName/repoPath; computed at send time- Duplicate
setMessagesupdate pattern inhandleSendextracted intoupdateAssistant(updater)helper
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v1.41.0...v1.41.1