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: scope app git recovery to selected checkout
[._.]/ Adam Eivy15d58e00ad4a
diff --git a/client/src/components/apps/tabs/GitRecoveryAction.jsx b/client/src/components/apps/tabs/GitRecoveryAction.jsxindex f3fc2a8a18..5f6e36b1b0 100644--- a/client/src/components/apps/tabs/GitRecoveryAction.jsx+++ b/client/src/components/apps/tabs/GitRecoveryAction.jsx@@ -29,10 +29,10 @@ export default function GitRecoveryAction({ appId, appName, disabled }) {await api.addCosTask({description: `Preserve pending work and reconcile the application checkout for ${appName}`,prompt: `Investigate and resolve pending Git work in this app's configured checkout so it can safely update to the latest origin default branch (normally main).-Work in the actual application checkout, not a fresh worktree that hides its dirty state. Read repository instructions and discover the configured path, origin, default branch, branch protections, worktrees and active agents first. Respect forks: origin is the target, never substitute upstream. Inspect configured companion repositories too; preserve and reconcile their pending work against their own configured origin branch without switching them to the app default branch.+Work in this app's actual configured checkout, not a fresh worktree that hides its dirty state. Read its repository instructions and discover its path, origin, default branch and branch protections first. Respect forks: origin is the target, never substitute upstream. Keep scope to this selected app's checkout; inspect other managed or companion repositories only when this app's own repository configuration directly depends on them. Inspect linked worktrees and active agents only to protect ownership, and do not modify or remove unrelated worktrees.Before changing anything, inspect staged, unstaged, untracked and conflicted files, local commits, stashes, and any in-progress merge/rebase. Do not interfere with active work; if ownership is unclear, preserve it and report a blocker.Create and verify recoverable local backups of all pending content (including untracked files and the index) and backup refs for local commits before resolving anything. Keep backups outside tracked files and retain them through completion. Never blindly pop/drop stashes, reset --hard, git clean, force push, or discard work based only on filenames.-Fetch origin and compare each change against current remote history. Determine whether it is stale restored work already better resolved remotely or legitimate unfinished work. Preserve the newer implementation while retaining every unique intended change. Finish legitimate work, run appropriate checks, review the diff for secrets and quality, and commit only the relevant files. Push completed work normally; if branch protection requires a PR, create it and satisfy required CI/review gates before merging. Do not bypass protections.+Fetch origin and compare each pending change against current remote history. Decide whether it is redundant because the current origin already contains an equivalent fix, or whether this app needs a PR for a unique change. Preserve the newer implementation while retaining every unique intended change. Finish only relevant work, run appropriate checks, review the diff for secrets and quality, and commit only relevant files. Push completed work normally; if branch protection requires a PR, create it and satisfy required CI/review gates before merging. Do not bypass protections.Resolve existing rebase/merge conflicts preserving both sides' intent. Integrate the latest origin default branch only after pending work is safely accounted for. Do not replay stale stash contents over the resolved checkout. Do not change unrelated branches or remove other worktrees.Finally fetch again and verify the actual app checkout is on the default branch, clean including untracked work, and matches origin's latest default-branch HEAD, with all completed commits published. If blocked, retain backups and report precise remaining work; never claim success from a queued task or a local commit alone. Report preserved/discarded-as-redundant changes with evidence, tests, pushed commits/PR URLs, final Git status and backup locations locally. Do not publish private paths or app data. Do not restart the app; the user can run Update app afterward.`,app: appId,