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: route JIRA search to search/jql on Cloud only, not Server/DC
Adam Eivy71d4b9546391
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex ddae1f27e7..3b95bc9af0 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -68,7 +68,7 @@## Fixed-- **JIRA sprint tickets and the app JIRA board now load again.** Every JQL search PortOS runs — the app JIRA tab's sprint board, epic search, the config panel's board picker context, and JIRA status reports — called the classic `GET /rest/api/2/search`, which Atlassian has since sunset; the instance now answers with a bare `410 Gone` that the board's error banner could only report as "HTTP 410," with no hint that the fix was on PortOS's side rather than the saved token. All five call sites now use the replacement `search/jql` endpoint, which returns the same v2 field shapes so no downstream mapping changed.+- **JIRA sprint tickets and the app JIRA board now load again on Jira Cloud.** Every JQL search PortOS runs — the app JIRA tab's sprint board, epic search, the config panel's board picker context, and JIRA status reports — called the classic `GET /rest/api/2/search`, which Atlassian has sunset on Cloud only; a Cloud instance now answers with a bare `410 Gone` that the board's error banner could only report as "HTTP 410," with no hint that the fix was on PortOS's side rather than the saved token. All five call sites now go through one client method that routes Cloud instances to the replacement `search/jql` endpoint (same v2 field shapes, so no downstream mapping changed) while Server/DC instances keep using the classic endpoint — Atlassian's deprecation doesn't apply there, and an older Data Center version may not even serve `/search/jql` yet.- **The JIRA instance list no longer tells you a working token is "likely expired."** The card guessed expiry from a hardcoded 30-day PAT lifetime, but that number isn't a real platform constant — Cloud API tokens commonly don't expire on a fixed schedule at all, and Server/DC PAT expiration is chosen per-token by whoever generated it. A token that had authenticated successfully for 35+ days was flagged "likely expired — regenerate your PAT" anyway. The card now shows a neutral token age and, once it's been a while, nudges you to press the existing Test button — the only thing that actually knows whether a token still works — instead of asserting an expiry it can't verify.- **A creative commission pinned to Grok now actually renders on Grok.** Commissions have been able to name their video backend — Grok, or local with a specific local video model — for a while, but the pin only reached renders the Creative Director's *planner* queued. The scene-by-scene render path, which is where a commission's video is actually produced, never read it: every scene went to the local MLX runtime regardless, the pinned local model was ignored in favor of the project's creation-time default, and an install with no local Python configured failed the whole project up front even when Grok was the configured, enabled, pinned backend. Both paths now resolve the backend through one shared ladder — the commission's own pin, then the install-wide Creative Agent render default, then the global video pin — so what the form says is what renders. Grok's 6s/10s-only clip lengths are covered by rounding a scene's duration up rather than letting it silently come back short, and the project's aspect ratio carries through to Grok's base image. A pin naming a backend whose toggle has since been switched off still degrades to local rather than failing a nightly run, and if local is unconfigured too, the scene now says the pinned backend is disabled instead of only asking for a Python path.- **A commission's video backend now survives the teaser hand-off, and its pinned local model reaches the planner.** Two leaks were left after the render paths were unified. First, when a commission's plan reaches for "produce a teaser from this issue," that tool mints a *separate* Creative Director project — and it was minted unpinned, so the run's actual deliverable rendered on the install default while the commission said Grok. The teaser now inherits the calling project's backend pin and video model; the pin is read from the project record rather than exposed to the planner, so the model writing the plan cannot pick a render backend of its own. Second, a pinned local video model was stored only on the commission's backend pin, leaving the project's own model on the install default — which is the value the Creative Director's planner prompt reports to the model, so the plan was written against a model that was never going to render it. The chosen video model is now the project's model too. A commission that pins nothing still behaves exactly as before.diff --git a/server/services/jira.js b/server/services/jira.jsindex df880548ee..b7624e965b 100644--- a/server/services/jira.js+++ b/server/services/jira.js@@ -149,10 +149,12 @@ export function createJiraClient(instance) {post: (...args) => base.post(...args).then(checkToken, mapAuthError),put: (...args) => base.put(...args).then(checkToken, mapAuthError),delete: (...args) => base.delete(...args).then(checkToken, mapAuthError),- // Atlassian sunset the old `GET /rest/api/2/search` (410 Gone) — `/search/jql` is- // its replacement and keeps the same v2 field shapes, just cursor-paginated. Every- // JQL search goes through here so the next endpoint change is a one-line fix.- search: (params) => base.get('/rest/api/2/search/jql', { params }).then(checkToken, mapAuthError)+ // Atlassian sunset the old `GET /rest/api/2/search` on Cloud only (410 Gone) in+ // favor of `/search/jql`, which keeps the same v2 field shapes. Server/DC is on+ // its own release cycle: the classic endpoint stays supported there, and an+ // older DC version may not even serve `/search/jql` yet — so route on instance+ // type instead of hardcoding one path. Every JQL search goes through here.+ search: (params) => base.get(isCloud ? '/rest/api/2/search/jql' : '/rest/api/2/search', { params }).then(checkToken, mapAuthError)};}