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

address review: preserve deploy output whitespace, skip duplicate git backup, clarify stash rule scope

Adam Eivy5c1ecc13b8c5
diff --git a/client/src/components/apps/DeployPanel.jsx b/client/src/components/apps/DeployPanel.jsx
index e5e2adfc74..901f83ca99 100644
--- a/client/src/components/apps/DeployPanel.jsx
+++ b/client/src/components/apps/DeployPanel.jsx
@@ -117,15 +117,15 @@ export default function DeployPanel({ appId, appName }) {
<div
key={i}
className={
- line.stream === 'stderr' ? 'text-port-error' :
- line.stream === 'status' ? 'text-purple-400 font-bold' :
- 'text-gray-300'
+ line.stream === 'stderr' ? 'text-port-error whitespace-pre-wrap break-words' :
+ line.stream === 'status' ? 'text-purple-400 font-bold whitespace-pre-wrap break-words' :
+ 'text-gray-300 whitespace-pre-wrap break-words'
}
>
{line.text}
</div>
))}
- {error && <div className="text-port-error mt-2">Error: {error}</div>}
+ {error && <div className="text-port-error mt-2 whitespace-pre-wrap break-words">Error: {error}</div>}
</div>
{result && (
diff --git a/server/services/agentPromptBuilder.js b/server/services/agentPromptBuilder.js
index 81c275e8ee..e03d76a718 100644
--- a/server/services/agentPromptBuilder.js
+++ b/server/services/agentPromptBuilder.js
@@ -319,7 +319,7 @@ ${isTruthyMetaFn(task.metadata?.readOnly) ? `- **This is a read-only task.** Do
## Git Hygiene (CRITICAL)
- **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.
-- **NEVER use \`git stash\`** in any form (\`git stash push\`, \`git stash pop\`, \`--autostash\`, etc.). This is a multi-agent system — stashing can silently destroy or corrupt another agent's or the user's in-progress work. Work around uncommitted changes instead.
+- **NEVER use \`git stash\`** in any form (\`git stash push\`, \`git stash pop\`, etc.). This is a multi-agent system — stashing can silently destroy or corrupt another agent's or the user's in-progress work. Work around uncommitted changes instead. (Note: the backend may use \`--autostash\` in user-triggered pull operations — that is safe because those are single-user UI actions, not concurrent agent operations.)
- **Only commit files YOU changed** for this task. Never use \`git add -A\` or \`git add .\` — always stage specific files by name.
- **Commit and push using \`/do:push\`** — this handles changelog updates, staging specific files, writing a conventional commit message, and pushing safely. If \`/do:push\` is unavailable, follow its conventions manually: stage specific files, use \`feat:\`/\`fix:\`/\`breaking:\` prefix, no Co-Authored-By annotations, and push with \`git pull --rebase && git push\`.
${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.`}
diff --git a/server/services/pm2Standardizer.js b/server/services/pm2Standardizer.js
index 6be1553d73..cf1da0fcb2 100644
--- a/server/services/pm2Standardizer.js
+++ b/server/services/pm2Standardizer.js
@@ -406,7 +406,7 @@ export async function analyzeApp(repoPath, providerId = null) {
/**
* Apply standardization changes to the repository
*/
-export async function applyStandardization(repoPath, plan) {
+export async function applyStandardization(repoPath, plan, { skipBackup = false } = {}) {
const results = {
success: true,
backupBranch: null,
@@ -414,8 +414,8 @@ export async function applyStandardization(repoPath, plan) {
errors: []
};
- // Create git backup first — abort if working tree is dirty
- if (plan.currentState.hasGit) {
+ // Create git backup first — abort if working tree is dirty (skip when caller already did it)
+ if (plan.currentState.hasGit && !skipBackup) {
const backup = await createGitBackup(repoPath);
if (backup.success) {
results.backupBranch = backup.branch;
diff --git a/server/services/socket.js b/server/services/socket.js
index 496442e03a..bf27e8e279 100644
--- a/server/services/socket.js
+++ b/server/services/socket.js
@@ -113,7 +113,7 @@ export function initSocket(io) {
// Step 3: Apply changes
emit('apply', 'running', { message: 'Writing ecosystem.config.cjs...' });
- const result = await pm2Standardizer.applyStandardization(repoPath, analysis)
+ const result = await pm2Standardizer.applyStandardization(repoPath, analysis, { skipBackup: true })
.catch(err => ({ success: false, errors: [err.message] }));
if (result.errors?.length > 0) {