Skip to content

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

fix(apps): hide running status for Xcode/non-PM2 apps and stop stashing in agent prompts

Adam Eivy3498de89830e
diff --git a/client/src/components/apps/AppDetailView.jsx b/client/src/components/apps/AppDetailView.jsx
index 6ba88adcf5..283a80ad5d 100644
--- a/client/src/components/apps/AppDetailView.jsx
+++ b/client/src/components/apps/AppDetailView.jsx
@@ -7,7 +7,7 @@ import BrailleSpinner from '../BrailleSpinner';
import StatusBadge from '../StatusBadge';
import * as api from '../../services/api';
import socket from '../../services/socket';
-import { APP_DETAIL_TABS } from './constants';
+import { APP_DETAIL_TABS, NON_PM2_TYPES, getAppTypeLabel } from './constants';
import OverviewTab from './tabs/OverviewTab';
import TasksTab from './tabs/TasksTab';
import AutomationTab from './tabs/AutomationTab';
@@ -153,7 +153,13 @@ export default function AppDetailView() {
<div className="flex-1 min-w-0">
<div className="flex flex-wrap items-center gap-3">
<h1 className="text-xl font-bold text-white truncate">{app.name}</h1>
- <StatusBadge status={app.overallStatus || 'unknown'} size="sm" />
+ {NON_PM2_TYPES.has(app.type) ? (
+ <span className="px-1.5 py-0.5 bg-port-accent/20 text-port-accent text-xs rounded">
+ {getAppTypeLabel(app.type)}
+ </span>
+ ) : (
+ <StatusBadge status={app.overallStatus || 'unknown'} size="sm" />
+ )}
</div>
{app.pm2ProcessNames?.length > 0 && (
<div className="text-xs text-gray-500 mt-1">
@@ -162,7 +168,8 @@ export default function AppDetailView() {
)}
</div>
<div className="flex flex-wrap items-center gap-1.5">
- {/* Start/Stop/Restart */}
+ {/* Start/Stop/Restart - only for PM2 apps */}
+ {!NON_PM2_TYPES.has(app.type) && (
<div className="inline-flex rounded-lg overflow-hidden border border-port-border">
{app.overallStatus === 'online' ? (
<>
@@ -194,6 +201,7 @@ export default function AppDetailView() {
</button>
)}
</div>
+ )}
{/* Launch UI */}
{app.uiPort && app.overallStatus === 'online' && (
<button
diff --git a/client/src/components/apps/constants.js b/client/src/components/apps/constants.js
index cc81b8613a..e819d57c16 100644
--- a/client/src/components/apps/constants.js
+++ b/client/src/components/apps/constants.js
@@ -1,5 +1,10 @@
export const NON_PM2_TYPES = new Set(['ios-native', 'macos-native', 'xcode', 'swift']);
+export const getAppTypeLabel = (type) =>
+ type === 'ios-native' ? '📱 iOS' :
+ type === 'macos-native' ? '🖥️ macOS' :
+ type === 'swift' ? '🐦 Swift' : '🔨 Xcode';
+
export const APP_DETAIL_TABS = [
{ id: 'overview', label: 'Overview' },
{ id: 'automation', label: 'Automation' },
diff --git a/client/src/pages/Apps.jsx b/client/src/pages/Apps.jsx
index 909eb71105..cc5588a145 100644
--- a/client/src/pages/Apps.jsx
+++ b/client/src/pages/Apps.jsx
@@ -10,7 +10,7 @@ import ActivityLog from '../components/apps/ActivityLog';
import { useAppOperation } from '../hooks/useAppOperation';
import * as api from '../services/api';
import socket from '../services/socket';
-import { NON_PM2_TYPES } from '../components/apps/constants';
+import { NON_PM2_TYPES, getAppTypeLabel } from '../components/apps/constants';
export default function Apps() {
const [apps, setApps] = useState([]);
@@ -248,9 +248,7 @@ export default function Apps() {
)}
{isNonPm2 ? (
<span className="px-1.5 py-0.5 bg-port-accent/20 text-port-accent text-xs rounded">
- {app.type === 'ios-native' ? '📱 iOS' :
- app.type === 'macos-native' ? '🖥️ macOS' :
- app.type === 'swift' ? '🐦 Swift' : '🔨 Xcode'}
+ {getAppTypeLabel(app.type)}
</span>
) : (
<StatusBadge status={app.overallStatus} size="sm" />
diff --git a/server/services/agentPromptBuilder.js b/server/services/agentPromptBuilder.js
index c97dd3015f..bd91bf7e73 100644
--- a/server/services/agentPromptBuilder.js
+++ b/server/services/agentPromptBuilder.js
@@ -318,10 +318,9 @@ ${skillSection ? `## Task-Type Skill Guidelines\n\n${skillSection}\n` : ''}${too
${isTruthyMetaFn(task.metadata?.readOnly) ? `- **This is a read-only task.** Do NOT commit, push, or modify any files in the repository. Only read data and generate reports.` : task.metadata?.app && worktreeInfo && willOpenPR ? `- Commit code after each feature or bug fix using the git tools or /cam skill. A pull request will be automatically created when your task completes — do NOT open a PR manually.` : task.metadata?.app && worktreeInfo ? `- Commit code after each feature or bug fix using the git tools or /cam skill. Your worktree branch will be automatically merged back to the source branch when your task completes — do NOT open a PR.` : `- Commit code after each feature or bug fix using the git tools or /cam skill`}
## Git Hygiene (CRITICAL)
-- **Before starting work**, run \`git status\` to verify a clean working tree. If there are uncommitted changes from a previous agent or manual work, **stash or discard them** before proceeding — do NOT commit someone else's changes.
+- **Before starting work**, run \`git status\` to verify a clean working tree. Do NOT stash or discard uncommitted changes — other agents may be working concurrently and expecting those changes to be present. If the tree is dirty, only commit files YOU changed for this task.
- **Only commit files YOU changed** for this task. Never use \`git add -A\` or \`git add .\` — always stage specific files by name.
${worktreeInfo ? `- **Your PR should contain only your task's commits.** If you see unrelated commits in your branch history, something is wrong — do not open a PR with other agents' work.` : `- **Commit directly to the current branch.** Do NOT create feature branches or PRs unless explicitly instructed.`}
-- If the working tree is dirty with changes unrelated to your task, run \`git stash\` to set them aside before starting.
## Working Directory
${task.metadata?.app ? `You are working in the target app directory: \`${workspaceDir}\`. All code changes, research, plans, and docs for this task belong in this directory — NOT in the PortOS repo.` : 'You are working in the project directory.'} Use the available tools to explore, modify, and test code.