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
address review: fix useEffect deps, TLS opt-in, configurable JIRA fields, dir safety, zsh-only setup
Adam Eivya3885a4f4805
diff --git a/client/src/pages/Apps.jsx b/client/src/pages/Apps.jsxindex 2ceae1a3b9..513e64b979 100644--- a/client/src/pages/Apps.jsx+++ b/client/src/pages/Apps.jsx@@ -609,7 +609,7 @@ function EditAppModal({ app, onClose, onSave }) {}).catch(() => setJiraInstances([]));}, []);- // Fetch JIRA projects when instance changes + default assignee to instance user+ // Fetch JIRA projects when instance changesuseEffect(() => {if (!formData.jiraInstanceId) {setJiraProjects([]);@@ -619,15 +619,16 @@ function EditAppModal({ app, onClose, onSave }) {api.getJiraProjects(formData.jiraInstanceId).then(projects => {setJiraProjects(projects || []);}).catch(() => setJiraProjects([])).finally(() => setLoadingProjects(false));+ }, [formData.jiraInstanceId]);- // Default assignee to the configured JIRA user if not already set- if (!formData.jiraAssignee) {- const inst = jiraInstances.find(i => i.id === formData.jiraInstanceId);- if (inst?.email) {- setFormData(prev => ({ ...prev, jiraAssignee: inst.email }));- }+ // Default assignee to the configured JIRA user when instances load or instance changes+ useEffect(() => {+ if (!formData.jiraInstanceId || formData.jiraAssignee) return;+ const inst = jiraInstances.find(i => i.id === formData.jiraInstanceId);+ if (inst?.email) {+ setFormData(prev => ({ ...prev, jiraAssignee: inst.email }));}- }, [formData.jiraInstanceId]); // eslint-disable-line react-hooks/exhaustive-deps+ }, [formData.jiraInstanceId, jiraInstances, formData.jiraAssignee]);const handleSubmit = async (e) => {e.preventDefault();diff --git a/scripts/setup-ghostty.js b/scripts/setup-ghostty.jsindex 1d5e4d40e0..998f3044e0 100644--- a/scripts/setup-ghostty.js+++ b/scripts/setup-ghostty.js@@ -46,19 +46,22 @@ for (const file of themeFiles) {}console.log(`✅ Copied ${themeFiles.length} themes → ${themeDest}`);-// 2. Add source line to shell rc file-const shellRcPath = existsSync(join(home, '.zshrc'))- ? join(home, '.zshrc')- : join(home, '.bashrc');-+// 2. Add source line to zshrc (ghostty.sh uses zsh-specific hooks)+const zshrcPath = join(home, '.zshrc');const sourceLine = `source "${join(rootDir, 'shell/ghostty.sh')}"`;-const rcContent = existsSync(shellRcPath) ? readFileSync(shellRcPath, 'utf8') : '';-if (rcContent.includes(sourceLine)) {- console.log(`✅ Shell integration already in ${shellRcPath}`);+if (!existsSync(zshrcPath)) {+ console.log('⚠️ ~/.zshrc not found — Ghostty shell integration requires zsh');+ console.log(' To set up manually, add this to your zsh config:');+ console.log(` ${sourceLine}`);} else {- appendFileSync(shellRcPath, `\n# PortOS Ghostty shell integration\n${sourceLine}\n`);- console.log(`✅ Added source line to ${shellRcPath}`);+ const rcContent = readFileSync(zshrcPath, 'utf8');+ if (rcContent.includes(sourceLine)) {+ console.log(`✅ Shell integration already in ${zshrcPath}`);+ } else {+ appendFileSync(zshrcPath, `\n# PortOS Ghostty shell integration\n${sourceLine}\n`);+ console.log(`✅ Added source line to ${zshrcPath}`);+ }}console.log('');diff --git a/server/services/jira.js b/server/services/jira.jsindex b29aff029f..1cdfbe533e 100644--- a/server/services/jira.js+++ b/server/services/jira.js@@ -34,6 +34,7 @@ export async function getInstances() {* Save JIRA instances configuration*/export async function saveInstances(config) {+ await fs.mkdir(path.dirname(JIRA_CONFIG_FILE), { recursive: true });await fs.writeFile(JIRA_CONFIG_FILE,JSON.stringify(config, null, 2),@@ -81,9 +82,9 @@ function createJiraClient(instance) {'Content-Type': 'application/json','Accept': 'application/json'},- httpsAgent: new https.Agent({- rejectUnauthorized: false // Allow self-signed certs for internal JIRA- }),+ httpsAgent: instance.allowSelfSigned ? new https.Agent({+ rejectUnauthorized: false+ }) : undefined,timeout: 30000});@@ -181,16 +182,23 @@ export async function createTicket(instanceId, ticketData) {issue.fields.assignee = { name: ticketData.assignee };}+ // Custom field IDs vary per JIRA instance — use instance config or defaults+ const fieldIds = {+ storyPoints: instance.customFields?.storyPoints || 'customfield_10106',+ epic: instance.customFields?.epic || 'customfield_10101',+ sprint: instance.customFields?.sprint || 'customfield_10105',+ };+if (ticketData.storyPoints) {- issue.fields.customfield_10106 = ticketData.storyPoints;+ issue.fields[fieldIds.storyPoints] = ticketData.storyPoints;}if (ticketData.epicKey) {- issue.fields.customfield_10101 = ticketData.epicKey;+ issue.fields[fieldIds.epic] = ticketData.epicKey;}if (ticketData.sprint) {- issue.fields.customfield_10105 = ticketData.sprint;+ issue.fields[fieldIds.sprint] = ticketData.sprint;}if (ticketData.labels && ticketData.labels.length > 0) {