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
chore: release v2.40.0
[._.]/ Adam Eivy173f83266e38
diff --git a/.changelog/NEXT.md b/.changelog/v2.40.0.mdsimilarity index 89%rename from .changelog/NEXT.mdrename to .changelog/v2.40.0.mdindex aef9f90880..5d7ca383eb 100644--- a/.changelog/NEXT.md+++ b/.changelog/v2.40.0.md@@ -1,4 +1,33 @@-# Unreleased+# Release v2.40.0++Released: 2026-08-08++## Highlights++**Coding agents**+- Cursor's agent CLI ships as a first-class provider in both headless and interactive flavors, disabled by default and selectable anywhere a process provider is. "Refresh Models" pulls your account's real catalog from the binary rather than the shipped 27-model slice.+- Refreshing a provider's model list is now the server's decision instead of a client-side guess at it, so the button appears exactly where it works — and when a refresh fails, the toast finally says why.+- A provider whose *display name* mentions another vendor is no longer refreshed against that vendor's catalog; the binary it actually runs decides.+- Adding a new coding-agent vendor is one registry row instead of eight coordinated edits across five files, with a test that walks every shipped provider through each launch step so a missed one fails in CI rather than in a dead agent session.++**Agent reliability**+- A provider that goes down mid-queue no longer takes every waiting task with it — provider-attributable failures now sideline that provider for a cooldown scaled to the cause, so retries land on a fallback instead of repeating the same three-second death.+- Grok and Kimi agents actually start now, and an agent that fails to spawn reports the real reason immediately instead of sitting in "initializing" until a sweeper calls it a crash.+- Pull requests opened under a "merge when CI is green" policy get merged again; the watch no longer depends on an optional scheduled task that ships disabled.++**Code review**+- Every reviewer row can pin a reasoning-effort tier alongside its model, offering only the tiers that reviewer's CLI actually accepts.+- A configured reviewer whose CLI isn't installed on this machine is flagged before the run instead of after the PR is already open — and the Antigravity reviewer, which was being invoked under a command name that exists nowhere, no longer silently degrades into a self-review.++**Brain & Comms**+- Pasting a GitHub repo into Brain capture can hand the clone to an agent: opt in to a read-only malware scan, a clean-room "study this for ideas" run that files what it finds, or both. Queued scans are now visible on the link they're scanning.+- Comms gains an X page with visibility and reach diagnostics plus review-gated compose handoffs — no stored credentials, no automatic posting.+- Stacker News triage is newest-first, capped per sync, and every item carries explicit reply / zap / moderation / analysis actions behind the existing human review gate.++**Fit and finish**+- The claim-issue author gate gains a "Me + collaborators" setting between "Filed by me only" and "Any author".+- The series list is readable on a phone again, and LoRA training dataset image labels no longer wash out over bright photos or collide with each other.+- The Antigravity Usage card parses quota again after `agy` 1.1.x renamed its limit rows.## Code Review Defaults- **Each code reviewer can now be pinned to a reasoning-effort tier.** The reviewer table already let you pick which model a reviewer runs; how *hard* that model thinks was stuck at whatever its CLI defaults to, so the only way to buy a more careful review (or a cheaper, faster one) was to change the model. Every reviewer row now has an Effort column alongside Model, on the AI Providers → Code Review Defaults panel, the task form, the CoS schedule config, and the `/do:next` run drawer. Each row offers only the tiers that reviewer actually accepts — Codex's `minimal`…`ultra`, Claude's `low`…`max`, Antigravity's `low`/`medium`/`high`, and `low`/`medium`/`high` for the local LM Studio / Ollama reviewers — so the picker can't offer a level the CLI rejects, and Copilot, Grok, and `@username` reviewers show no control at all because they have no such knob. Because slashdo's `--review-with` grammar has no effort suffix, the pinned tier travels on the invocation instead: as `codex -c model_reasoning_effort=high` / `claude --effort high` / `agy --effort low` when an agent drives the reviewer CLI, and as an `effort` field on the local review request when PortOS runs it. Leaving a row unset keeps that reviewer's own default, exactly as before.@@ -44,3 +73,7 @@- **[issue-3618] Adding a coding-agent provider is now one table row instead of eight coordinated edits.** Teaching PortOS about a new vendor's CLI/TUI meant editing open-coded dispatch branches across five files — argv builders, prompt-delivery rules, TUI posture flags, the command allowlist — and two of those sites (the TUI model-injection paths) had already drifted apart once before being collapsed into a shared helper. A `PROVIDER_VENDORS` registry now holds one row per vendor (claude, codex, antigravity, opencode, grok, kimi, cursor), and every one of those dispatch points reads from it instead of hand-rolling its own if-chain. No vendor's argv-building logic changed — this only relocates dispatch, verified against the full existing test suite plus a byte-for-byte check that the derived command allowlist still matches the prior hand-maintained list exactly.- **The six provider-seed migrations share one shell instead of six copies of it.** Every migration that ships a new AI provider to already-installed setups (OpenCode Ollama, its TUI sibling, Grok, Cerebras, Kimi, Cursor) repeated the same byte-identical read → validate → add-missing-ids → write body, so any hardening of it was a six-file sweep nobody did — and none of the six had picked up the reserved-key guard (`__proto__` / `constructor` / `prototype`) the split-migration family already applies. They now call a shared `makeProviderSeedMigration` factory that carries that guard, and each migration keeps only its own frozen provider payload, since a migration is the historical record of what it installed. Their duplicated shell tests collapse into one suite against the factory; every payload assertion each migration already made still runs unchanged.- **Whether a provider can refresh its model list is now the server's answer, not the client's guess.** The "Refresh Models" button used to be gated by a hand-written client-side re-derivation of the server's model-refresh dispatch — a mirror kept in step by a comment, backed by a parity test that transcribed the same dispatch a *second* time (so it only ever proved the mirror matched the test's copy). It drifted, silently, in both directions: too generous showed a button that errored on every click, too stingy hid the feature with no error at all. A gemini provider configured by absolute path was in the second bucket. The server now derives the answer from one per-vendor table and sends it on the providers payload as `canRefreshModels`; the client just reads it. The three keying conventions that had accumulated as prose above each branch (exact command string, path-tolerant command basename, display-name substring — and which of them a TUI provider is allowed to use) are columns in that table now, so adding the next vendor is one row instead of four coordinated edits across two repos' worth of files. The field is computed per response and never stored, so it can't go stale against the dispatch it describes. No shipped provider's button visibility changes; the one behavior that does is that a provider whose *command* is literally `gemini` now refreshes as gemini even if someone named it "Claude Something", which is the same "an exact command beats a display-name substring" rule the dispatch had already grown for cursor and Antigravity.++## Full Changelog++**Full Diff**: https://github.com/atomantic/PortOS/compare/v2.39.0...v2.40.0diff --git a/package-lock.json b/package-lock.jsonindex 683c044f9f..2b9e634304 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "portos",- "version": "2.39.0",+ "version": "2.40.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "portos",- "version": "2.39.0",+ "version": "2.40.0","license": "MIT","dependencies": {"pm2": "7.0.3"diff --git a/package.json b/package.jsonindex 0e8e3525a0..ff57dc79d3 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "portos",- "version": "2.39.0",+ "version": "2.40.0","private": true,"description": "Local dev machine App OS portal","author": "Adam Eivy (@antic|@atomantic)",