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: skip on PR-URL forge first; success-conditional simplify wording
Adam Eivyee7ca557558a
diff --git a/server/services/agentPromptBuilder.js b/server/services/agentPromptBuilder.jsindex 96083f4e0e..16fdc20b3d 100644--- a/server/services/agentPromptBuilder.js+++ b/server/services/agentPromptBuilder.js@@ -198,7 +198,7 @@ Use the findings from the previous stage to inform your work. If the previous st// section above.const simplifySection = isTruthyMetaFn(task.metadata?.simplify) ? `## Simplify Step-After completing your work and before committing, run \`/simplify\` to review the changed code for reuse, quality, and efficiency. Fix any issues found, then ${worktreeInfo && willOpenPR ? 'commit your changes (do NOT push — the system will push and open the PR after you exit)' : 'commit and push using `/do:push`'}.+After completing your work and before committing, run \`/simplify\` to review the changed code for reuse, quality, and efficiency. Fix any issues found, then ${worktreeInfo && willOpenPR ? 'commit your changes (do NOT push — on a successful run the system will push and open the PR after you exit; if the run fails, no push or PR happens)' : 'commit and push using `/do:push`'}.` : '';// Build review loop section if enabled. The agent itself does NOT open the PRdiff --git a/server/services/git.js b/server/services/git.jsindex f0413529d8..0da354073a 100644--- a/server/services/git.js+++ b/server/services/git.js@@ -555,9 +555,18 @@ export async function requestCopilotReview(dir, prUrl) {const parsed = parsePullRequestUrl(prUrl);if (!parsed) return { success: false, error: `unparseable PR URL: ${prUrl}` };+ // Decide forge from the PR URL itself — that's the authoritative signal of where+ // the review request needs to go. Falling back to the repo's `origin` (via+ // resolveForgeForRepo) is wrong when `dir` isn't a parseable repo, or when the+ // repo origin disagrees with the PR URL (e.g. GitLab MR URL reached via a+ // mirror/fork on github.com). Non-GitHub PR URLs short-circuit as a successful+ // skip so cleanupAgentWorktree doesn't emit a warning for every GitLab MR.+ if (detectForgeCli(parsed.host) !== 'gh') return { success: true, skipped: true };+const { cli, env } = await resolveForgeForRepo(dir);- // Non-GitHub forges have no Copilot reviewer to request — treat as a successful skip- // so cleanupAgentWorktree doesn't emit a warning for every GitLab MR.+ // Repo-side resolution might still come back non-gh (e.g. dir is empty/malformed+ // and resolveForgeForRepo returned a glab host). Belt and suspenders: skip rather+ // than try to talk to gh with the wrong env.if (cli !== 'gh') return { success: true, skipped: true };// Target the same GitHub instance the PR lives on. Without --hostname, gh uses