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

refactor([issue-978]): drop now-dead markAppReviewStarted

Adam Eivy062e3e7056b7
diff --git a/server/services/appActivity.js b/server/services/appActivity.js
index 618b92255b..a8c512374e 100644
--- a/server/services/appActivity.js
+++ b/server/services/appActivity.js
@@ -95,12 +95,13 @@ export async function startAppCooldown(appId, cooldownMs) {
* Advance an app's review cooldown WITHOUT binding an active agent.
*
* Stamps `lastReviewedAt` (which `isAppActivityOnCooldown` reads) so the app
- * isn't re-picked on the very next idle tick — the re-pick-storm guard. This is
- * the half of the old `markAppReviewStarted` that must run *before* the per-app
- * task generator, since a no-op poll (task generator returns `null`) still has
- * to advance the cooldown. Crucially it does NOT touch `activeAgentId`, so a
- * null result can't leave a phantom "in review" marker. See `bindAppReviewAgent`
- * for the agent-binding half, called only once a task actually exists.
+ * isn't re-picked on the very next idle tick — the re-pick-storm guard. This
+ * runs *before* the per-app task generator, since a no-op poll (task generator
+ * returns `null`) still has to advance the cooldown. Crucially it does NOT
+ * touch `activeAgentId`, so a null result can't leave a phantom "in review"
+ * marker. See `bindAppReviewAgent` for the agent-binding half, called only once
+ * a task actually exists. These two were previously a single eager
+ * `markAppReviewStarted` step, which stranded the marker on no-op polls (#978).
*/
export async function markAppReviewCooldown(appId) {
return updateAppActivity(appId, {
@@ -120,19 +121,6 @@ export async function bindAppReviewAgent(appId, agentId) {
});
}
-/**
- * Mark an app review as started — advances the cooldown AND binds the active
- * agent in one step. Use only when a task is guaranteed to follow (the agent
- * id is known up front). When the task may be `null`, prefer the split pair:
- * `markAppReviewCooldown` eagerly + `bindAppReviewAgent` once the task exists.
- */
-export async function markAppReviewStarted(appId, agentId) {
- return updateAppActivity(appId, {
- activeAgentId: agentId,
- lastReviewedAt: new Date().toISOString()
- });
-}
-
/**
* Mark an app review as completed
*/