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
Release v1.46.0
Released: 2026-04-28
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v1.45.0...v1.46.0
Added
- CoS PR creation now supports GitLab repos via
glab. Previously hardcoded togh, so any managed app pointed at a GitLab remote failed at the PR-creation step with no recovery path.createPRnow parses theoriginURL, detects the forge from the host (github.com→gh,gitlab.com/*gitlab*.*→glab, elseghfallback), and routes to the right CLI with the right argument shape (also parses the URL out ofglab's multi-line stdout). GitHub repos retain the multi-accountGH_TOKENpinning introduced alongside this change; GitLab repos useglabas-is (single-user-per-host keyring needs no pinning). Recovery tasks spawned by PR-creation failures now emit forge-correct retry commands and terminology — GitLab tasks getglab mrcommands and "MR" wording instead of leading the recovery agent down aghdead-end. The internalgh*-prefixed fields oncreatePR's result (ghAccount,ghHost) were renamed to forge-agnosticaccount/hostandagentLifecyclePR-result logs now include the cli + host so cross-forge failures are diagnosable from a single line. Merge-conflict recovery is unchanged (those commands are plain git, host-agnostic). Files:server/services/git.js,server/services/git.test.js,server/services/agentLifecycle.js,server/services/cleanupAgentWorktree.test.js. - CoS scheduled task:
do-replan— weekly auto-audit of every managed app's PLAN.md. New scheduled task type that runs the bundled/do:replanslashdo command against each managed app on a configurable cadence (default: weekly, disabled per app — enable individually from the Schedule tab). Pairs with the manual/do:replanbutton shipped in the same release: the button is for one-shot triggering, this task is for autopilot. When enabled, the agent spins up a worktree on the app's repo, follows the fulldo:replanflow (archive completed items to DONE.md, prune stale items, surface 1-3 new opportunities, rewrite PLAN.md to be lean), commits, and opens a PR for the user to review — never pushes directly to the default branch. The task prompt uses a new{slashdoReplan}placeholder that resolves at runtime to the live body oflib/slashdo/commands/do/replan.md(mirrors the existing{reviewChecklist}pattern), so the slashdo command stays the single source of truth and any future edits to it propagate automatically without prompt-version bumps. Existing apps see the new task as disabled (per-app overrides default toenabled: false); newly-created apps inherit the same default. Files:server/services/taskSchedule.js(new entry inSELF_IMPROVEMENT_TASK_TYPES,DEFAULT_TASK_INTERVALS,DEFAULT_TASK_PROMPTS; generalized slashdo cache from a single-purpose_reviewChecklistCacheto a keyed_slashdoCache),server/services/cos.js(description copy),client/src/components/UpcomingTasksWidget.jsx(📋 icon),client/src/components/cos/tabs/TaskItem.jsx(description→type inference for replan/PLAN.md keywords),server/services/taskSchedule.test.js(3 new tests covering core-types membership, default interval shape, and{slashdoReplan}runtime substitution). /do:replanbutton under each app's Agent Operations section. Adds a sixth slashdo button to the Agent Operations row on every app's Overview tab (and to the server-side allowlist that gatesPOST /api/cos/tasks/slashdo) so the user can queue an automated PLAN.md audit/triage agent for any managed app the same way they queue/do:push,/do:review, etc. Clicking the cyan/do:replanbutton creates a CoS task pre-loaded with the upstreamlib/slashdo/commands/do/replan.mdcontent (which archives done items to DONE.md, prunes stale entries, and suggests new work), then routes the user to/cos/agentsto watch it run. Files:client/src/components/apps/SlashDoPanel.jsx,server/routes/cosTaskRoutes.js.- Ask Yourself — slice (b) closes: voice tool + ⌘K palette action. The text-chat half of "Ask Yourself" shipped on 2026-04-24, and per-turn promotions shipped on 2026-04-28; the remaining slice-(b) item — voice integration — is now done. New
ui_askvoice tool inserver/services/voice/tools.jsconsumesaskService.runAsk's async iterable (sources/delta/done/errorevents), accumulates the answer, and returns{ ok, content, sourceCount, sources, providerId, model, summary }. The tool's description tells the voice LLM to speakcontentverbatim, so the existing sentence-boundary TTS path inpipeline.jsreads it aloud — no new client-side wiring required. Tool is gated by a newaskintent group with a tight regex (ask my ?self|advise me|coach me|draft (a|an|my|me|something)|what.* on my plate|what (did|do|should) i (decide|think|believe|say|want|do)|why did i|when did i|recall (my|that|when)) so small tool-use models (qwen3-4b, granite, etc.) only see it on RAG-style turns and don't get tempted to call it on plain UI/capture phrasings.pipeline.jsnow propagates the voice turn'sAbortSignalthroughctx.signalso barge-in tears down the upstream askService stream instead of silently leaking tokens into a closed connection. The palette half:ui_askadded toPALETTE_ACTIONSinserver/routes/palette.jsunder sectionAsk, labelAsk Yourself—⌘Kexposes it with description/parameters auto-hydrated from the voice tool registry, andPOST /api/palette/action/ui_ask { args: { question, mode? } }returns the answer + source kinds/titles synchronously so non-voice callers (palette, scripts) get the same RAG pipeline. 17 new tests (7 ui_ask tool, 5 ask-intent classifier, 3 ui_ask spec gating, 2 palette manifest + dispatch) — full server suite green at 2785/2785. Closes the last item in the PLAN.md "Ask Yourself — slice (b)" backlog. Files:server/services/voice/tools.js,server/services/voice/tools.test.js,server/services/voice/pipeline.js,server/routes/palette.js,server/routes/palette.test.js,PLAN.md. - Ask Yourself: one-click promote each assistant turn into a Brain note, CoS task, or Goal progress entry. Closes the second half of "Ask Yourself — slice (b)" — the Ask page's twin-flavored answers were trapped in the conversation. Each assistant turn now shows three buttons below its source chips: Save to Brain (calls
brainService.captureThoughtwith the answer text), Create task (creates a CoS task with the answer as the description, capped at 280 chars and tagged with a "Promoted from Ask Yourself " context note), and Attach to goal… (inline goal picker →identityService.addProgressEntrywrites the answer as aprogressLognote dated today). After a successful promotion the button mutates to a green "Saved to Brain"/"Task created"/"Attached: " chip that deep-links to the saved record (/brain/inbox,/cos,/digital-twin/goals?id=…). Server-side, every promotion also pins the conversation (promoted = true) so anything saved elsewhere survives the 30-day expiry sweep — without that, a saved brain note could outlive the conversation it cites. New endpointPOST /api/ask/:id/turns/:turnId/promotevalidates a discriminated zod union —{ target: 'brain' },{ target: 'task', priority? },{ target: 'goal', goalId }— fails fast with 400/404/409 on missing turns, user turns, empty content, missing goals, or duplicate tasks. 13 new route tests; the full server suite remains green at 2746/2746. The remaining slice-(b) item — theui_askvoice tool + palette whitelist — is still pending. Files:server/routes/ask.js,server/routes/ask.test.js,client/src/services/apiAsk.js,client/src/pages/Ask.jsx,PLAN.md. - Voice agent:
feeds_mark_readtool. Pairs with the existingfeeds_digestso the user can say "mark that one read" / "mark them all read" / "mark all of Hacker News as read" without leaving the conversation. Two ways to call:queryfuzzy-matches a single unread item by title (exact → substring → all-tokens fallback) using titles the LLM just spoke fromfeeds_digest;all: truemarks every unread item read, optionally scoped to one feed viafeedQuery(fuzzy-matched against feed title). Thefeedsintent regex was loosened to also match phrasings like "mark that one read" / "mark them all as read" / "headlines" so the tool is offered to the LLM on the right turns; the bare word "read" alone is intentionally NOT a feeds trigger (it collides with "read my log"). 11 new tests inserver/services/voice/tools.test.jscover ok/error paths, feed scoping, fuzzy matching, and the new regex behavior. Files:server/services/voice/tools.js,server/services/voice/tools.test.js. - Reimagined theme system — four named themes with full design tokens. Replaced the five ad-hoc color-only themes (Midnight, Phosphor, Ember, Arctic, Synthwave) with a structured manifest of four themes that each carry a complete design system, not just a color palette: Classic Midnight (the existing baseline, kept stable), Lumen Glass (translucent glass panes with backdrop-blur), Black ICE Terminal (dense cyberpunk terminal with scanlines and monospace UI), and Blueprint Ops (drafting-grid systems-map aesthetic). Each theme manifest declares colors (
--port-bg,--port-card, etc), per-channel "on-X" foreground colors for accessible contrast on accent/success/warning/error pills, and a tokens block covering radii, font stacks (UI/display/mono), motion durations, shadow variants, backdrop-filter, body gradient/texture, control surfaces, hover/active states, terminal styling, and chart colors. A new runtime layer inclient/src/index.csskeys offhtml[data-port-theme="<id>"]so theme switches restyle the entire UI in one paint — including transitions on inputs/buttons, toaster border/shadow tokens (client/src/main.jsx), per-theme card backgrounds, sidebar treatments, and theme-specific flourishes (Black ICE scanline overlay, Blueprint Ops grid-pattern card backgrounds + heading rules, Lumen Glass focus glows). The theme picker has two surfaces: a redesigned dropdown in the bottom-barThemeSwitcher(portal-rendered, viewport-clamped, rAF-throttled scroll/resize repositioning, with family icons + accent swatch) and a new card-gridThemePickerPanelin Settings → General that shows each theme's concept, density, four-color swatch row, and an active-state check. Legacy theme ids stored inlocalStorageor server settings are normalized viaLEGACY_THEME_ALIASES(midnight→classic-midnight,phosphor/synthwave→black-ice-terminal,arctic→lumen-glass,ember→blueprint-ops) so existing users don't lose their preference; the migrated id is written back so future loads are direct. A newnpm run theme:checkscript (scripts/check-themes.js, runs at any time) enforces the theme contract: every theme must declare every required color/token var with valid RGB channels, must point at a doc underdocs/themes/<id>.mdcontaining the four required sections (## Intent,## Integration Rules,## Component Notes,## Validation), every legacy alias must resolve to a real theme, andindex.cssmust include a theme-specific selector for each non-default theme. Files:client/src/themes/portosThemes.js(new),client/src/themes/familyIcons.js(new),client/src/components/ThemePickerPanel.jsx(new),client/src/components/ThemeSwitcher.jsx,client/src/components/ThemeContext.jsx,client/src/components/settings/GeneralTab.jsx,client/src/hooks/useTheme.js,client/src/index.css,client/src/main.jsx,docs/themes/*.md(new — one per theme + README),scripts/check-themes.js(new),package.json(newtheme:checkscript). - 3D Chief of Staff avatars are draggable to re-orient. All five 3D avatar styles (Cyber, Sigil, Esoteric, Nexus, Muse) now respond to typical mouse/touch drag controls — click-and-drag rotates the avatar around its center, with damping for a smooth feel. Pan and zoom are intentionally disabled so the framing stays consistent on the small avatar tile. Wrapper divs use
cursor-grab/active:cursor-grabbingandtouch-noneso the affordance is visible and touch drags don't fight page scroll. Implemented via drei'sOrbitControlsinside each avatar's<Scene>. Files:client/src/components/cos/CyberCoSAvatar.jsx,client/src/components/cos/SigilCoSAvatar.jsx,client/src/components/cos/EsotericCoSAvatar.jsx,client/src/components/cos/NexusCoSAvatar.jsx,client/src/components/cos/MuseCoSAvatar.jsx. - Live AI operation status — toasts + server logs for every model call. The user had no idea when a feature like Digital Twin → Taste → "Generate Summary" was actually doing work versus hung; the button just animated and silently waited up to a minute while LM Studio loaded a model on demand. New
server/services/aiStatusEvents.jsexports anEventEmitter+startAIOp({ op, label, providerId, providerName, model })helper that emits phase-tagged events (start,model:loading,model:loaded,complete,error) with provider/model/op metadata.server/services/socket.jsbridges the emitter onto a newai:statusSocket.IO channel broadcast to all clients.server/lib/aiProvider.js—callProviderAISimple()now starts a status op for every API call (logs always; toasts when the caller passesop/opLabel, plus model-loading/error always), and the LM Studio auto-load path emitsmodel:loading("Loading openai/gpt-oss-20b into LM Studio…") +model:loaded("openai/gpt-oss-20b loaded (4.2s)") so the user sees what's happening instead of a frozen button.server/services/taste-questionnaire.jspasses labeled ops for the three taste AI calls (section summary, overall summary, deeper personalized question) so toasts read "Generating Movies & Film taste summary…" rather than a generic provider name. Newclient/src/hooks/useAIStatusNotifications.jssubscribes toai:status, renders one mutating toast per op id (toast.loading→toast.success/toast.errorwith the same id so phases update the same toast), and is mounted globally inclient/src/components/Layout.jsx. Silent (uninstrumented) ops only toast when something user-visible happens (model load, error, or call exceeds 2.5s) so background calls don't spam the UI; explicit user-triggered ops toast immediately. Server logs are single-line emoji-prefixed with op slug, phase, message, provider, model, and elapsed time per CLAUDE.md style. Files:server/services/aiStatusEvents.js(new),server/lib/aiProvider.js,server/services/socket.js,server/services/taste-questionnaire.js,client/src/hooks/useAIStatusNotifications.js(new),client/src/components/Layout.jsx.
Fixed
CoS improvement queue stalls and "must be a collaborator" PR errors when multiple
ghaccounts are logged in. Three independent failure modes that each held the queue back, now all addressed. (1) Wrong-account PR creation: when more than oneghaccount was logged in, agh auth switchin another shell could redirect bot-triggered PR creation to the wrong account, which GraphQL rejected with "must be a collaborator".createPRnow parses the repo owner fromorigin, looks up which logged-inghaccount matches that owner viagh auth status, and pinsGH_TOKENfor the spawn so the active CLI selection in another shell can't bleed into the agent. Falls back to the active user when no logged-in account matches. (2) Recovery tasks bumping the per-app cooldown: tasks taggedmetadata.isRecovery(or prefixed with[Recovery]) used to bump the per-app review cooldown like a normal improvement task, pushing every sibling improvement task another full window into the future and stalling the queue — recovery work is administrative and shouldn't count. Centralized the recovery-marker test in a newrecoveryTasks.jsand gated the cooldown bump on it. (3) Per-app improvement-task pile-up:queueEligibleImprovementTaskscould enqueue multiple task types (code-quality, test-coverage, feature-ideas) on the same app faster than the 30-min per-app cooldown could drain them. Now caps each app at one pending improvement task at a time so the cooldown actually serializes throughput. New tests inagentCompletion.test.jsandgit.test.js. Files:server/services/git.js,server/services/git.test.js,server/services/agentLifecycle.js,server/services/agentCompletion.js,server/services/agentCompletion.test.js,server/services/cos.js,server/services/recoveryTasks.js(new).CoS on-demand task triggers no longer silently drop when the master Improve toggle is off. Triggering a scheduled task (e.g.
feature-ideasforcritical-mass) showed a "queued" toast but nothing ever ran — the only log wasOn-demand task requested: <type>. Root cause:dequeueNextTask/evaluateTaskscleared the request andcontinued without logging whenstate.config.improvementEnabledwasfalse, andtriggerOnDemandTaskonly validated the per-task-typeenabledflag, so the request was accepted then quietly dropped downstream. Fix: (1)triggerOnDemandTasknow checks the master flag and rejects withImprovement is disabled — enable it in CoS → Config to run on-demand tasks; the trigger route propagates that as HTTP 409 so the user sees a real error toast. (2) The two silent-drop branches nowemitLog('warn', …)so any path that bypasses the trigger guard is still visible. (3)getScheduleStatusnow returnsimprovementEnabledso the Schedule tab can render a banner ("Improvement is disabled — enable it in CoS → Config") and disable every Run Now / Run on App button (with an explanatory tooltip) instead of letting users queue requests that won't run. (4) ExtractedisImprovementEnabled(state)incosState.jsto replace the same nullish-coalesce expression duplicated 6× acrosscos.jsandtaskSchedule.js. Files:server/services/cosState.js,server/services/taskSchedule.js,server/services/cos.js,server/routes/cosScheduleRoutes.js,server/routes/cosScheduleRoutes.test.js,client/src/components/cos/tabs/ScheduleTab.jsx.CoS agent PRs no longer dump the entire thought-process narration into the PR body. PR #172 is the canonical example: instead of just the agent's
## Summaryblock, the PR description prepended every interim "Now I have all the info…" / "Now let me run the relevant tests…" / "Branch pushed successfully. Task complete." line. Root cause was increateStreamJsonParserinserver/services/agentCliSpawning.js(and the mirrored copy inserver/cos-runner/index.js): the parser calledcommitSection()on everycontent_block_startfor atool_use, which pushed the text accumulated between tool calls intotextSections. A multi-tool task ended up with one section per pre-tool narration plus the final summary;getFinalResult()joined them all with\n\n(the multi-section path is intentional — it's howtask summary + /simplify summaryare preserved across turns) and that joined blob replacedoutputBuffer, stripping all🔧/→/↳markers fromoutput.txt. Downstreamgit.extractAgentSummary()then had no markers to anchor on and emitted everything verbatim. Fix: at tool-start, discardcurrentTextSectioninstead of committing it — interim narration leading up to a tool call is superseded by whatever the agent says after the tool returns, so only the post-last-tool wrap-up survives intotextSections. Result events still commit (preserves task-then-/simplify two-result-event scenarios). 3 new regression tests inserver/services/agentCliSpawning.test.js(new) cover the multi-tool single-turn case, the multi-result task+/simplify case, and the single-result baseline; full server suite green at 2778/2778. Files:server/services/agentCliSpawning.js,server/cos-runner/index.js,server/services/agentCliSpawning.test.js(new).Sidebar nav labels truncate instead of pushing the container wider. Long nav labels (e.g. third-party app names) could force the sidebar's flex container to overflow horizontally on narrower viewports, distorting the rest of the layout. Added
min-w-0to every flex parent in the nav row tree andtruncateto the label<span>elements (top-level links, section buttons, and child links), plusshrink-0on the child icon so it can't be squeezed out, andoverflow-x-hidden min-w-0on the<nav>itself so the scroll axis stays vertical. File:client/src/components/Layout.jsx.CoS agent PRs now actually open. Every recent CoS-agent automation that finished its work and pushed its branch was failing at the PR-creation step with
Failed to create PR for <branch>: spawn is not defined, then triggering[Recovery] Investigate and retry failed PR for branch …recovery tasks for the orchestrator to clean up. Root cause: a refactor (commit17311282) extractedexecGittoserver/lib/execGit.jsand dropped theimport { spawn } from 'child_process'line fromserver/services/git.js— butcreatePR()still callsspawn('gh', …)directly, so every PR creation hit aReferenceError. The existingcleanupAgentWorktreetest suite mockedgit.createPRso the bug never surfaced in CI. Restored the import and addedserver/services/git.test.jswith a regression test that calls the realcreatePRagainst a non-existent path: success path returns{ success: false, error: '<gh failure>' }instead of throwing. The recovery flow continues to work as a safety net, but agents will now hit the happy path and open the PR directly. Files:server/services/git.js,server/services/git.test.js(new).Mobile responsiveness — narrow forms and wide tables no longer break on small screens. Four spots were squeezing or clipping content under ~640px wide viewports: (1) the Create App form's Port fields used
grid-cols-3so the three port inputs (UI, Dev UI, API) crammed into ~100px each on a phone — nowgrid-cols-1 sm:grid-cols-3so they stack on mobile and only side-by-side onsm:and up; (2) the Body tab's eye-exam history table has eight columns (Date, L SPH/CYL/AXIS, R SPH/CYL/AXIS, actions) and was wrapped inoverflow-hiddenso the rightmost columns were invisible on mobile — now wrapped inoverflow-x-autowithmin-w-[640px]on the table so it scrolls horizontally instead of clipping; (3) the Posture session-history table (5 columns) had the sameoverflow-hiddenwrapper — nowoverflow-x-autowithmin-w-[520px]; (4) the Data Manager Backup Archives table (Archive name + Size + Created + delete button) — same fix withmin-w-[480px]. Files:client/src/pages/CreateApp.jsx,client/src/pages/DataManager.jsx,client/src/components/meatspace/tabs/BodyTab.jsx,client/src/components/meatspace/post/PostHistory.jsx.Taste summaries render as markdown and appear inline immediately after generation. The Digital Twin → Taste tab had two regressions in the summary flow: (1) after clicking "Generate Summary" on the section-complete view, the button returned to its enabled state with no visible change — the summary was saved but not rendered until the user navigated away and back into the section's Review view, and (2) every place the summary did show (review-mode AI Summary card, expandable summary on the dashboard grid, "Unified Taste Profile" overall summary) used a
whitespace-pre-wrap<div>so the LLM-generated markdown displayed as raw### Movies & Film Profile,**Core Preferences:**,- Item 1etc. instead of styled headings, bold text, and bullets. Now: the section-complete view shows the freshly-generated summary inline in a violet-bordered card the momentloadProfile()returns, and all three summary surfaces use the existingMarkdownOutputcomponent (which already powers CoS, autobiography, etc.) so headings/bold/italics/bullets/blockquotes render properly. File:client/src/components/digital-twin/tabs/TasteTab.jsx.Voice mode works on Windows. The voice setup script and TTS engine now run correctly on Windows:
bootstrap.jsinvokespwshwith a PowerShell setup script (scripts/setup-voice.ps1) instead of the macOS-only bash/Homebrew script;whichuseswhereon Windows;verifyBinarieschecks the local piper install path first (skipping a wasteful PATH subprocess when the binary is present);tts-piper.jswrites piper output to a temp file on Windows to avoid CR+LF corruption of binary WAV data from text-mode stdout. Shared platform constants (IS_WIN,PIPER_BIN_NAME) extracted toconfig.js.Voice agent no longer feedback-loops on laptop speakers. When the user ran the voice widget without headphones, TTS played through the laptop speakers, the built-in mic picked it up, STT transcribed the bot's own voice as a "user" turn, the bot replied to itself, and the loop repeated until the user manually stopped it. The existing substring-based echo gate in
voiceClient.jswas too brittle — STT mistranscribes TTS just enough that the heard text wasn't a clean substring of any spoken sentence, so the gate let the echo through. Replaced with a length-gate + trigram-overlap algorithm: utterances under 4 tokens always pass (so short barge-ins like "wait" / "stop" still interrupt the bot even if those words appear in TTS), and longer utterances are flagged as echo when they share ≥ 2 trigrams (3-word windows) with a recently-spoken sentence OR are a clean substring. Same algorithm runs server-side in a newserver/services/voice/echo.js(per-socketstate.recentTtsring) so continuous-mode whisper transcripts are also gated, not just Web Speech. Also added device-route detection: when the active mic shares agroupIdwith an audiooutput device AND the label looks headset-y (AirPods, Jabra, etc.), the gate is bypassed entirely (no acoustic echo path on real headphones); adevicechangelistener re-evaluates on plug/unplug. Default-tight on uncertainty — false-headset would re-open the loop, false-built-in just makes barge-in slightly less twitchy. Files:server/services/voice/echo.js(new),server/services/voice/echo.test.js(new, 16 tests),server/services/voice/pipeline.js,server/sockets/voice.js,client/src/services/voiceClient.js.Voice agent now navigates to the daily log via
ui_navigate. Three related issues caused "take me to the daily log" to fail or behave unexpectedly. (1) Thedailylogintent regex used\bdaily ?log\b, which doesn't match STT typos like "daily login" / "daily logs" — sodaily_log_openwas filtered out of the offered toolset, the LLM only hadui_navigate, butui_navigate's description told it NOT to use that tool for daily log, leaving the model to fabricate a refusal ("Daily log isn't a valid page"). Loosened todaily ?logi?n?s?to absorb the drift. (2) Removed the contradictory "EXCEPT Daily Log (use daily_log_open)" carve-out fromui_navigate's description and from the system prompt; the nav resolver already maps "daily log" / "journal" →/brain/daily-logcorrectly. The new rule: plain "go to / open / take me to my daily log" →ui_navigate; only pickdaily_log_openwhen the user clearly wants to write/dictate ("start", "new", "entry", "make", "dictate"). (3) ExtendeddetectNarrationWithoutCallto also catch the second narrate-without-call shape — the LLM emitting a literal tool name in its prose (e.g.ui_navigate page="daily_log") without actually invoking it. The regex is now built dynamically fromgetAllToolNames()so it can't drift behind new tools. Files:server/services/voice/tools.js,server/services/voice/pipeline.js.Reverting a peer to plain IP (after enabling Tailnet DNS) is now sticky. When a user cleared a peer's
hoston the Instances page to switch the federation hop back tohttp://<ip>, the next inboundpeers/announcefrom that peer would silently re-adopt the DNS name — the only safeguard was "isexisting.hostempty?", which couldn't distinguish "user explicitly cleared" from "never set yet." Added ahostManualflag on each peer record: latched totruewhenever the user sets or clears the host viaPUT /api/instances/peers/:id, and respected byhandleAnnounce(auto-adoption is gated on!existing.host && !existing.hostManual). Fresh peers and peers that were auto-learned still receive automatic host updates from announces; only explicit user intervention pins the choice. Also added a one-clickuse IP onlyinline action on each peer's host editor and a discoverable banner at the top of the Instances page that summarizes Tailnet DNS state, surfaces the local instance's MagicDNS name in the SelfCard, and walks through the three-step setup (MagicDNS admin toggle →npm run setup:cert→ clickuse <host>per peer). Files:server/services/instances.js,server/services/instances.test.js,client/src/pages/Instances.jsx.LM Studio auto-loads a model on "No models loaded" 400. Any caller of
callProviderAISimple(taste questionnaire, identity, autobiography, insights, jiraReports, goalCheckIn) that hit a cold LM Studio used to error out withProvider returned 400: { ... "No models loaded" ... }. Now on that specific error pattern, the helper lists LM Studio's downloaded LLMs via/api/v0/models, picks one (preferringprovider.defaultModel, then any id inprovider.modelsthat's downloaded, else the first downloaded LLM), loads it viaPOST /api/v1/models/load, and retries the chat-completion. Mirrors the existing pattern inservices/memoryClassifier.jsbut driven from the provider config so every API caller benefits. File:server/lib/aiProvider.js.Stop showing the same error toast 3-4 times. A single failing API call could surface its error message multiple times because three independent channels all toasted the same payload:
apiCore.requesttoasts on every non-OK response, the server emits bothio.emit('error:occurred')(broadcast) anderrorEvents → broadcastToErrors('error:notified')(subscriber) for the same error, anduseErrorNotificationslistened to both socket events with the same handler. Two changes: (1)useErrorNotificationsnow subscribes to the targetederror:notifiedchannel only —error:occurredwas the duplicate broadcast leg — and (2) the Toast layer added a content-based dedup window (1.5s) so any duplicate from any source is silently dropped. Explicit-idtoasts (loading→success swaps) skip dedup so progress toasts still update in place. Files:client/src/components/ui/Toast.jsx,client/src/hooks/useErrorNotifications.js.Media Gen Video defaults to the smallest model. The macOS default was LTX-2 Unified (
42 GB). New default is LTX-2.3 Distilled Q4 (22 GB) so a fresh install fits on smaller machines without a manual override. File:server/services/videoGen/local.js.Taste questionnaire falls back to a configured API provider. The Digital Twin → Taste tab was auto-selecting the first enabled provider for
Generate Summary/Go Deeper. When that happened to be a CLI provider (Claude Code, Codex, Gemini CLI), the request failed with a generic "requires an API-based provider" toast — three times, because both the API client and two socket subscribers re-toasted the same error. Now (1) the section provider picker filters to API-type providers only, (2) the server resolves any usable API provider when the requested one isn't compatible (requested → active → first enabled API) via a newresolveAPIProviderhelper inserver/lib/aiProvider.js, (3) the section-complete view shows an inline link to AI Providers when no compatible provider is configured instead of leaving the user with a wall of red toasts and no direction, and (4) the redundant component-leveltoast.errorcalls were removed (apiCore already toasts on non-OK responses). Files:server/lib/aiProvider.js,server/services/taste-questionnaire.js,client/src/components/digital-twin/tabs/TasteTab.jsx.
Changed
- Voice agent FAB is hidden by default; sidebar Voice toggle engages, starts listening, and reads as a distinct violet layer. The push-to-talk widget previously rendered as a floating bottom-right FAB on every page the moment voice was enabled, covering content even when not in use, and styled with the same neutral card border as everything underneath it. Three changes: (1) Replaced the sidebar/mobile-header
ThemeSwitcher(theme picker still in Settings → General) with a newVoiceToggleButtonthat flipslocalStorage.portos.voice.hiddenbetween'1'(hidden) and'0'(engaged), dispatches the existingportos:voice:visibilityevent for the widget to re-render on, and additionally firesportos:voice:engage/portos:voice:disengageso the widget starts/stops capture in lockstep — clicking once now both shows the controls and opens the mic, instead of forcing two clicks. (2)VoiceWidgetdefaults to hidden when the key is unset (legacy users included), so the FAB only appears after the user explicitly engages voice from the sidebar; the same toggle in Settings → Voice keeps working with matching'0'/'1'semantics. (3) The floating widget surfaces (status pill, text-input form, conversation panel, mobile FAB) now wear aborder-violet-500/50ring with ashadow-[0_0_24px_-4px_rgba(168,85,247,0.55)]glow, and the primary mic button is violet-tinted (bg-violet-500while capturing,bg-violet-500/20idle), so the voice layer reads as a distinct interactive surface instead of blending into whatever card it's covering. Files:client/src/components/Layout.jsx,client/src/components/voice/VoiceToggleButton.jsx(new),client/src/components/voice/VoiceWidget.jsx,client/src/components/settings/VoiceTab.jsx. - Execution lanes are now priority tags, not concurrency gates.
server/services/executionLanes.jspreviously had its ownmaxConcurrentcaps per lane (critical: 1, standard: 2, background: 3) on top of the user-configurable global/per-app caps incos.js(maxConcurrentAgents,maxConcurrentAgentsPerProject). The lane gates were silently shadowing the user's settings — bumpingmaxConcurrentAgentsto 8 still capped throughput at 6 because the lane subsystem refused to accept the 7th and 8th agents — and on backpressureagentLifecyclewouldwaitForLanefor up to 30s before bailing, which manifested as "agent stuck queueing" in the UI for tasks that should have spawned immediately. Removed the per-lane cap, the lane-internal waiting queue, the timeout/promotion-on-capacity path, and thehasCapacity/waitForLane/updateLaneConfigexports;acquirenow always succeeds for known lanes,promoteno longer rejects when the target lane is "full", andgetStats/getLaneStatusdrop themaxConcurrent/available/queueLength/utilizationPercentfields. Lanes still carrypriorityand per-agent{ startedAt, taskId, metadata }for observability.agentLifecycle.spawnAgentForTasknow just tags the agent's lane and continues — global capacity is enforced once, upstream, where the user can actually configure it. Existing tests rewritten to match: 5 deleted (capacity/wait/queue cases), 3 reframed to assert "lane is a tag, not a gate", and thecleanupAgentWorktreemock simplified to removehasCapacity/waitForLane. Files:server/services/executionLanes.js,server/services/executionLanes.test.js,server/services/agentLifecycle.js,server/services/cleanupAgentWorktree.test.js. - Dashboard fills the full content area on wide monitors. The Dashboard page was wrapped in
max-w-7xl mx-autolike the rest of the app, so on monitors wider than ~1280px there were huge empty side margins next to a relatively narrow widget grid. Since the dashboard's grid renderer is already designed to flex across whatever space it's given (12-column grid, snap-to-grid drag/resize), the cap was wasted real estate — moved the dashboard route (/) out of the capped branch inLayout.jsxso widgets now fill the full width of the main content area while keeping the existingp-4 md:p-6gutter for a consistent margin. No behavior change on smaller viewports (where the cap was never reached) or on other pages. File:client/src/components/Layout.jsx. - Test coverage: +89 tests across 11 previously-uncovered modules. Added focused unit tests for low-level utilities and route handlers that had 0% coverage in the baseline coverage report:
lib/sseUtils.js(broadcast/attach/cleanup of SSE clients and the Python-noise filter),lib/tailscale.js(CLI-binary discovery across PATH and well-known install paths),lib/zipStream.js(streaming ZIP parser — stored + DEFLATE entries, multi-chunk arrival, path-traversal sanitization, autodrain),lib/execGit.js(timeout, maxBuffer overflow, ignoreExitCode, spawn-error paths),routes/avatar.js(404 + streaming + ENOENT/EIO mid-stream errors via deferred-emit Readable),routes/agents.js(kill/list/info with status + body-shape assertions),routes/notifications.js(full CRUD, 404 propagation),routes/usage.js(summary/raw/session/messages/tokens/reset),routes/backup.js(status, run with/without dest, snapshots, restore + zod validation),services/agentDrafts.js(per-agent CRUD, sort by createdAt via fake timers, scoping),services/brainGraph.js(Jaccard threshold, bridge remap, missing-bridge dropping, dedup with memory edges, getGraphData failure fallback). Total server suite: 2633 → 2722 tests across 103 → 114 files; all pass. - Refactor: 4 message/CDP modules now share one
browserService.jsfor Chrome DevTools Protocol calls.cdpRequest,listCdpPages,findOrOpenPage,isAuthPage, andevaluateOnPagehad drifted into duplicated (or near-verbatim) copies acrossmessagePlaywrightSync.js,messageActions.js,messageTokenExtractor.js, andgoogleOAuthAutoConfig.js. Centralized them inbrowserService.jswith a per-request timeout option (named constants for the 10s default and 60s evaluate timeouts), and replacedmessageTokenExtractor's near-verbatimtriggerPageRequestcopy withevaluateOnPagecarrying an explicit timeout. ExistingbrowserServicehelpers (navigateToUrl,getOpenPages,getCdpVersion) now build oncdpRequestinstead of inliningfetch+ host logic.messagePlaywrightSyncre-exports the helpers as a compat shim so existing consumers and test mocks keep working unchanged. Net -34 lines across the three core files; full server suite still green. Files:server/services/browserService.js,server/services/messagePlaywrightSync.js,server/services/messageTokenExtractor.js. - Refactor: 19 files now use
fetchWithTimeoutinstead of hand-rolledAbortController + setTimeout + fetch + clearTimeoutblocks. Net 75 lines deleted acrossserver/services/{browserService, calendarApiSync, digital-twin-helpers, feeds, insightsService, lmStudioManager, memoryClassifier, memoryEmbeddings, messageApiSync, messagePlaywrightSync, messageTokenExtractor, pm2Standardizer, syncOrchestrator, visionTest}.js,server/services/voice/{bootstrap, health, stt}.js, andserver/integrations/{moltbook, moltworld}/api.js. The helper atserver/lib/fetchWithTimeout.jsalready existed and was tested — most call sites just hadn't been migrated. Each file also extracts its magic timeout numbers (3000, 10000, 30000, 60000, 120000, 180000, 300000) to named constants likeHEALTH_TIMEOUT_MS,GRAPH_API_TIMEOUT_MS,MODEL_LOAD_TIMEOUT_MS,DEFAULT_AI_TIMEOUT_MSso the request lifecycle stops being four scattered statements per call.browserService.jsadditionally hoists three duplicate dynamicawait import('child_process')/await import('util')blocks (one per PM2 helper) to a single top-level import +execFileAsync/PM2_SHELLconstants, andmessageApiSync.jslifts a per-401 dynamicawait import('./messageTokenExtractor.js')to a top-level import. All 2633 server tests still pass. - Vite dev proxy splits
/datainto per-subpath rules. Replaced the single catch-all/dataproxy with explicit/data/images,/data/videos, and/data/video-thumbnailsentries so app-manageddata/directories (CoS state, plans, etc.) are served by Vite from disk instead of being silently round-tripped to the API server. File:client/vite.config.js. - Send to Video carries the source image's prompts. Clicking "Send to Video" on an Image Gen result, gallery card, or lightbox — or the same action from Media History — now pre-populates the Video Gen prompt and negative prompt from the source image's metadata. Previously only the source image filename was passed, leaving the user to retype or paste the prompt to keep the same scene direction. The flow piggybacks on the existing
?sourceImageFile=query-param hand-off:?prompt=and?negativePrompt=are added when the source has them, andVideoGen.jsxreads both on first render and re-syncs on subsequent navigations (mirroring the existing source-image effect). Files:client/src/pages/ImageGen.jsx,client/src/pages/MediaHistory.jsx,client/src/pages/VideoGen.jsx.