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: link JIRA ticket IDs in CoS PR descriptions to JIRA instance URL
Adam Eivy8d41ef88abeb
diff --git a/.changelog/v0.25.x.md b/.changelog/v0.25.x.mdindex 920a6d613b..48bcaf5a96 100644--- a/.changelog/v0.25.x.md+++ b/.changelog/v0.25.x.md@@ -56,6 +56,7 @@ Peer apps display and remote agent streaming on the Instances page — see what'## Fixes+- **JIRA ticket links in PR descriptions** — PR body now renders the JIRA ticket ID as a clickable markdown link (`[PROJ-123](https://jira.example.com/browse/PROJ-123)`) instead of plain text- **Reduce peer announcement log noise** — `announceSelf` now only fires when a peer transitions to online (from offline/unknown), not on every 30-second poll cycle- **Brain classification uses configured provider** — background classification now passes the brain's resolved provider/model instead of raw overrides, ensuring it uses the brain-configured provider- **Remove git refresh button** — the DevTools Git page no longer has a manual refresh icon; just reload the pagediff --git a/package-lock.json b/package-lock.jsonindex 285463939d..7dc3976469 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "portos",- "version": "1.0.0",+ "version": "1.0.1","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "portos",- "version": "1.0.0",+ "version": "1.0.1","license": "MIT","workspaces": ["packages/*",@@ -29,7 +29,7 @@},"client": {"name": "portos-client",- "version": "1.0.0",+ "version": "0.23.1","dependencies": {"@dnd-kit/core": "^6.3.1","@dnd-kit/sortable": "^10.0.0",@@ -102,7 +102,6 @@"integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@babel/code-frame": "^7.27.1","@babel/generator": "^7.28.5",@@ -396,7 +395,6 @@"resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.3.1.tgz","integrity": "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==","license": "MIT",- "peer": true,"dependencies": {"@dnd-kit/accessibility": "^3.1.1","@dnd-kit/utilities": "^3.2.2",@@ -439,6 +437,7 @@"integrity": "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==","license": "MIT","optional": true,+ "peer": true,"dependencies": {"tslib": "^2.4.0"}@@ -891,6 +890,7 @@"integrity": "sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==","license": "MIT","optional": true,+ "peer": true,"engines": {"node": ">=18"}@@ -907,6 +907,7 @@"os": ["darwin"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -929,6 +930,7 @@"os": ["darwin"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -951,6 +953,7 @@"os": ["darwin"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -967,6 +970,7 @@"os": ["darwin"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -983,6 +987,7 @@"os": ["linux"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -999,6 +1004,7 @@"os": ["linux"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -1015,6 +1021,7 @@"os": ["linux"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -1031,6 +1038,7 @@"os": ["linux"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -1047,6 +1055,7 @@"os": ["linux"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -1063,6 +1072,7 @@"os": ["linux"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -1079,6 +1089,7 @@"os": ["linux"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -1095,6 +1106,7 @@"os": ["linux"],+ "peer": true,"funding": {"url": "https://opencollective.com/libvips"}@@ -1111,6 +1123,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1133,6 +1146,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1155,6 +1169,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1177,6 +1192,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1199,6 +1215,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1221,6 +1238,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1243,6 +1261,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1265,6 +1284,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1284,6 +1304,7 @@],"license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT","optional": true,+ "peer": true,"dependencies": {"@emnapi/runtime": "^1.7.0"},@@ -1306,6 +1327,7 @@"os": ["win32"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1325,6 +1347,7 @@"os": ["win32"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1344,6 +1367,7 @@"os": ["win32"],+ "peer": true,"engines": {"node": "^18.17.0 || ^20.3.0 || >=21.0.0"},@@ -1423,7 +1447,8 @@"version": "16.1.6","resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.6.tgz","integrity": "sha512-N1ySLuZjnAtN3kFnwhAwPvZah8RJxKasD7x1f8shFqhncnWZn4JMfg37diLNuoHsLAlrDfM3g4mawVdtAG8XLQ==",- "license": "MIT"+ "license": "MIT",+ "peer": true},"node_modules/@next/swc-darwin-arm64": {"version": "16.1.6",@@ -1437,6 +1462,7 @@"os": ["darwin"],+ "peer": true,"engines": {"node": ">= 10"}@@ -1453,6 +1479,7 @@"os": ["darwin"],+ "peer": true,"engines": {"node": ">= 10"}@@ -1469,6 +1496,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">= 10"}@@ -1485,6 +1513,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">= 10"}@@ -1501,6 +1530,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">= 10"}@@ -1517,6 +1547,7 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">= 10"}@@ -1533,6 +1564,7 @@"os": ["win32"],+ "peer": true,"engines": {"node": ">= 10"}@@ -1549,6 +1581,7 @@"os": ["win32"],+ "peer": true,"engines": {"node": ">= 10"}@@ -1982,7 +2015,6 @@"resolved": "https://registry.npmjs.org/@react-three/fiber/-/fiber-8.18.0.tgz","integrity": "sha512-FYZZqD0UUHUswKz3LQl2Z7H24AhD14XGTsIRw3SJaXUxyfVMi+1yiZGmqTcPt/CkPpdU7rrxqcyQ1zJE5DjvIQ==","license": "MIT",- "peer": true,"dependencies": {"@babel/runtime": "^7.17.8","@types/react-reconciler": "^0.26.7",@@ -2428,6 +2460,7 @@"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz","integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==","license": "Apache-2.0",+ "peer": true,"dependencies": {"tslib": "^2.8.0"}@@ -2575,7 +2608,6 @@"resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.6.tgz","integrity": "sha512-NNu0sjyNxpoiW3YuVFfNz7mxSQ+S4X2G28uqg2s+CzoqoQjLPsWSbsFFyztIAqt2vb8kfEAsJNepMGPTxFDx3Q==","license": "MIT",- "peer": true,"dependencies": {"undici-types": "~7.16.0"}@@ -2591,7 +2623,6 @@"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.13.tgz","integrity": "sha512-KkiJeU6VbYbUOp5ITMIc7kBfqlYkKA5KhEHVrGMmUUMt7NeaZg65ojdPk+FtNrBAOXNVM5QM72jnADjM+XVRAQ==","license": "MIT",- "peer": true,"dependencies": {"csstype": "^3.2.2"}@@ -2616,7 +2647,6 @@"resolved": "https://registry.npmjs.org/@types/three/-/three-0.182.0.tgz","integrity": "sha512-WByN9V3Sbwbe2OkWuSGyoqQO8Du6yhYaXtXLoA5FkKTUJorZ+yOHBZ35zUUPQXlAKABZmbYp5oAqpA4RBjtJ/Q==","license": "MIT",- "peer": true,"dependencies": {"@dimforge/rapier3d-compat": "~0.12.0","@tweenjs/tween.js": "~23.1.3",@@ -3239,7 +3269,6 @@}],"license": "MIT",- "peer": true,"dependencies": {"baseline-browser-mapping": "^2.9.0","caniuse-lite": "^1.0.30001759",@@ -3521,7 +3550,8 @@"version": "0.0.1","resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz","integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",- "license": "MIT"+ "license": "MIT",+ "peer": true},"node_modules/cliui": {"version": "8.0.1",@@ -3744,8 +3774,7 @@"version": "3.2.3","resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz","integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/culvert": {"version": "0.1.2",@@ -3881,6 +3910,7 @@"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==","license": "Apache-2.0","optional": true,+ "peer": true,"engines": {"node": ">=8"}@@ -5160,7 +5190,6 @@"integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==","dev": true,"license": "MIT",- "peer": true,"bin": {"jiti": "bin/jiti.js"}@@ -6187,6 +6216,7 @@"resolved": "https://registry.npmjs.org/next/-/next-16.1.6.tgz","integrity": "sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==","license": "MIT",+ "peer": true,"dependencies": {"@next/env": "16.1.6","@swc/helpers": "0.5.15",@@ -6254,6 +6284,7 @@}],"license": "MIT",+ "peer": true,"dependencies": {"nanoid": "^3.3.6","picocolors": "^1.0.0",@@ -6752,7 +6783,6 @@}],"license": "MIT",- "peer": true,"dependencies": {"nanoid": "^3.3.11","picocolors": "^1.1.1",@@ -7060,7 +7090,6 @@"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz","integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==","license": "MIT",- "peer": true,"dependencies": {"loose-envify": "^1.1.0"},@@ -7085,7 +7114,6 @@"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz","integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==","license": "MIT",- "peer": true,"dependencies": {"loose-envify": "^1.1.0","scheduler": "^0.23.2"@@ -7614,6 +7642,7 @@"hasInstallScript": true,"license": "Apache-2.0","optional": true,+ "peer": true,"dependencies": {"@img/colour": "^1.0.0","detect-libc": "^2.1.2",@@ -7658,6 +7687,7 @@"integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==","license": "ISC","optional": true,+ "peer": true,"bin": {"semver": "bin/semver.js"},@@ -8069,6 +8099,7 @@"resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz","integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==","license": "MIT",+ "peer": true,"dependencies": {"client-only": "0.0.1"},@@ -8298,8 +8329,7 @@"version": "0.182.0","resolved": "https://registry.npmjs.org/three/-/three-0.182.0.tgz","integrity": "sha512-GbHabT+Irv+ihI1/f5kIIsZ+Ef9Sl5A1Y7imvS5RQjWgtTPfPnZ43JmlYI7NtCRDK9zir20lQpfg8/9Yd02OvQ==",- "license": "MIT",- "peer": true+ "license": "MIT"},"node_modules/three-mesh-bvh": {"version": "0.7.8",@@ -8392,7 +8422,6 @@"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=12"},@@ -8805,7 +8834,6 @@"integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"esbuild": "^0.25.0","fdir": "^6.4.4",@@ -8899,7 +8927,6 @@"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=12"},@@ -8913,7 +8940,6 @@"integrity": "sha512-E4t7DJ9pESL6E3I8nFjPa4xGUd3PmiWDLsDztS2qXSJWfHtbQnwAWylaBvSNY48I3vr8PTqIZlyK8TE3V3CA4Q==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"@vitest/expect": "4.0.16","@vitest/mocker": "4.0.16",@@ -9242,7 +9268,7 @@},"server": {"name": "portos-server",- "version": "1.0.0",+ "version": "0.23.1","dependencies": {"axios": "^1.7.9","cors": "^2.8.5",diff --git a/package.json b/package.jsonindex 5f67bd060f..007960a119 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "portos",- "version": "1.0.0",+ "version": "1.0.1","private": true,"description": "Local dev machine App OS portal","author": "Adam Eivy (@antic|@atomantic)",diff --git a/server/services/subAgentSpawner.js b/server/services/subAgentSpawner.jsindex d2cc82485b..36d35ff5da 100644--- a/server/services/subAgentSpawner.js+++ b/server/services/subAgentSpawner.js@@ -1777,6 +1777,15 @@ async function handleAgentCompletion(agentId, exitCode, success, duration) {const agentState = await getAgentState(agentId).catch(() => null);const workspace = agentState?.metadata?.workspacePath || ROOT_DIR;+ // Resolve JIRA ticket URL for linking in PR description+ let jiraTicketUrl = agent.task?.metadata?.jiraTicketUrl || null;+ if (!jiraTicketUrl && jiraInstanceId) {+ const jiraConfig = await jiraService.getInstances().catch(() => null);+ const baseUrl = jiraConfig?.instances?.[jiraInstanceId]?.baseUrl;+ if (baseUrl) jiraTicketUrl = `${baseUrl}/browse/${jiraTicketId}`;+ }+ const jiraTicketRef = jiraTicketUrl ? `[${jiraTicketId}](${jiraTicketUrl})` : jiraTicketId;+// Push the feature branchawait git.push(workspace, jiraBranch).catch(err => {emitLog('warn', `Failed to push JIRA branch ${jiraBranch}: ${err.message}`, { agentId, ticketId: jiraTicketId });@@ -1790,7 +1799,7 @@ async function handleAgentCompletion(agentId, exitCode, success, duration) {const prResult = await git.createPR(workspace, {title: `${jiraTicketId}: ${(task.description || 'CoS automated task').substring(0, 100)}`,- body: `Resolves ${jiraTicketId}\n\nAutomated PR created by PortOS Chief of Staff.\n\n**Task:** ${task.description || ''}`,+ body: `Resolves ${jiraTicketRef}\n\nAutomated PR created by PortOS Chief of Staff.\n\n**Task:** ${task.description || ''}`,base: targetBranch,head: jiraBranch}).catch(err => {